STM32F7, custom bootloader loads firmware but firmware fails on call to HAL_TIM_Base_Start.
Hello,
I'm working with a STM32F7 MCU, Using Keil uVision.
I'm developing a cutom bootloader and I have to shift another firmware in memory for it to launch.
Firmware developed by another team that uses interrupts.
I successfully launched simple led toggling programs to verify that the bootloader works fine.
The firmware I'm having an issue gives me the following behavior:
I have my target with the bootloader already in place.
I start the debugger with the firmware write shifted to the correct position. The debugger launches, executes the bootloader and jumps to the firmware.
The first call in the main function is HAL_Init() which then calls HAL_InitTick().
At the end of the HAL_InitTick() [stm32f7xx_hal_timebase_TIM.c] there is a call to HAL_TIME_Base_Start() that if I step other makes the program crash.
The debugger that should have stopped for the step keeps running.
After I stop it the ProgramCounter points back to bootloader address zone.
I'm at a loss for what to look for.
