All of lore.kernel.org
 help / color / mirror / Atom feed
From: Erick Castillo <Erick@AirLink.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] AT91RM9200 -> UBoot and arm/thumb interworking
Date: Wed, 14 Jul 2004 20:30:07 -0700	[thread overview]
Message-ID: <200407142030211.SM00572@ENG2> (raw)

Hello, 

I'm getting started with an AT91RM9200 development kit from atmel and am
having trouble starting a simple application with UBoot. If I compile my
application into 32bit arm code only, I can successfully load and run some
simple startup code through the 'loadb' and 'go' commands that UBoot offers.


 

I have two files: startup.s and main.c. "startup.s" does nothing more than
set up some vector branches, initializes a stack, and jumps to main. All
main does is drive a user led on the development board. As I said, compiling
this in 32 bit arm seems to work fine when I load to 0x2000 0000. If I try
to compile the main.c source code in thumb mode, then the 'bx' branch to
main fails and the code does not run. The code preceding the branch is: 

.

 ldr r0, =main

 mov r13, pc 

 bx r0

 

I was wondering if there was some initializations made by UBoot that would
prevent it from loading thumb code. Any help/ideas would be especially
useful. Thanks. 

 

--Erick 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20040714/802a79df/attachment.htm 

             reply	other threads:[~2004-07-15  3:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-15  3:30 Erick Castillo [this message]
2004-07-15  7:47 ` [U-Boot-Users] AT91RM9200 -> UBoot and arm/thumb interworking Wolfgang Denk

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=200407142030211.SM00572@ENG2 \
    --to=erick@airlink.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.