The user only has the app at the beginning, so he initializes clock, UART, can and so on in the APP.Now boot is added, and clock, CAN, UART, etc., are initialized.
The UART prompts garbled characters.
Delete the initialization in the app, then normal.
Is that a good way to solve it? It doesn't feel complete.
Hello @jingfang,
The MCU can be reset before the MCU goes to the application.
I mean the startup code can decide whether it goes to the bootloader or to the application.
Do you use SDK/RTD or your own implementation?
If you use the drivers, you can deinit the module before the jump.
BR, Daniel
Hard to say, I don't know what and how it was initialized in the bootloader and how it will be initialized in the application.
However, SRAM initialization is typically done in the startup code of the application, there should be no problem.
BR, Daniel