Hi, I am in an urgent requirement of incorporating an array of unsigned char [100][100] lookup table for calibrating a sensor data, into my program. The data is available in the form of a MS Excel sheet/txt file. After compilation, I wish to have the data to be there along with the hex file, and of course my program should be able to read the data from any element of the array.I searched for an example in Keil compiler manual, but i couldnt find any. Please Help me, its so urgent.
I searched for an example in Keil compiler manual, but i couldnt find any.
Well, it's not the job of a compiler (or even an IDE) to convert arbitrary file formats into C arrays.
That's what export functions (of the program that generates the abovementioned file format) are for, or scripting languages (VBA, perl, python, Matlab/Octave). If it needs to be automated. If you're only going to do it a handful of times, it may be the fastest to do the conversion manually.