Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
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.

List of 31 messages in thread
TopicAuthorDate
flash memeory reading            01/01/70 00:00      
   How do you know            01/01/70 00:00      
      flash memory reading            01/01/70 00:00      
   Cross-posted on Keil            01/01/70 00:00      
   pread and pwrite...            01/01/70 00:00      
      my problem            01/01/70 00:00      
         No, you ignored my notes in my previous post            01/01/70 00:00      
            answers            01/01/70 00:00      
               Still no answers            01/01/70 00:00      
   first            01/01/70 00:00      
      a quick glance seems to revceal ...            01/01/70 00:00      
         /            01/01/70 00:00      
         MOVX During FLASH Write            01/01/70 00:00      
   and now he crossed it on the SILabs forum            01/01/70 00:00      
   my problem            01/01/70 00:00      
      RTFM            01/01/70 00:00      
         not xdata            01/01/70 00:00      
            reding flash            01/01/70 00:00      
               So fix the loop then            01/01/70 00:00      
            Not ok            01/01/70 00:00      
         reading flash problem            01/01/70 00:00      
            Yet one more post with broken read loop            01/01/70 00:00      
               correcting my code            01/01/70 00:00      
                  Then specify exactly what you don't understand            01/01/70 00:00      
                     i correct my code            01/01/70 00:00      
                        it's working            01/01/70 00:00      
                           Report feedback            01/01/70 00:00      
                              write cycle time            01/01/70 00:00      
                                 New Question, New Thread.            01/01/70 00:00      
                           So what fixed it?            01/01/70 00:00      
   correct registers ?            01/01/70 00:00      

Back to Subject List