cancel
Showing results for 
Search instead for 
Did you mean: 

How to implement remap function in STM32L5

zqizh.1
Associate II

Hi,

Because the STM32l5 not support "__HAL_SYSCFG_REMAPMEMORY_SYSTEMFLASH", Please tell me how to change the program entry point without program on-chip flash.

Thanks

QiZhang

"

void AppEnter()

{

 #define SYS_MEM_ADDR 0x8020000

 __HAL_SYSCFG_REMAPMEMORY_SYSTEMFLASH(); //how to implement?

 __set_MSP(*(__IO uint32_t*) SYS_MEM_ADDR);

 void (*App)(void) = (void(*)(void)) *((uint32_t *) (SYS_MEM_ADDR + 4));

 App();

 while(1)

 ;

}

"

0 REPLIES 0