
Dear All,
I'm completely new to U-Boot and trying to develop a standalone application (developing on a Windows machine with the Code Red IDE).
So far, I managed to start a simple application that toggles GPIOs. However, when I try to call a function in main() the app immediately crashes or hangs.
U-Boot reports errors like:
fast interrupt request pc : [<a1f97bfc>] lr : [<00017e58>] sp : a1fffcf0 ip : a1fadf04 fp : 7ff7f1d2 r10: acd7a91e r9 : 353a342d r8 : a1f5cf70 r7 : ffffd1d4 r6 : ffffd307 r5 : ffffd197 r4 : ffffd163 r3 : 20000013 r2 : ffffd14f r1 : fa47fca1 r0 : ffffd01b Flags: nzCv IRQs on FIQs on Mode SVC_32 Resetting CPU ...
In what direction should I start looking to solve this?
Your feedback is appreciated!
Thanks! Bart

Dear All,
I'm completely new to U-Boot and trying to develop a standalone application (developing on a Windows machine with the Code Red IDE).
So far, I managed to start a simple application that toggles GPIOs. However, when I try to call a function in main() the app immediately crashes or hangs.
U-Boot reports errors like:
fast interrupt request pc : [<a1f97bfc>] lr : [<00017e58>] sp : a1fffcf0 ip : a1fadf04 fp : 7ff7f1d2 r10: acd7a91e r9 : 353a342d r8 : a1f5cf70 r7 : ffffd1d4 r6 : ffffd307 r5 : ffffd197 r4 : ffffd163 r3 : 20000013 r2 : ffffd14f r1 : fa47fca1 r0 : ffffd01b Flags: nzCv IRQs on FIQs on Mode SVC_32 Resetting CPU ...
In what direction should I start looking to solve this?
Your feedback is appreciated!
Thanks! Bart
Uhum ... so my wild guess is you have a PXA based machine ? What compiler do you use? What version of U-Boot ? please, be more specific.
M

:-) thanks for asking
machine: embedded artists lpc2478 oem - arm7 compiler: arm-none-eabi-gcc-4.3.3.exe U-Boot: u-boot-1.1.6 with embedded artists patches
bin file is generated with "arm-none-eabi-objcopy -O binary app.bin"
uClinux boots correctly
Thanks! Bart
Dear All,
I'm completely new to U-Boot and trying to develop a standalone application (developing on a Windows machine with the Code Red IDE).
So far, I managed to start a simple application that toggles GPIOs. However, when I try to call a function in main() the app immediately crashes or hangs.
U-Boot reports errors like:
fast interrupt request pc : [<a1f97bfc>] lr : [<00017e58>] sp : a1fffcf0 ip : a1fadf04 fp : 7ff7f1d2 r10: acd7a91e r9 : 353a342d r8 : a1f5cf70 r7 : ffffd1d4 r6 : ffffd307 r5 : ffffd197 r4 : ffffd163 r3 : 20000013 r2 : ffffd14f r1 : fa47fca1 r0 : ffffd01b Flags: nzCv IRQs on FIQs on Mode SVC_32 Resetting CPU ...
In what direction should I start looking to solve this?
Your feedback is appreciated!
Thanks! Bart
Uhum ... so my wild guess is you have a PXA based machine ? What compiler do you use? What version of U-Boot ? please, be more specific.
M

Dear bart.deboeck@xenopz.com,
In message a679a9686ea722e09825f5e3c362e5e1.squirrel@195.88.32.193 you wrote:
:-) thanks for asking
machine: embedded artists lpc2478 oem - arm7 compiler: arm-none-eabi-gcc-4.3.3.exe U-Boot: u-boot-1.1.6 with embedded artists patches
Ouch. An out-of-tree port, and a prehistoric one at that.
U-Boot 1.1.6 is more than 5 years old. In terms of software development that was when saber-toothed tigers lurked behind each other stack frame. You do not want to use such old code. Do yourself (and us) a favour and update.
Also, GCC 4.3.x is probably not a clever choice on ARM. If I remeber correctly, it has tons of problems.s lurked behind each other stack frame. You do not want to use such old code. Do yourself (and us) a favour and update.
Also, GCC 4.3.x is probably not a clever choice on ARM. If I remeber correctly, it has tons of problems.
But your biggest problem is the out of tree code - we don't know it, so how should we be able to help?
Best regards,
Wolfgang Denk

Thanks for the feedback!
Is upgrading gcc to 4.5.1 reasonable?
I'll see what I can do about the u-boot-1.1.6
It might be helpfull if you can point me at documentation/examples that explain how a standalone application should be developed (I've read the documentation, but didn't find examples that compile out of the U-Boot source tree).
Thanks! Bart
Dear bart.deboeck@xenopz.com,
In message a679a9686ea722e09825f5e3c362e5e1.squirrel@195.88.32.193 you wrote:
:-) thanks for asking
machine: embedded artists lpc2478 oem - arm7 compiler: arm-none-eabi-gcc-4.3.3.exe U-Boot: u-boot-1.1.6 with embedded artists patches
Ouch. An out-of-tree port, and a prehistoric one at that.
U-Boot 1.1.6 is more than 5 years old. In terms of software development that was when saber-toothed tigers lurked behind each other stack frame. You do not want to use such old code. Do yourself (and us) a favour and update.
Also, GCC 4.3.x is probably not a clever choice on ARM. If I remeber correctly, it has tons of problems.s lurked behind each other stack frame. You do not want to use such old code. Do yourself (and us) a favour and update.
Also, GCC 4.3.x is probably not a clever choice on ARM. If I remeber correctly, it has tons of problems.
But your biggest problem is the out of tree code - we don't know it, so how should we be able to help?
Best regards,
Wolfgang Denk
-- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de If you're out of tree, you don't exist. - David Woodhouse in 1304620350.2398.29.camel@i7.infradead.org

solved, was a linker issue
gcc 4.3.3 and U-Boot 1.1.6 are ok for now, will upgrade once I understand how to port U-Boot to a "new" board
thanks for all the feedback, appreciated!
with much regards, Bart
Dear bart.deboeck@xenopz.com,
In message a679a9686ea722e09825f5e3c362e5e1.squirrel@195.88.32.193 you wrote:
:-) thanks for asking
machine: embedded artists lpc2478 oem - arm7 compiler: arm-none-eabi-gcc-4.3.3.exe U-Boot: u-boot-1.1.6 with embedded artists patches
Ouch. An out-of-tree port, and a prehistoric one at that.
U-Boot 1.1.6 is more than 5 years old. In terms of software development that was when saber-toothed tigers lurked behind each other stack frame. You do not want to use such old code. Do yourself (and us) a favour and update.
Also, GCC 4.3.x is probably not a clever choice on ARM. If I remeber correctly, it has tons of problems.s lurked behind each other stack frame. You do not want to use such old code. Do yourself (and us) a favour and update.
Also, GCC 4.3.x is probably not a clever choice on ARM. If I remeber correctly, it has tons of problems.
But your biggest problem is the out of tree code - we don't know it, so how should we be able to help?
Best regards,
Wolfgang Denk
-- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de If you're out of tree, you don't exist. - David Woodhouse in 1304620350.2398.29.camel@i7.infradead.org
participants (3)
-
bart.deboeck@xenopz.com
-
Marek Vasut
-
Wolfgang Denk