stm32f107 CL : freeze after jump from bootloader
Hi!
I have a project with a custom bootloader (I cannot change it), the issue I have is that my main app freezes after the jump from the bootloader.
I have a USART connection to debug it easily.
I know some Interruptions are set in the bootloader, so I tried to disable it at the beginning of my application, but still freezing.
I also know that the vector is in The RAM for the bootloader, and in the flash for my application. Could it comes from here?
Here is what I do in my main application:
=====================
__disable_irq();
SetupLeds();
SetSysClockTo72();
SetupTimers();
FLASH_Init();
Setup_USARTS();
Send_USART3("System Initialised, ENABLE IRQs\r\n");
__enable_irq();
__________________________
==> FREEZE HERE <==
------------------------------------
Send_USART3("LAUNCH !\r\n"); // never appears
while(1)
{
/* Applicative code */
}
=====================
I have my Faults_handlers set up (hardfault, memfault...) and none of them occurs...
I also tried to disable interruptions one by one like this:
=====================
for(uint8_t la=0;la<OTG_FS_IRQn;la++)
{
NVIC_DisableIRQ((IRQn_Type)la);
}
===================== Not successfull...
I try a lot of things but I dont know what to search, and how to make a diagnostic of it.
If whoever has an idea I am a taker...
Alexander
