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

Reserving a ROM sector

Hello

I'm using a LPC2132 and is it possible to let the linker know, that it can't use a specific sector in flash?

The first 8 sector is each of 4 kB. The first sector is used for the bootloader and I would like to reserve sector 8 for persistent data.

Sector 1: Bootloader
Sector 2-7: application
sector 8: Data
Sector 9: application

Is that possible, so linker don't use sector 8?

Alternative, I can reserve the first to sectors for bootloader and persistent data.
But then I need somehow to debug the application without the bootloader, so I just can download the application to sector 3 and onward, but still be able to debug the application.
How to let KEIL debugger do the jump to sector 3 for launching the main?'

/Thomas

Parents
  • Setting the PC to another address works well. But you have one other issue. If you are going to use any interrupts, then you need to store the interrupt vector table information at one of the locations your specific processor supports, since the processor do not know anything about what start address you download and run your application from.

Reply
  • Setting the PC to another address works well. But you have one other issue. If you are going to use any interrupts, then you need to store the interrupt vector table information at one of the locations your specific processor supports, since the processor do not know anything about what start address you download and run your application from.

Children
No data