i.MX8ULP change U-boot debug terminal to LPUART7

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

i.MX8ULP change U-boot debug terminal to LPUART7

ソリューションへジャンプ
315件の閲覧回数
jc3
Contributor I

Hello,

I have a board that is very similar to the imx8ulp-evk, but I am having some trouble switching the debug terminal from LPUART5 to LPUART7. I've referenced this post https://community.nxp.com/t5/i-MX-Processors/iMX8ULP-change-u-boot-serial-console-from-UART5-to-UART... and made the following changes:

  • For imx-atf plat/imx/imx8ulp/include/platform_def.h added #define IMX_LPUART7_BASE U(0x29870000) and changed #define IMX_LPUART_BASE to be IMX_LPUART7_BASE.
  • In my local.conf added the line ATF_BOOT_UART_BASE = "0x29870000"
  • In meta-freescale/conf/machine/include/imx8ulp-evk.inc changed SERIAL_CONSOLES = "115200;ttyLP1" to be SERIAL_CONSOLES = "115200;ttyLP3"
  • For U-boot include/configs/imx8ulp_evk.h changed console=ttyLP1 to console=ttyLP3
  • For U-boot device tree imx8ulp-evk.dts:
    • Changed stdout-path to be &lpuart7
    • In bootargs changed console=ttyLP1 to console=ttyLP3
    • Enabled lpuart7
    • Created a pin group for lpuart7 that muxes PTE14 and PTE15 to LPUART7 TX and RX with configurations 0x3
    • Kept lpuart5 enabled but removed the pin group
  • In imx8ulp-evk-u-boot.dtsi, changed &pinctrl_lpuart5 and &lpuart5 to be &pinctrl_lpuart7 and &lpuart7
  • In the U-boot config, I've also set:
    • CONFIG_SPL_LOG=y
    • CONFIG_SPL_LOG_MAX_LEVEL=9
    • CONFIG_SPL_LOG_CONSOLE=y

However, I'm still not seeing anything on LPUART7. Any thoughts on what I am missing?

ラベル(1)
0 件の賞賛
返信
1 解決策
284件の閲覧回数
AldoG
NXP TechSupport
NXP TechSupport

Hello,

The only change that I see that you are missing would be changing the definition on uboot here:
https://github.com/nxp-imx/uboot-imx/blob/lf_v2025.04/arch/arm/include/asm/arch-imx8ulp/imx-regs.h#L...

Unless I miss it in your post, please try to change this as well.

Best regards/Saludos,
Aldo.

元の投稿で解決策を見る

2 返答(返信)
285件の閲覧回数
AldoG
NXP TechSupport
NXP TechSupport

Hello,

The only change that I see that you are missing would be changing the definition on uboot here:
https://github.com/nxp-imx/uboot-imx/blob/lf_v2025.04/arch/arm/include/asm/arch-imx8ulp/imx-regs.h#L...

Unless I miss it in your post, please try to change this as well.

Best regards/Saludos,
Aldo.

259件の閲覧回数
jc3
Contributor I

Thanks that fixed it!