Skip to main content
voyvoda .
Senior
March 12, 2018
Question

STM32F042 IAP Problem

  • March 12, 2018
  • 0 replies
  • 373 views
Posted on March 12, 2018 at 12:46

Hello,

       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 ?

Main.c

------------------------------------------------------------------

#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));

}

stm32f042x6_flash.icf

------------------------------------------------------------------

define symbol __ICFEDIT_intvec_start__ = 0x08004000;

define symbol __ICFEDIT_region_ROM_start__ = 0x08004000;

    This topic has been closed for replies.