S32K144 UART error when initial in boot&app

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K144 UART error when initial in boot&app

626 Views
jingfang
Contributor IV

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.

0 Kudos
3 Replies

607 Views
danielmartynek
NXP TechSupport
NXP TechSupport

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

 

0 Kudos

605 Views
jingfang
Contributor IV

Thanks a lot~

I refer to demo code, it has a reset clock&common&timeout before the jump.

Is there anything else that needs reset, such as RAM?

 

0 Kudos

600 Views
danielmartynek
NXP TechSupport
NXP TechSupport

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

 

0 Kudos