This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Simulate ARM7 over Qemu

Hello all, I am a complete beginner in ARM and I have only worked with AVR and Arduino boards before. What I want to do is write a simple C program which will print "Yes" when 1 is entered and "NO" when 2 is entered by the user. Now I have to compile the code using gnu GCC arm toolchain and create a binary patch for executable generated. The patch should work like this: When entered 1 print "NO" and for 2 print "Yes".
1. How do I compile the code using this toolchain
2. How to create and executable file
3. How to create a binary patch which would work as said.

I could not find any proper tutorials to do this on Windows 10 machine. So any tutorial links you can share to solve this will also be appreciated.

Thank you

Parents
  • Hello, Thank you for replying,

    Why particularly ARM7 - wouldn't a Cortex-M make more sense in this day & age?

    I have to use ARM7 it's compulsory for a project.

    And why particularly QEMU

    I have to use QEMU for a project. It's covid times so I cannot submit the hardware. It's compulsory to use QEMU.

    probably because ARM7 long predates Windows 10; even 7, IIRC.

    So should I be using Linux then? 

    Since, It's for a project I am not expecting a complete solution, but if you have any tutorials then that would be very helpful.

Reply
  • Hello, Thank you for replying,

    Why particularly ARM7 - wouldn't a Cortex-M make more sense in this day & age?

    I have to use ARM7 it's compulsory for a project.

    And why particularly QEMU

    I have to use QEMU for a project. It's covid times so I cannot submit the hardware. It's compulsory to use QEMU.

    probably because ARM7 long predates Windows 10; even 7, IIRC.

    So should I be using Linux then? 

    Since, It's for a project I am not expecting a complete solution, but if you have any tutorials then that would be very helpful.

Children