??? 11/04/08 14:17 Read: times |
#159638 - No, you ignored my notes in my previous post Responding to: ???'s previous message |
You totally ignored my notes in my previous post, and claim that:
"and after reading the flash and store the value in an array." But where is that code? Where is the code that reads from flash and stores in an array? while (*pread !='\0') { *eedata = *pread; // copy byte pread++; // advance pointers pwrite++; }This does not put the data in an array - only in the first entry of an array, since *eedata is the same as eedata[0]. So what did you test in your IDE - or is this not the code you used when you tested? And what is the pwrite++ increment in the above code? And where is your initalization of pread? Remember your previous use of pread? It was used to detect that you should end your write loop when you reached the terminating zero. So exactly what do you think happen when you get to your read loop and starts by using this same *pread to once more test for a terminating zero? Now, I repeat my question again: What did you test in your IDE. Or what code did you test in your IDE? Where did you - in your IDE - see the copying of data into the eedata[] array? |