External flash loader for h7
I am trying to develop external flash loader, which will use the cubeprogrammer utility, I am facing the following error,
1) When I try to use cubeide for the project, If I remove the main and made necessary changes in startup.s and in linker, getting the following linker error "./arm-none-eabi/lib/crt0.o: In function `_start'"
2) When I try to use the atollocstudio, I am able to compile and run in target but the processor resets on executing the following line of HAL Init
SystemCoreClock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE)>> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU);
Same code when ran from Flash memory executes without any issues.
3) Also I found that when I moved all the programs to RAM then the ISR's are being hit, the same code executing from flash works without any issues.
