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.
Hello,
I'm using uVision 4.20 and an LPC1788 development board.
The development board has external NOR flash at CS0 (0x80000000). I am able to download code to the external NOR flash using and INI setup file but I can't seem to write the VTOR register with 0x80000000.
The exact code and setup modified to run from iRAM works without issue (@ 0x10000000).
Does anyone have any ideas why I cant write VTOR with 0x80000000?
(Note the code runs until there is any interrupt and than crashes)
Thanks.
Mac
I have a similar situation with a LPC2478. The program for that product is organized in the following way: 1. bootloader(s) zone at the first 16[KB] of internal flash. 2. program components until the end of internal flash. 3. The rest of the program inside a NOR flash.
Note that you would need to: 1. Configure uv4 to program the NOR flash so you can debug. 2. Make sure your bootloader can program the application parts that reside in NOR flash. 3. Adjust your scatter loading files to house a separate load region for the NOR flash. 4. Create a small PC application that stitches the load regions binaries generated by the linker together so that the bootloader can program it seamlessly.