Using Flash functions to save ..Integer.. instead of ASCII


#1

Hi, I´m using

adl_flhWrite(gpsFlashObject,index,datalength,value);
function to register a data.

Registering value as ASCII works fine. But when I try to register a Integer or Long Integer wich takes less bytes the function returns “Parameter Error”.

Is it possible?

Thanks!

Henrique


#2

hi just a try to help u
the index to write in flash is a pointer to u8, so i think u must convert your integer (32 bits) to 4 bytes and make a pointer.
It’s like the problem to convert a IP adress x.x.x.x to u32 value or inverse.