Execution of standalone application in uboot

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

Execution of standalone application in uboot

515 Views
NoyalJohn
Contributor I

Hello All,

I am compiling a standalone application in u-boot consisting of a main function and sub function (which is invoked from the main). My main application starts with app_startup(argv). The application was compiled successfully and loaded into the target board of power architecture. While executing the application, the control jumps to sub function without executing the main function. Could not able to find out the reason for this behavior. How to resolve this issue?

I am attaching the application and output for better understanding,

 

With regards,

Noyal Johnson

0 Kudos
3 Replies

514 Views
NoyalJohn
Contributor I

The files attached here,

0 Kudos

451 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please test u-boot "Hello World" Demo on your target board first.

"Hello World" Demo:
-------------------

'examples/hello_world.c' contains a small "Hello World" Demo
application; it is automatically compiled when you build U-Boot.
It's configured to run at address 0x00040004, so you can play with it
like that:

=> loads
## Ready for S-Record download ...
~>examples/hello_world.srec
1 2 3 4 5 6 7 8 9 10 11 ...
[file transfer complete]
[connected]
## Start Addr = 0x00040004

=> go 40004 Hello World! This is a test.
## Starting application at 0x00040004 ...
Hello World
argc = 7
argv[0] = "40004"
argv[1] = "Hello"
argv[2] = "World!"
argv[3] = "This"
argv[4] = "is"
argv[5] = "a"
argv[6] = "test."
argv[7] = "<NULL>"
Hit any key to exit ...

0 Kudos

393 Views
NoyalJohn
Contributor I

Dear Sir,

Thanks for the response. I loaded the hello world sample application in the target board and found working fine. Kindly find the log file attached.

0 Kudos