PIC16F630 - Read from Flash and do a checksum.
I have been try to use Hitech C to read from the flash but not able to read the contents. I can do it for RAM without a problem.
RAM location starts from 20h and end at 5Fh and its 64 bytes. E.g. I set a pointer at ROM location 0E0h like the following
unsigned int *rom_addr, rom_value;
rom_addr = 0xE0h;
rom_value = *rom_addr;
Compiles just fine. Does not give me the opcode/value in the flash. However, if the value of the rom_addr is changed to 0x20H it works just fine.
I need to know how to read the the ROM area so that I can do a checksum for PIC16F630
Any Help is much appreciated., Also if you tell me its not possible...that is bad, but also if you can share why would be helpful as well.