public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] help in understand the address of standalone applications, ARM MCU
@ 2008-05-11 16:36 J.P. Casainho
  2008-05-11 18:31 ` Wolfgang Denk
  0 siblings, 1 reply; 8+ messages in thread
From: J.P. Casainho @ 2008-05-11 16:36 UTC (permalink / raw)
  To: u-boot

Hello :-)

I would like to create a standalone application and I already read manual and 
also asked help here and got one good example however I can't get It working 
and I think the problem is in the address.

I am using an Olimex dev. board with a ARM9, AT91SAM9260 MCU. On my makefile I 
am linking with address 0xc100000, "LDFLAGS=-Bstatic -Ttext 0xc100000" -- is 
this address correct? How can I have sure of that? -- I got this value from 
makefile of "hello world" example.

When I do "tftp 0xc100000 flash_led.bin" the system hangs.. while If I try to 
do for example "tftp 0x1000 flash_led.bin" the code loads ok but after "go 
0x1000", the code does not work... It evens return while shouldn't because of 
an infinite loop on the code.

In the manual of the dev. board I have a memory map that says the 64MB RAM 
starts at 0x20000000 and ends on 0x23FFFFFF - If I do "tftp 0x20000000 
flash_LED.bin" system also hangs...

Can someone help me?

My flash_LED code is here: 
http://code.google.com/p/rockboxplayer/source/browse/trunk/flash_LED

And the help, example, I got before here in the mailing list: 
http://code.google.com/p/rockboxplayer/wiki/Flash_LED

I must say that with my dev. board comes an "hello world" example which is an 
empty function :-( -- but even I don't know to what address I should load it.

I did turn ON and OFF the LED on the dev. board using U-Boot shell, using the 
memory write and memory display commands ;-) -- I did write configure values 
to the PIO controller, enabling the PA6 pin as output and set and clear that 
pin to turn OFF and ON the green LED.

I am working on a Free/Open hardware digital audio player and recorder: 
http://www.rockbox.org/twiki/bin/view/Main/RockboxPlayer

Thanks in advance,

JPCasainho - http://www.Casainho.net

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [U-Boot-Users] help in understand the address of standaloneapplications, ARM MCU
@ 2008-05-12  8:50 J.P. Casainho
  0 siblings, 0 replies; 8+ messages in thread
From: J.P. Casainho @ 2008-05-12  8:50 UTC (permalink / raw)
  To: u-boot

"I tried a more complex code that uses a periodic interval timer to do a delay 
on flash LED code however this code does not work, It comes back to U-Boot 
shell with return value of 1. What can I be doing wrong?" -- to answer my own 
questions, the page 
http://www.denx.de/wiki/view/DULG/MyStandaloneProgramDoesNotWork did help 
because I was not going to the right entry point :-)

Thank you all :-) :-)

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-05-12  8:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-11 16:36 [U-Boot-Users] help in understand the address of standalone applications, ARM MCU J.P. Casainho
2008-05-11 18:31 ` Wolfgang Denk
2008-05-11 19:51   ` J.P. Casainho
2008-05-11 20:22     ` Alessandro Rubini
2008-05-11 20:36     ` Wolfgang Denk
2008-05-11 20:40   ` [U-Boot-Users] help in understand the address of standaloneapplications, " Ulf Samuelsson
2008-05-12  0:01     ` J.P. Casainho
  -- strict thread matches above, loose matches on Subject: below --
2008-05-12  8:50 J.P. Casainho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox