Does anyone know of a free simulator software for C for ARM11 and PIC16. I have KEIL for compiling embedded C.B ut, I don't have any simulator to run the code. Any idea about this?
Here's what I do:
- Make the I/O accesses inline routines, and initially have these routines read and write from files or stdin/stdout.
- Test under Linux (usually Ubuntu). Even ISRs can be tested this way, using console inputs. Plus you have the advantage of catching things like seg faults, which isn't usually available to you in bare metal processing, and being able to add print routines to help with debugging.
- Then port to the target hardware and run.
You can build suprisingly sophisticated emulation tools with just a bit of code...