This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Code Composer Studio
We need to write a simple procedure utilizing Code Composer Studio for erasing the flash memory on our MSP430F67791A, specifically the main code memory and information memory. We've attempted to use the On-Chip Flash panel within CCS to accomplish this by erasing the specific address ranges for those areas in flash, but we always get an "Unknown Error" message, although it appears that perhaps the flash was successfully erased. What is the proper way to use CCS to erase the flash memory on our MSP430 device without getting errors. We just need to create a simple procedure that can be followed by a technician to erase the required flash areas without producing random errors. We are using CCS version 8.2.0.
Shane H said:. We've attempted to use the On-Chip Flash panel within CCS to accomplish this by erasing the specific address ranges for those areas in flash, but we always get an "Unknown Error" message, although it appears that perhaps the flash was successfully erased.
That should work. Is there no other error message other than "Unknown Error"? What are all the messages that appear in the debug console?
Thanks
ki
In addition to the dialog box that stated: Error executing Flash operation "EraseByAddress": Unknown Error
there was a message printed to the debug console that stated: Error erasing by address.
I tried again with the "Enable Verbose Output" option, but the results were the same.
I also tried downloading the UniFlash GUI today to see if it might work better, but it would not even detect the debug probe. I'm not sure why.
Thanks,
Shane
Thanks Shane. I tried using some older versions of CCS (v7.4 and 8.1) and I can reproduce the issue. The issue not not appear in later CCS versions. Both v8.3.1 and v10.0 worked fine. It is likely a known issue that was fixed. I suggest updating you CCS version, at minimum to 8.3.1 + all available MSP updates. If you can move to v10.0, even better.
Thanks
ki
Hi Ki,
Thanks for the tip about v8.3.1! I tried upgrading to that version this morning and was able to successfully erase by address.
By the way, I do have one more question. Can I erase the main code memory and information memory flash areas using the "Mass Erase" button and selecting the radio button for "Erase main and information memory"? I do not want to erase the BSL, so "Mass Erase" won't be an option unless I can exclude BSL from the mass erase function. I just want to make sure those radio buttons are doing what I think they're doing.
Thanks,
Shane
Mass Erase would erase BSL memory also. I don't think you have an option to change that, though I am not sure (it can be dependent on the device). For more clarification on the various erase settings, I'd post a new thread in the MSP forum.
Thanks
ki