AnsweredAssumed Answered

STM32F042 IAP Problem

Question asked by voyvoda . on Mar 12, 2018



       I want to write a "User Application" for the USART bootloader (AN4657) provided by ST. 

       I modifed the CubeMX generated code like below;


       My code is not working properly. When I debug my code, I see that HAL_IncTick() is never called. I see that my code is waiting in HAL_Delay() because of not working systick count.


      What could be the problem in my code ?







#define APPLICATION_ADDRESS (uint32_t)0x08004000


__IO uint32_t VectorTable[24] __attribute__((at(0x20000000)));


for(i = 0; i < 24; i++)
VectorTable[i] = *(__IO uint32_t*)(APPLICATION_ADDRESS + (i<<2));






define symbol __ICFEDIT_intvec_start__ = 0x08004000;

define symbol __ICFEDIT_region_ROM_start__ = 0x08004000;