public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: J.P. Casainho <casainho@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] help in understand the address of standalone applications, ARM MCU
Date: Sun, 11 May 2008 17:36:50 +0100	[thread overview]
Message-ID: <200805111736.50691.casainho@gmail.com> (raw)

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

             reply	other threads:[~2008-05-11 16:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-11 16:36 J.P. Casainho [this message]
2008-05-11 18:31 ` [U-Boot-Users] help in understand the address of standalone applications, ARM MCU 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200805111736.50691.casainho@gmail.com \
    --to=casainho@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox