Blinky basic application not loading in uboot for the same load address as hello world

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

Blinky basic application not loading in uboot for the same load address as hello world

403 Views
Neha_V
Contributor II

i have configured unused gpio in A53 dts like below
aliases {
led0 = &myled0;
};

leds {
compatible = "gpio-leds";
myled0: led_0 {
gpios = <&gpio4 20 GPIO_ACTIVE_LOW>;
};
};

During compilation time no issue but while loading in uboot it is hanging .I have used below commands for loading in uboot.
fatload mmc 0:1 0x40000000 zephyr.bin
dcache off; icache flush
go 0x40000000


the same commands works for fine for other applications but for blinky appliaction its hanging like this
U-Boot 2023.04-00001-gb88d03b44c1-dirty (Jan 07 2025 - 11:05:26 +0530)

CPU: i.MX8MP[8] rev1.1 1600 MHz (running at 1200 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 50C
Reset cause: POR
Model: iW-RainboW-G40M-i.MX8MP-OSM
Board: iWave iW-RainboW-G40M OSM
DRAM: 2 GiB
optee optee: OP-TEE api uid mismatch
Core: 257 devices, 35 uclasses, devicetree: separate
MMC: FSL_SDHC: 1, FSL_SDHC: 0
Loading Environment from MMC... *** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
SEC0: RNG instantiated
Board Info:
BSP Version : iW-PRGLZ-SC-01-R2.0-REL0.1-Linux6.6.3 Debian 12
SOM Version : iW-PRGLZ-AP-01-R2.0
CPU Unique ID : 0x0A0878007A3A417A
Carrier Board Version : iW-PRGJJ-AP-01-R1.0

switch to partitions #0, OK
mmc0(part 0) is current device
flash target is MMC:0
Net: eth0: ethernet@30be0000 [PRIME], eth1: ethernet@30bf0000
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
iWave-G40M>
iWave-G40M>
iWave-G40M>
iWave-G40M> ums 0 mmc 0
UMS: LUN 0, dev mmc 0, hwpart 0, sector 0x0, count 0x1d5a000
CTRL+C - Operation aborted
iWave-G40M> fatload mmc 0:1 0x40000000 zephyr.bin
93984 bytes read in 3 ms (29.9 MiB/s)
iWave-G40M> dcache off; icache flush
iWave-G40M> go 0x40000000
## Starting application at 0x40000000 ...



0 Kudos
Reply
1 Reply

358 Views
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @Neha_V 

 

I hope you are doinf very well.
 
Just to clarify: Zephyr is not officially supported in this support channel, so we are unable to assist with issues related to Zephyr-based applications, including DTS configurations or runtime behavior on Zephyr.

If you are working with Zephyr on the i.MX8MP platform, I recommend reaching out to the Zephyr Project community or checking their GitHub discussions for more targeted support.

Let me know if you would like help with Linux, U-Boot, or anything else related to supported platforms!
 
Best regards, 
Salas.
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2188298%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EBlinky%20basic%20application%20not%20loading%20in%20uboot%20for%20the%20same%20load%20address%20as%20hello%20world%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2188298%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%20class%3D%22%22%3Ei%20have%20configured%20unused%20gpio%20in%20A53%20dts%20like%20below%3CBR%20%2F%3Ealiases%20%7B%3CBR%20%2F%3Eled0%20%3D%20%26amp%3Bmyled0%3B%3CBR%20%2F%3E%7D%3B%3CBR%20%2F%3E%3CBR%20%2F%3Eleds%20%7B%3CBR%20%2F%3Ecompatible%20%3D%20%22gpio-leds%22%3B%3CBR%20%2F%3Emyled0%3A%20led_0%20%7B%3CBR%20%2F%3Egpios%20%3D%20%26lt%3B%26amp%3Bgpio4%2020%20GPIO_ACTIVE_LOW%26gt%3B%3B%3CBR%20%2F%3E%7D%3B%3CBR%20%2F%3E%7D%3B%3CBR%20%2F%3E%3CBR%20%2F%3EDuring%20compilation%20time%20no%20issue%20but%20while%20loading%20in%20uboot%20it%20is%20hanging%20.I%20have%20used%20below%20commands%20for%20loading%20in%20uboot.%3CBR%20%2F%3Efatload%20mmc%200%3A1%200x40000000%20zephyr.bin%3CBR%20%2F%3Edcache%20off%3B%20icache%20flush%3CBR%20%2F%3Ego%200x40000000%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3Ethe%20same%20commands%20works%20for%20fine%20for%20other%20applications%20but%20for%20blinky%20appliaction%20its%20hanging%20like%20this%3CBR%20%2F%3EU-Boot%202023.04-00001-gb88d03b44c1-dirty%20(Jan%2007%202025%20-%2011%3A05%3A26%20%2B0530)%3CBR%20%2F%3E%3CBR%20%2F%3ECPU%3A%20i.MX8MP%5B8%5D%20rev1.1%201600%20MHz%20(running%20at%201200%20MHz)%3CBR%20%2F%3ECPU%3A%20Industrial%20temperature%20grade%20(-40C%20to%20105C)%20at%2050C%3CBR%20%2F%3EReset%20cause%3A%20POR%3CBR%20%2F%3EModel%3A%20iW-RainboW-G40M-i.MX8MP-OSM%3CBR%20%2F%3EBoard%3A%20iWave%20iW-RainboW-G40M%20OSM%3CBR%20%2F%3EDRAM%3A%202%20GiB%3CBR%20%2F%3Eoptee%20optee%3A%20OP-TEE%20api%20uid%20mismatch%3CBR%20%2F%3ECore%3A%20257%20devices%2C%2035%20uclasses%2C%20devicetree%3A%20separate%3CBR%20%2F%3EMMC%3A%20FSL_SDHC%3A%201%2C%20FSL_SDHC%3A%200%3CBR%20%2F%3ELoading%20Environment%20from%20MMC...%20***%20Warning%20-%20bad%20CRC%2C%20using%20default%20environment%3CBR%20%2F%3E%3CBR%20%2F%3EIn%3A%20serial%3CBR%20%2F%3EOut%3A%20serial%3CBR%20%2F%3EErr%3A%20serial%3CBR%20%2F%3ESEC0%3A%20RNG%20instantiated%3CBR%20%2F%3EBoard%20Info%3A%3CBR%20%2F%3EBSP%20Version%20%3A%20iW-PRGLZ-SC-01-R2.0-REL0.1-Linux6.6.3%20Debian%2012%3CBR%20%2F%3ESOM%20Version%20%3A%20iW-PRGLZ-AP-01-R2.0%3CBR%20%2F%3ECPU%20Unique%20ID%20%3A%200x0A0878007A3A417A%3CBR%20%2F%3ECarrier%20Board%20Version%20%3A%20iW-PRGJJ-AP-01-R1.0%3CBR%20%2F%3E%3CBR%20%2F%3Eswitch%20to%20partitions%20%230%2C%20OK%3CBR%20%2F%3Emmc0(part%200)%20is%20current%20device%3CBR%20%2F%3Eflash%20target%20is%20MMC%3A0%3CBR%20%2F%3ENet%3A%20eth0%3A%20ethernet%4030be0000%20%5BPRIME%5D%2C%20eth1%3A%20ethernet%4030bf0000%3CBR%20%2F%3EFastboot%3A%20Normal%3CBR%20%2F%3ENormal%20Boot%3CBR%20%2F%3EHit%20any%20key%20to%20stop%20autoboot%3A%200%3CBR%20%2F%3EiWave-G40M%26gt%3B%3CBR%20%2F%3EiWave-G40M%26gt%3B%3CBR%20%2F%3EiWave-G40M%26gt%3B%3CBR%20%2F%3EiWave-G40M%26gt%3B%20ums%200%20mmc%200%3CBR%20%2F%3EUMS%3A%20LUN%200%2C%20dev%20mmc%200%2C%20hwpart%200%2C%20sector%200x0%2C%20count%200x1d5a000%3CBR%20%2F%3ECTRL%2BC%20-%20Operation%20aborted%3CBR%20%2F%3EiWave-G40M%26gt%3B%20fatload%20mmc%200%3A1%200x40000000%20zephyr.bin%3CBR%20%2F%3E93984%20bytes%20read%20in%203%20ms%20(29.9%20MiB%2Fs)%3CBR%20%2F%3EiWave-G40M%26gt%3B%20dcache%20off%3B%20icache%20flush%3CBR%20%2F%3EiWave-G40M%26gt%3B%20go%200x40000000%3CBR%20%2F%3E%23%23%20Starting%20application%20at%200x40000000%20...%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2189455%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Blinky%20basic%20application%20not%20loading%20in%20uboot%20for%20the%20same%20load%20address%20as%20hello%20world%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2189455%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F251902%22%20target%3D%22_blank%22%3E%40Neha_V%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CDIV%3EI%20hope%20you%20are%20doinf%20very%20well.%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3EJust%20to%20clarify%3A%20Zephyr%20is%20not%20officially%20supported%20in%20this%20support%20channel%2C%20so%20we%20are%20unable%20to%20assist%20with%20issues%20related%20to%20Zephyr-based%20applications%2C%20including%20DTS%20configurations%20or%20runtime%20behavior%20on%20Zephyr.%3C%2FDIV%3E%0A%3CDIV%3E%3CBR%20clear%3D%22none%22%20%2F%3EIf%20you%20are%20working%20with%20Zephyr%20on%20the%20i.MX8MP%20platform%2C%20I%20recommend%20reaching%20out%20to%20the%20Zephyr%20Project%20community%20or%20checking%20their%20GitHub%20discussions%20for%20more%20targeted%20support.%3C%2FDIV%3E%0A%3CDIV%3E%3CBR%20clear%3D%22none%22%20%2F%3ELet%20me%20know%20if%20you%20would%20like%20help%20with%20Linux%2C%20U-Boot%2C%20or%20anything%20else%20related%20to%20supported%20platforms!%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3EBest%20regards%2C%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3ESalas.%3C%2FDIV%3E%3C%2FLINGO-BODY%3E