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,622 次查看
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,510 次查看
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,509 次查看
jingpan
NXP TechSupport
NXP TechSupport
0 项奖励
回复