Running lm3s6965 BSP on Qemu

Steven Grunza sgrunza at ctdi.com
Wed May 9 12:33:25 UTC 2012


>Subject: Re: Running lm3s6965 BSP on Qemu
>
>I just followed the instruction you gave me here 
>>>http://git.rtems.org/rtems/tree/c/src/lib/libbsp/arm/lm3s69xx/README
>
>BTW , i have run it using this command 
>
>qemu-system-arm -net none -nographic -M lm3s6965evb -kernel hello.exe
>
>i got this 
>
>Warning: nic stellaris_enet.0 has no peer
>qemu: hardware error: gic_dist_writeb: Bad offset d1f
>
>CPU #0:
>R00=0000000b R01=000000ff R02=0000618d R03=e000ed07
>R04=0000000b R05=0000618d R06=00000000 R07=00000000
>R08=00000000 R09=00000000 R10=00000000 R11=00000000
>R12=00000001 R13=200010f0 R14=0000752b R15=0000753c
>PSR=20000173 --C- T svc32
>Aborted (core dumped)
>
>i tried 
>
>qemu-system-arm -net none -nographic -M lm3s6965evb -kernel hello.num
>
>and i got this 
>
>Warning: nic stellaris_enet.0 has no peer
>qemu: fatal: Trying to execute code outside RAM or ROM at 0x20202020
>
>R00=00000000 R01=00000000 R02=00000000 R03=00000000
>R04=00000000 R05=00000000 R06=00000000 R07=00000000
>R08=00000000 R09=00000000 R10=00000000 R11=00000000
>R12=00000000 R13=20202020 R14=00000000 R15=20202020
>PSR=40000153 -Z-- A svc32
>Aborted (core dumped)

Try the .ralf file


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

CPU #0:
R00=00000000 R01=00000000 R02=00000000 R03=e000e100
R04=00000000 R05=00000000 R06=00000000 R07=00000000
R08=00000000 R09=00000000 R10=00000000 R11=00000000
R12=ff0068c0 R13=20001130 R14=0000014b R15=0000047e
PSR=600001b3 -ZC- T svc32
Abort

Steven G.




More information about the users mailing list