??? 11/04/08 15:00 Read: times |
#159643 - Still no answers Responding to: ???'s previous message |
You still ignore my questions. You just duplicated your source once more.
while (*pread !='\0') { *eedata = *pread; // copy byte pread++; // advance pointers pwrite++; }Still no information what you think pread points to when you reach the loop. Still no information what you think the while loop will do with such value. Still no information how you think you can fit a string into the eedata[] array if you only write into *eedata which is identical to eedata[0] which is a single entry and not an array. Still no information what you think the pwrite++ line does, and why you added it. And still no explanation about your string-end logic. If you do not write down any terminating zero - will you then have any terminating zero to read in the second loop? You can't bother with the UART loop until you have bothered to get the previous code to work. If you can't fill eedata[] with a string, it is irrelevant if your UART loop is correct or broken. Garbage in will always result in garbage out, so you must section your program into pieces and fix sections that produces garbage before testing sections that follows. And don't forget the comments you received by Erik. |