New answers tagged flash
Here is how I solved it. It might not work for everyone in my situation but that was good enough for my need. Since I'm restricted by mode 3. I decided to use mode3 (prevent reading and writing for flash and eeprom). Therefore I will be providing my program + the data to the customers in an encrypted file that can only be opened by my desktop application, ...
No, there is not. Consider adding an external I2C or SPI EEPROM/flash if you need externally-writable space while having the on-board program flash be unreadable. Not only will this solve your immediate problem, it can also give you much more space in which to store your data, either supplied or generated.
The PIC18F47J53 doesn't have EEPROM memory. As for Flash programming, I don't believe there's a simpler way to write to it than the one you tried. You just have to be careful not to write/erase an already used memory section.
With the processor you are using this should be as simple as eeprom_write(unsigned int address,unsigned char data), in which you can find the address of the eeprom/flash in the datasheets. Some processors don't seem to support this command though. If you look in the header file of the uC as well as the compiler header (eg. pic18.h) you can see whether ...
Top 50 recent answers are included