No output message on my serial terminal

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

No output message on my serial terminal

跳至解决方案
3,005 次查看
ababatola
Contributor III

I am working on a imx8mp and am to bring up the Cortex M7 core.

I downloaded the SDK and followed the steps in the session 5.2 (of MCUXSDKIMX8MPGSUG) to generate my binary images.

I was able to flash the image on my custom board and I got this message from the u-boot terminal


PicoCoreMX8MP # bootaux 0x7e0000
## Starting auxiliary core stack = 0x20020000, pc = 0x0000048D...

However, there was no (hello world) display at my serial terminal.  I have checked the serial connection and the setup and all looks fine.

I also checked the hello world example code but I did not find anything in it.

What can I do or what am I missing to make the example code work.

Thanks

 

 

标签 (1)
0 项奖励
回复
1 解答
2,836 次查看
ababatola
Contributor III

Sorry for the late reply.  

I have been able to solve the problem.  Among the steps I took was to reconfigure the pins for the uart.  Thanks

在原帖中查看解决方案

0 项奖励
回复
5 回复数
2,837 次查看
ababatola
Contributor III

Sorry for the late reply.  

I have been able to solve the problem.  Among the steps I took was to reconfigure the pins for the uart.  Thanks

0 项奖励
回复
2,978 次查看
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your interest in NXP Semiconductor products

Could you confirm your process with the following?

Cortex-M SDK Hello World Demo.

 

PS C:\> scp '.\Downloads\Arm GCC Toolchain\arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi.tar.xz' user@host:~/Projects/ARM-

GCC-Toolchain/                                                                                                                                                           

                                                                                                                      

arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi.tar.xz                                                                                100%  148MB   1.4MB/s   01:46

 

~/Projects/ARM-GCC-Toolchain$ tar -xf arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi.tar.xz                                                         

 

~/Projects/ARM-GCC-Toolchain$ sudo mv arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi/ /op

 

PS C:\> scp '.\Downloads\MCUXpresso SDK 2.14.0 i.MX 8M Plus\SDK_2_14_0_EVK-MIMX8MP.zip' user@host:~/Projects/MCUXpresso-SDK/SDK-2.14.0-8MPlus/

                                                                                                                      

SDK_2_14_0_EVK-MIMX8MP.zip                                                                                                             100%   18MB   1.3MB/s   00:14

 

~/Projects/MCUXpresso-SDK/SDK-2.14.0-8MPlus$ unzip SDK_2_14_0_EVK-MIMX8MP.zip

 

~/Projects/MCUXpresso-SDK/SDK-2.14.0-8MPlus$ export ARMGCC_DIR=/opt/arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi/

 

~/Projects/MCUXpresso-SDK/SDK-2.14.0-8MPlus$ cd boards/evkmimx8mp/demo_apps/hello_world/armgcc/                                                       

 

~/Projects/MCUXpresso-SDK/SDK-2.14.0-8MPlus/boards/evkmimx8mp/demo_apps/hello_world/armgcc$ ./build_release.sh                                         

[100%] Built target hello_world.elf

 

PS C:\> scp user@host:~/Projects/MCUXpresso-SDK/SDK-2.14.0-8MPlus/boards/evkmimx8mp/demo_apps/hello_world/armgcc/release/ '.\Downloads\MCUXpresso SDK 2.14.0 i.MX 8M Plus\binaries'

 

u-boot=> fastboot 0

 

PS C:\> uuu -v -b fat_write .\hello_world.bin mmc 2:1 hello_world.bin

 

u-boot=> fatload mmc 2:1 0x48000000 hello_world.bin;cp.b 0x48000000 0x7e0000 20000;

 

u-boot=> bootaux 0x7e0000

 

josephlinares_1-1689109150596.png

 

Regards

0 项奖励
回复
2,946 次查看
ababatola
Contributor III

I have also tested the steps you gave above but the result is still the same.   No output at the putty terminal and the message that the coretx M7 is started is same (as below)

## Starting auxiliary core stack = 0x20020000, pc = 0x0000048D...

Thanks

0 项奖励
回复
2,956 次查看
ababatola
Contributor III

hi,

Thanks for your response.

As said in my message, I did the build based on section 5.2 (of the getting started with MCUXpresso SDK for EVK-MIMX8MP) which is a build on a windows OS host.

Snapshots of the build process are below

build_imx8mp_cortexm7_1.PNG

build_imx8mp_cortexm7_2.PNG

However if I have to do the build on a linux host, I can also do that.

Thanks.

 

0 项奖励
回复
2,903 次查看
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Sorry for the late reply, I've had some trouble with the page.

I don't have experience with a custom board but I'd try the following.

1. Listen to all available UARTs in terminal.

2. Try Hello World in FreeRTOS from F&S. You can see that there is a customization for UART selection.

3. Delete EVK-SDK and instead download Processor-SDK. And there you should focus on the differences between PicoCore and EVK's SOM to adjust pin_mux.c

josephlinares_0-1689889091274.png

The last step is necessary if you are interested in using directly NXP SDK.

Thank you for your patience.

0 项奖励
回复