We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi guys,
In order to test out some bootloader code, I'm wishing to place some fake values in another location of flash ROM.
I've created a second ROM region in uVision:
IROM1 0x0 to 0x1FF Startup IROM2 0x200 to 0x20000
I proceeded to create an asm file filled with DCD values:
AREA |.test|, CODE, READONLY DCD 10000 DCD 10000 DCD 10000 DCD 10000 END
I set the code/const option of the file to exist in IROM2 and configured the linker to make sure it kept this unused code.
With this I thought I would just be getting some values placed in 0x200 in flash, however, when attempting to debug my program, I'm now receiving:
Cannot access Memory Cannot access Memory *** error 57: illegal address (0x00000200)
I would have though that this shouldn't affect my other code but perhaps I'm wrong and would greatly appreciate if someone could shed some light on this one.
Many thanks
Answered my own question after searching around.
The issue was caused by having 'Download to Flash' selected for the debugger, clearly it doesn't follow quite the same rules as the manual flash.
Perhaps a bug?