Re: [Flashforth-devel] FF 5.0 and the DM300027 Demo Board with PIC24FJ64GA002
Brought to you by:
oh2aun
From: Mikael N. <mik...@pp...> - 2014-04-29 04:51:11
|
The reason you cannot see MARKER initially must be that LATEST has the wrong value. Since EMPTY works I believe that you do not erase the flash before programming the hex file to the device. The start routine checks if TURNKEY in the 4K flash sector is $ffff. If it is $ffff, EMPTY is executed. The 4K flash area is used for eeprom emulation for - latest - flash dp - ram dp - turnkey The 4K flash area (6K with the upper byte) is there only on devices without eeprom. It's a bit large, but it was the simplest implementation with one flash sector used per variable. On eeprom devices, correct initialisation depends on that the eeprom has been erased to $ffff before burning the hex file. The alternative is to execute EMPTY to correct the system pointers. It is really bad that Microchip has not fixed the listing bug in XC16. They fixed it in ASM30 on my request. BR Mike |