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 toolchain2. How to create and executable file3. 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
Why particularly ARM7 - wouldn't a Cortex-M make more sense in this day & age?
https://community.arm.com/developer/tools-software/tools/f/keil-forum/43684/lpc2148-timer0-not-working-as-expected/158931#158931
And why particularly QEMU - as noted in the above link, current chips these days are available with low-cost dev boards that include a debug probe - so you can throw away all the doubts & uncertainties of simulators, and just use the actual hardware!
Itachi02 said:How do I compile the code using this toolchain
In very much the same way that you compiled code for an AVR.
What IDE will you be using?
If you're familiar with Atmel (now Microchip) Studio, then you can use that for Microchip's ARM-based parts
The SAM D20/21 would probably be a reasonable step-up from AVR:
https://www.youtube.com/watch?v=ufynmzcnOsQ
and an Xplained-Pro board:
www.microchip.com/.../ATSAMD20-XPRO
There are Cortex-M Arduinos available; eg,
https://store.arduino.cc/arduino-zero - SAM D21
Itachi02 said:I could not find any proper tutorials to do this on Windows 10
probably because ARM7 long predates Windows 10; even 7, IIRC.
Hello, Thank you for replying,
Andy Neil said: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.
Andy Neil said: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.
Andy Neil said: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.
Presumably this is for a school assignment, then?
So, surely, your lessons and set reading must have covered the basics of how to set things up and get started?
If you're struggling with that, you should be talking to your teachers/tutors.
Itachi02 said:Andy Neil said:probably because ARM7 long predates Windows 10; even 7, IIRC. So should I be using Linux then?
You missed the point!
My point was about the age of ARM7 relative to Win10.
Andy Neil said:Presumably this is for a school assignment, then? So, surely, your lessons and set reading must have covered the basics of how to set things up and get started?
No it's not for an assignment, If had lessons and books why would I post the issue here.
Andy Neil said:If you're struggling with that, you should be talking to your teachers/tutors.
Also I don't have any tutors, It's a project I am doing that's all. My issue is just that I have to simulate ARM7 in QEMU. Can you please reply only if you have a solution to this problem.
Itachi02 said:Can you please reply only if you have a solution to this problem
The "problem" seems to be largely of your own making.
OK, so I'm out.
Thank you!