Stm32f0 IAP Bootloader
Hi guys,
Bootloader program is doing jump. But my application code interrupts don't work.
HAL_Delay () does not work.
HAL_GPIO_TogglePin (GPIOA, PA0_LED_Pin);
HAL_Delay (1000); // IS NOT WORK
while (i ++ <1500000) {} // THIS WORK
i = 0;
So the led is blinking but Hal_Delay does not work because the interrupts are not working.
I don't know how to edit the vector table. I wrote a code, but it's not working.
void Remap_Table (void) {
#define APPLICATION_ADDRESS (uint32_t) 0x08004000
__IO uint32_t VectorTable [48] __attribute __ ((at (0x20000000)));
for (uint8_t i = 0; i <48; i ++)
{
VectorTable [i] = * (__ IO uint32_t *) (APPLICATION_ADDRESS + (i << 2));
}
__HAL_RCC_APB2_FORCE_RESET ();
__HAL_SYSCFG_REMAPMEMORY_SRAM();
}What can I do. I'm using HAL Library.
Good work.