#include<stdio.h>
int main() { unsigned char buff; FILE *fp = fopen("Hi.txt","r"); FILE *out = fopen("Hi1.txt","w"); while(!feof(fp)) { fread(&buff,1,1,fp); fprintf(out, "%d ,",buff); } fclose(fp); fclose(out); return 0; }
This code i am able to run on MingGW. But on Keil i am able to compile only but not able to Debug Why?
Thanks for reply,
My aim is to store one file into EEPROM.
I am using JTAG.
Can i do like that i read file from system harddisk and store it in EEPROM. This thing i want to do while debugging by uLINK2.
My file is to long i can not do that i put whole file into RAM or Flash.
Consider creating a Flash Algorithm applet, see \Keil\ARM\Flash for other examples. Then commands like "LOAD" should work in the debugger.
Other alternatives are to implement X/Y-Modem and drivers for your memory, and download files to the target from your terminal app.