Running lm3s6965 BSP on Qemu
Steven Grunza
sgrunza at ctdi.com
Wed May 9 12:52:14 UTC 2012
> -----Original Message-----
> From: Sebastian Huber [mailto:sebastian.huber at embedded-brains.de]
> Sent: Wednesday, May 09, 2012 8:38 AM
> To: Steven Grunza
> Cc: Hesham Moustafa; rtems-users at rtems.org
> Subject: Re: Running lm3s6965 BSP on Qemu
>
> On 05/09/2012 02:33 PM, Steven Grunza wrote:
> [...]
> > Try the .ralf file
>
> The .ralf and .exe file are the same. You can also use a .bin file.
Hmm, not on my build.
grunzasr at stm32dbg% make
arm-rtemseabi4.11-gcc --pipe
-B/opt/rtems-4.11/arm-rtemseabi4.11/lm3s6965/lib/ -specs bsp_specs
-qrtems -g -Wall -O2 -g -g -march=armv7-m -mthumb -c -o
o-optimize/test.o test.c
arm-rtemseabi4.11-gcc --pipe
-B/opt/rtems-4.11/arm-rtemseabi4.11/lm3s6965/lib/ -specs bsp_specs
-qrtems -g -Wall -O2 -g -g -march=armv7-m -mthumb
-march=armv7-m -mthumb -o o-optimize/hello.exe o-optimize/test.o
arm-rtemseabi4.11-nm -g -n o-optimize/hello.exe > o-optimize/hello.num
arm-rtemseabi4.11-size o-optimize/hello.exe
text data bss dec hex filename
76988 2044 16775184 16854216 1012cc8
o-optimize/hello.exe
arm-rtemseabi4.11-objcopy -O binary o-optimize/hello.exe
o-optimize/hello.ralf
grunzasr at stm32dbg% ls -l
total 2888
-rwxrwxr-x 1 grunzasr grunzasr 79032 May 8 16:36 hello.bin*
-rwxrwxr-x 1 grunzasr grunzasr 2711472 May 8 16:35 hello.exe*
-rw-rw-r-- 1 grunzasr grunzasr 28045 May 8 16:35 hello.num
-rwxrwxr-x 1 grunzasr grunzasr 79032 May 8 16:35 hello.ralf*
-rw-rw-r-- 1 grunzasr grunzasr 37040 May 8 16:35 test.o
grunzasr at stm32dbg% file hello.exe
hello.exe: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically
linked, not stripped
grunzasr at stm32dbg% file hello.ralf
hello.ralf: data
grunzasr at stm32dbg%
>
> >
> >
> > I also followed the instructions and it seems to work ok. I'm not
> concerned with what happens after the code finishes running since
> exiting main() is an odd thing in an embedded environment. I'm be
> looking into getting this running on an LM3S8962 eval board from TI
> soon.
> >
> > grunzasr at stm32dbg% qemu-system-arm -nographic -M lm3s6965evb
-kernel
> > hello.ralf
> >
> >
> > *** HELLO WORLD TEST ***
> > Hello World
> > *** END OF HELLO WORLD TEST ***
> > qemu: hardware error: gic_dist_writeb: Bad offset 4f0
>
> I found no way to perform a proper board reset, thus I use an invalid
> memory access to get out of the Qemu instance. This is the error
> message corresponding to bsp_reset().
>
> --
> Sebastian Huber, embedded brains GmbH
That's sort of what I was guessing as I haven't had time to read the
code yet.
More information about the users
mailing list