This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Place values in X location in ROM

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

0