2021-06-21 02:35 AM
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)
;
}
"