How to call standalone application in uboot?

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

How to call standalone application in uboot?

1,407 次查看
anshulkhare
Contributor III

I have created standalone application in uboot  e.g"hello_world.bin" with load_addr 0x84000000 at ram

I am combining the above bin and uboot.imx in a single uboot.img

using "cat uboot.imx hello_world.pad > uboot.img"

The "uboot.img" image is loaded on board via sdcard. Now i want to run the above application.

I tried "go 0x84000000" command, it gives output

starting application at 0x84000000

  undefined instruction  

pc : [<84000138>]       lr : [<8ff6eb60>]
 reloc pc : [<83cc1138>]       lr : [<8fc2fb60>]
 sp : 8ef3cd60  ip : 8ef3cb01     fp : 8ef3e2b0
 r10: 00000002  r9 : 8ef3ceb8     r8 : 8ffd8e78
 r7 : 8ef3df30  r6 : 84000000     r5 : 00000002  r4 : 8ef3df34
 r3 : 84000000  r2 : 8ef3df34     r1 : 8ef3df34  r0 : 00000000
 Flags: nZCv  IRQs off  FIQs off  Mode SVC_32
 Resetting CPU ...
 
 resetting ...   

                                                             

and restart the uboot.

PS: Reset cause: WDOG

Thanks

标签 (1)
0 项奖励
回复
2 回复数

1,135 次查看
Carlos_Musich
NXP Employee
NXP Employee

Hi Anshul,

the process to attach the .bin to the uboot is correct but it will not set the application in the address in which you want. What is happening is that the application is loaded just after the uboot whichever that address is. So if you want to load your app in a specific address I recommend to use a FTP server.


Regards,
Carlos

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,135 次查看
anshulkhare
Contributor III

"What is happening is that the application is loaded just after the uboot whichever that address is"

But i want to load it via sd card. Is it not possible? How can i find on which address the following application is loaded?

0 项奖励
回复