How to keep GPIO status between bootloader to application?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to keep GPIO status between bootloader to application?

95 次查看
f-nelson
Contributor IV

Hi NXP:
we created two projects for bootloader and application, it can works fine.
but we encounter GPIO status will be reseted problem when it is from bootloader to application,
it looks like re-initial all GPIO status in application code startup.
any ideas for avoiding this issue,many thanks.

current environment description:
MCU:S32K312/100pin
S32DS Product:3.5.0.202207261815
RTD S32KXX:RTD5.0.0.202410011049(installed RTD5.0.0_P8)
HSE firmware:HSE_FW_S32K312_0_2_55_0

BR
Nelson

0 项奖励
回复
1 回复

74 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@f-nelson

If you're using our port initialization API, this situation is unavoidable. There are two solutions: 1. Initialize the ports in the bootloader, but not in the app. For example, if you need to call UART0 in the bootloader and UART1 in the app, you can initialize UART0 and UART1 directly in the bootloader, avoiding the need for re-initialization in the app. However, this approach has some drawbacks and may not be suitable for ports that need to be reused. 2. Instead of using the RTD API, initialize the ports individually using bare-metal code.

0 项奖励
回复