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.
Hi,
I use uVision3 with the C166 compiler for an XC167 with external Flash. My flash utility erases only the used sectors of the flash, but i want all the sectors to be erased. So I thought to fill the hex file with 0xFF. Can anyone tell me how to do this.
Thanks.
My flash utility erases only the used sectors of the flash, but i want all the sectors to be erased. So I thought to fill the hex file with 0xFF
Use hex2bin to convert to a binary image specifying the size of your flash and a pad character of 255, then convert back to hex using bin2hex. I'm fairly sure both utilities are downloadable from this website amongst many other places.
They are - I gave the link earlier!
Thank you all. Now I use SRecord and it works fine.