Hi, I like to simulate the program larger than 8KB via Keil monitor, and separate the functions and constant data and put constant data to a extra eeprom.
The steps I did are as follows. 1. My test board has a eeprom for bank-switching. 2. Genrated 2 hex file, bank 1 and common area. (xxx.hex and xxx.h00) 3. Loading xxx.h00 to the eeprom early. 4. Using "Start the debug session" to start the simulation.
Got a Monitor Error and "illegal write access at CODE address ...etc."
Please give a help. Tks.
Please clarify precisely what you mean by "EEPROM" in this context:
"EEPROM" is usually taken to mean the type of device designed for non-volatile data storage - often with a serial interface. The key feature of this kind of device is the ability to write individual bytes.
Electrically-Erasable PROMs designed for code storage are usually referred to as "Flash", and usually have a parallel bus interface.
"EEPROM" that I meant is what you mention to "flash". I use 27c512 (64KB) to store the constant data.
"I use 27c512"
That's not even electrically-erasable, is it?
A 27C512 is an old UV-Erasable PROM, isn't it?
ie, you have to put it into a UV eraser before you can re-program it?