How to use qemu simulate Cortex-R4

Asked by gangster

Now I'm trying to simulate Cortex-R4 CPU in qemu, but there is no board related to Cortex-R4, who can show me a way how to get the sample code for bare metal Cortex-R4, including the ASM code, and the qemu model for Cortex-R4.Many thanks!

Question information

Language:
English Edit question
Status:
Answered
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
TM (tm1234) said :
#1

Have you looked at the GNU ARM Eclipse project in case the QEMU and example projects that it provides are of any use in this context?

http://gnuarmeclipse.github.io
http://gnuarmeclipse.github.io/qemu/download/
http://gnuarmeclipse.github.io/templates/cortexm/

Hope this helps.

Revision history for this message
Tejas Belagod (belagod-tejas) said :
#2

Hi,

Are you looking for startup code or a sample application? The release ships with some sample startup code for M-devices. This should give you some hints to port them to R.

Thanks,
Tejas.

Revision history for this message
gangster (gangstergee) said :
#3

Hi Tejas,

Thank you to answer my question, actually I'm looking for startup code fo Cortex-R4 serial, I just need one common code base, which can bring CPU up, jump to main(), that's all, thanks!

Can you help with this problem?

Provide an answer of your own, or ask gangster for more information if necessary.

To post a message you must log in.