Help with linker script...

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Help with linker script...

185 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by alanisgp on Wed Apr 04 13:01:42 MST 2012
Hi, I have the following dilemma.
I'm doing a secondary bootloader, the idea is to pass arguments between the application on-Run and the bootloader.
The first synthesis that occurs to me is to reserve a section of SRAM, from a known position. Then when I invoke the bootloader, placed there the parameters you want to communicate, in variables associated with that section, such a structure.
When the bootloader takes control after a reset, read parameters, and then runs different workflows.
The question is: How altered the linker-script to reserve a section ".x" inside ". data", at any bank SRAM, either 1 or 2?.
So to make that modification on the linker file in both codes (main and boot) refer to the same memory locations, and use it as a message queue.
I appreciate any suggestions or other reference literature that may be recommended.
Thank you very much and best regards!.






Escribe texto o la dirección de un sitio web, o bien, traduce un documento.
Cancelar

  Alpha
0 Kudos
1 Reply

167 Views
lpcware
NXP Employee
NXP Employee
0 Kudos