I'm now using SST89C58 microcontroller chip, it has 32K+4K internal FLASH EEPROM, I hope to interface 89C58 through MON51 with UV2 and write internal FLASH EEPROM directly, Please tell me if I can DO It just by modify the INSTALL.A51 file of "WR_CODE:" ? and HOW TO MODIFY IT?
I'm now using SST89C58 microcontroller chip, it has 32K+4K internal FLASH EEPROM, I hope to interface 89C58 through MON51 with UV2 and write internal FLASH EEPROM directly, Please tell me if I can DO It just by modify the INSTALL.A51 file of "WR_CODE:" ? and HOW TO MODIFY IT? OK. Here goes. But note that this is very complex. 1. I assume that you want to use MON51 to download code to the FLASH and execute your program from FLASH. 2. I also assume that you want to set breakpoints and be able to single step thru your program. 3. You must heavily modify the INSTALL.A51 file that comes with the monitor in order to accomplish this. 4. First, you'll have to create FLASH write routines that allow the monitor to set breakpoints. 5. Assuming that your FLASH memory uses 64-byte blocks, whenever the monitor modifies a byte of the FLASH, you'll have to read the whole block, save it (to RAM), change the byte in the saved copy, erase the 64-byte block, and write the saved block back. 6. This can be done, however...A) It will be slow and B) It will eventually kill the FLASH (by writing past the max write cycle count). Hopefully, this helps. If you get it working, post to this list and let us all know. Jon
I'v tried to created a FLASH write routines for SST89C58 FLASH as you sugested, but as I insert this routine into INSTALL.A51 "WR_CODE" , the MON51 can not work correctly! Please tell me if the "WR_CODE" is the RIGHT PLACE to insert my FLASH routine? or it should be somewhere else? also please tell me HOW to allow the monitor to set breakpoints.