We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello, I am using XC164 and would like to read flash values wordwise. All other Sectors can be read (0..4 does it fine), but on every access to sector 5 a controller hangup occurs. Code is:
#define SECTOR_4 0xC08000 #define SECTOR_5 0xC10000 // tried to use local as well as global definition: unsigned int huge* flashptr_Start; flashptr_Start = SECTOR_5; for (i = 0; i <= 0xFF; i++) { siVal = (*(flashptr_Start)) & 0xFFFF; _nop_();_nop_();_nop_();_nop_(); // wait flashptr_Start++; }
It's a bit odd to answer the own written thread, but I do not have the problem any more. The chip had a damage and after changing I found out that everything works well now. Regards, Helmut