Bootloader with Stm32H743VIT6(problem with peripherals)
Hi
I hope you guys be safe
I want to make a bootloader with Stm32H743VIT6 and i want to start from a simple one the structure is like below:
1_program a simple blink led at 0x08020000 with 50Kb size and changing vector table to that address
2_make simple pointer function in another program at 0x08000000 and point to x08020000
it goes fine until now but when i enable spi in bootlader code the blinker led will not work , the point is where i enable the same spi in aplication(blinker) too and it works fine and when i use HAL_SPI_MspDeInit(spiHandle) in last line befor jumping to blinker code to disable spi in bootloader it works fine !!!
now i wanna know why?!
what is happening in Stm when i enable a peripheral ?
any reference would be fine too :folded_hands: �?��?
this is my pointer function :
static void goto_application(void)
{
void (*app_reset_handler)(void) = (void*)(*((volatile uint32_t*) (0x08020000 + 4U)));
HAL_SPI_MspDeInit(&hspi3);
app_reset_handler(); //call the app reset handler
}
