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:
Hello dear TI-Experts!
I'm facing issues when trying to deactivate BSL in syscfg.
It seems like the "save and close" in my project properties is not executed correctly. Or anything else goes wrong.
To change things in the NVM I have to change the "Erase method" in "project properties" - "Debug" - "MSPM0 Flash Settings" to "Erase MAIN and NONMAIN necessary sectors only (see warning above)"
But I always (when trying to flash/debug my code to the controller) end up with the error message:
File Loader: Memory write failed: Flash Programmer: Error, Attempting NONMAIN write without erasing! GEL: File: C:\Users\M****I\AppData\Local\Temp\ti_cloud_storage\wi****ft.out: Load failed.
Even though the "Erase MAIN and NONMAIN necessary sectors only (see warning above)" is checked!
Sometimes, when I freshly import an example project or freshly checkout a commit from my custom code repository I am ONCE able to flash/debug my code.
But when I terminate the debug session and try to flash/debug the code again I always get the error message.
I also tried and carried out factory reset to my controller. I always end up with the same error message.
Is there any known error about the (new) CCS Theia project properties?
Is there maybe some wrong directory that results in alyways using some default project properties?
Or am I missing any point and making any mistake!
I am very desperate! Please help me!
If you need any more information from me, please let me know!
Thanks a lot in advance!
Matze
Hi, Matze
You need to enable Erase the nonmain region firstly, in CCS's Project properties:
Choose the right setting that you need and contain nonmain Erase.
Regards,
Helic
Thanks for you answer,
I tried enabling "Erase Main and Nonmain Memory" firstly.
But unfortunately this approach does not work either.
I assume that there must be something wrong with the IDE, project properties, settings, directories.. but how can I find that out?
Hi, Matze
Erase nonmain must program it.
I tried enabling "Erase Main and Nonmain Memory" firstly.
This should be workable.
And make sure you add nonmain config in syscfg.
Also, please show me your error log.
Regards,
Helic
add nonmain config in syscfg.
Do you mean the "Configuration NVM", where I try to deactivate BSL?
I did add the "Configuration NVM" and once I do so, I get the error message:
File Loader: Memory write failed: Flash Programmer: Error, Attempting NONMAIN write without erasing!
GEL: File: C:\Users\M****I\AppData\Local\Temp\ti_cloud_storage\wi****ft.out: Load failed.
please show me your error log.
Is there any other error log than the one that I see in the "debug output"-tab?
The error message that I posted above is the one error message from the "debug output"-tab.
Hi, Matze
I did add the "Configuration NVM" and once I do so, I get the error message:
You need to enable [Configuration NVM] and [Erase Main and Nonmain Memory] at the same time.
[Erase Main and Nonmain Memory] enables the Nonmain erasing function during the Flash.
And [Configuration NVM] in syscfg will enable the Nonmain flash during the Flash.
Rehards,
Helic
Hi Helic,
yes I also tried to enable both at the same time but nevertheless I get the same error message.
Hi, Matze
I have tried to disable BSL invoke check and it worked:
I am using the latest version of CCS Theia and syscfg.
If it still not works from your side, please try to re-install the IDE.
Here is my project as your reference:
1104.gpio_toggle_output_LP_MSPM0G3507_nortos_ticlang.zip
Regards,
Helic
Yes, I did.
The only thing that helped was to switch to CCSv20. In CCSv20 it works all fine without any problems. It really seems to be a problem of CCS Theia 1.5.1.
Yes, that's it! I could have saved myself the trip to the Theia IDE.
Thanks for your trying to help me!