S32K144 UART error when initial in boot&app

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K144 UART error when initial in boot&app

2,154件の閲覧回数
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 件の賞賛
返信
3 返答(返信)

2,135件の閲覧回数
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 件の賞賛
返信

2,132件の閲覧回数
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 件の賞賛
返信

2,127件の閲覧回数
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 件の賞賛
返信