Copy and execution of a routine at runtime for cortex-m0 architecture

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

Copy and execution of a routine at runtime for cortex-m0 architecture

1,515件の閲覧回数
angelocalabrese
Contributor I

I'm developing a bootloader. I need to receive the flash erasing and writing routines from an external channel (via CAN). So I need to copy and then perform these routines in RAM. The prototypes of these routines are as follows:
uint16_t FLASH_Program (uint32_t wNVMTargetAddress, uint8_t * pData, uint16_t sizeBytes);
uint16_t FLASH_EraseSector (uint32_t wNVMTargetAddress);
How can I do it?

タグ(1)
0 件の賞賛
返信
2 返答(返信)

1,403件の閲覧回数
bobpaddock
Senior Contributor IV

I posted some of the related Flash code in this thread a while ago:

https://community.nxp.com/message/577798?commentID=577798#comment-577798 

The 'Copy' code is in the attached startup and linker files.

Real Soon Now I'm going to write a book with all of this stuff in it,

that should have been in Freescale/NXP documentation in the first place...

0 件の賞賛
返信

1,402件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信