2005-04-06 07:28 PM
2005-04-05 01:52 AM
Hello,
I am working on a bootloader for the ST72F651. This device has 3 sectors (sector 0 for the bootloader and sector1/sector2 for the firmware. I want to erase sector 1 and sector 2. Sector 2 is perfectly erased if I erase sector 1 and than sector 2. Sector 1 is perfectly erased if I erase sector 2 and than sector 1. The first sector that gets erased is being filled with 0x00 at locations where the bytes were programmed. How can correctly erase the first sector that I want to erase? I think that the erase cycle is not completed. What can I do to fully erase sector 1 & 2? Kind regards, Mark2005-04-05 02:21 AM
Hello,
I solved the problem. I called the RASS disable procedure each time from within the sector erase procedure. Everything works fine if you only use the RASS disable only once (outside the sector erase procedure). I want to make sure that RASS is disabled and thought it wouldn't be a problem to call the procedure more than once, but this seems not to be the case. Regards, Mark2005-04-06 05:43 PM
Calling multiple times shall not create a problem.
Is that the only difference between not working code and working code ?2005-04-06 07:28 PM
Calling the RASS_Disable again should not be the root cause of the problem. Can you try with Freq parameter set to Fcpu and also with a new device?