Hi,
i am using uVision ver5 to compile my solution for Cortex-M4 core. I am just using the IDE for simulation with no I/O peripherals , to test my solution i need to read a hex file and generate output correspondigly, but i feel FILE operations as C/C++ is not supported on uVision.
Can somebody please suggest some alternative to read/write hex data for simulation only.
Thanks,
Any particular reason for not using real hardware?
On real hardware, you could use Semihosting for the target to access host files.
www.keil.com/.../armcc_pge1358787046598.htm
I don't know if that's possible in the uVision Simulator.
I gather that it should be possible using QEMU and Eclipse, but have never tried it: gnu-mcu-eclipse.github.io/.../
Test the bulk of the code in Windows with a C compiler. Build a framework to pump data in/out at the abstraction between actual hardware.
Alternatively find a emulation that supports serial input/output, or find some donor M4 board with serial and sdcard and build a test framework on that.
Compile the .HEX file as a C array, and read via a pointer.
Assume you're testing a Boot ROM