We have a DFU bootloader in low memory, configuration data at 0x9000 and operational code at 0xa000. We are using Freescale CodeWarrior 10.6 IDE. We are using the JLink embedded chip that comes on the KwikStik to connect to our own external board (using a header on the KwikStik to connect JTAG on our board).
Every time we debug the operational code (base address at 0xa000), we find that flash memory is zeroed out at least 0x1000 BELOW the program we are loading into flash with JLink (through the debugger) up to the operational code at 0xa000. This is deleting our configuration data in flash memory (0x9000-0x9fff), so it is difficult to debug because we must change the code to return hardcoded values in place of what should be in the configuration area of flash.
I have converted the .elf to a .s using the Freescale utility to confirm there is nothing contained in the .elf file that would be loading below the operational code base address of 0xa000.
I have downloaded and installed the latest JLink driver 5.02f, with exactly the same result as the JLink driver that comes with CW 10.6.
Any thoughts or suggestions on how to resolve this? It seems to be a bug in the JLink software.
Every time we debug the operational code (base address at 0xa000), we find that flash memory is zeroed out at least 0x1000 BELOW the program we are loading into flash with JLink (through the debugger) up to the operational code at 0xa000. This is deleting our configuration data in flash memory (0x9000-0x9fff), so it is difficult to debug because we must change the code to return hardcoded values in place of what should be in the configuration area of flash.
I have converted the .elf to a .s using the Freescale utility to confirm there is nothing contained in the .elf file that would be loading below the operational code base address of 0xa000.
I have downloaded and installed the latest JLink driver 5.02f, with exactly the same result as the JLink driver that comes with CW 10.6.
Any thoughts or suggestions on how to resolve this? It seems to be a bug in the JLink software.