Reserving RAM for IAP Flash Programming

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Reserving RAM for IAP Flash Programming

1,835件の閲覧回数
lpcware-support
Senior Contributor I

The IAP flash programming routines available in NXP's MCUs make use of some of the onchip RAM when executed. For example on the LPC1343 the top 32 bytes of onchip RAM are used. Thus if you are calling the IAP routines from your own application, you need to ensure that this memory is not used by your application.

By default this memory will be used by the application stack. However, if you are using the managed linker script mechanism, it is easy to modify the start position of the stack (remember that stacks grow down) to avoid this clash with the IAP routines. To do this go to:

Project Properties ->  C/C++ Build -> Settings -> MCU Linker -> Target

and modify the value in the "Stack Offset" field from 0 to 32.

146857_146857.jpgLPCX_stack_offset.jpg

Notes:

  1. The value you enter in this field must be a multiple of 4.
  2. You are advised to check the documentation for the actual MCU that you are using to confirm the amount of memory required by the IAP routines.
ラベル(1)
0 返答(返信)