AnsweredAssumed Answered

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

Question asked by Angelo Calabrese on Dec 7, 2018
Latest reply on Dec 13, 2018 by Bob Paddock

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?

Outcomes