AnsweredAssumed Answered

Loading different applications to different flash sectors

Question asked by alem_ on Mar 9, 2017
Latest reply on Mar 24, 2017 by Luigi Zambrano

Hello everyone,

I am working with SPC56EL60L3 and SPC5STUDIO v5.0.

I have two different applications:

- a bootloader application

- the main application

 

The idea is to have the bootloader application loaded starting from flash sector 0 (flash address 0x00000000) and the main application loaded starting from flash sector 3 (flash address 0x0001C000).

 

I made some changes to the .ld script to adjust flash settings.

For the bootloader I have:

 

MEMORY
{
flash : org = 0x00000000, len = 112k
ram : org = 0x40000000, len = 128K
}

 

I could think of reducing the size...

 

For the application, I have:

 

MEMORY
{
flash : org = 0x0001C000, len = 1M - 0x0001C000
ram : org = 0x40000000, len = 128K
}

 

I flashed both applications and it looks like the microcontroller starts running the bootloader.

 

I have the following questions:

 -  is this procedure right? Just developing two separate applications and flash to different sectors chnaging the linkers script settings?

 

- how do I do to jump to the main application from the bootloader? 

 

Thank you.

 

Regards

Alessandro

Outcomes