Tool/software:
Hi,
I`m using the attached launch.json:
{ "version": "0.2.0", "configurations": [ { "name": "CV3-C3T0-TIVA", "type": "ccs-debug", "request": "launch", "projectInfo": { "name": "CV3-C3T0-TIVA", "resourceId": "/CV3-C3T0-TIVA" }, "debuggerSettings": { "targetConfigs/Tiva TM4C1290NCPDT.ccxml": { "Texas Instruments XDS110 USB Debug Probe/CORTEX_M4_0": { "data": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\n<PropertyValues>\n\n <property id=\"FlashProgramOption\">\n <curValue>Use the Erase Options Specified Below</curValue>\n </property>\n\n <property id=\"FlashEraseType\">\n <curValue>By Address Range</curValue>\n </property>\n\n <property id=\"FlashEraseStartAddr\">\n <curValue>0x00004000</curValue>\n </property>\n\n <property id=\"FlashEraseEndAddr\">\n <curValue>0x00100000</curValue>\n </property>\n\n <property id=\"FlashBlankCheckSelection\">\n <curValue>By Address Range</curValue>\n </property>\n\n <property id=\"FlashBlankCheckStartAddr\">\n <curValue>0x00004000</curValue>\n </property>\n\n <property id=\"FlashBlankCheckEndAddr\">\n <curValue>0x00100000</curValue>\n </property>\n\n <property id=\"FlashChecksumSelection\">\n <curValue>By Address Range</curValue>\n </property>\n\n <property id=\"FlashChecksumStartAddr\">\n <curValue>0x00004000</curValue>\n </property>\n\n <property id=\"FlashChecksumEndAddr\">\n <curValue>0x00100000</curValue>\n </property>\n\n <property id=\"FlashVerboseMode\">\n <curValue>1</curValue>\n </property>\n\n</PropertyValues>\n" } } } } ] }
It is configured to not overwrite the flash from 0 to 0x4000 since I`m using a bootloader in that flash region but it always erases the whole flash. This wasn`t the case with CCS 12.8.1. I`m currently using CCS 20.1.0.
Is this a known problem?
Thanks!
Best regards
Steffen
I dig a little bit deeper into the problem and noticed the following behaviour:
I`ve got four projects in my workspace. When I want to add a debug config CCS adds a theia folder and a launch.json to that specific project folder and not as described here: https://software-dl.ti.com/ccs/esd/documents/users_guide_ccs_theia/ccs_debug-main.html#launch-configurations globally in a .theia folder with a launch.json with all the debugger configs.
My wokspace settings:
When I remove all .theia folders from all project folders I´ve got zero debug configurations even there is the attached launch.json in .theia folder at the root of the workspace.
When I click add configuration CCS adds the .theia folder again in the projects folder but it doesn`t seems to use these settings because with the TIVA it erases the flash as mentioned above and with the MSPM0 it doesn`t erase NONMAIN so I got an error when I want to debug my device because I`m changing the bootloader config in my syconf file i.e. write to NONMAIN without erasing it.
So something is wrong with my workspace..
I`ve done a complete reset (https://software-dl.ti.com/ccs/esd/documents/users_guide_ccs/ccs_troubleshooting.html#delete-workspace-cache) an re-imported all projects. Basically no change.
CCS makes then a debug config for that project I want to debug in every other project:
What can I do here? Should I´m not using a workspace?
Some behaviors are very strange with CCS Theia. It doesn't look like it fully supports workspace files as one would expect https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1457547/codecomposer-task-tasks-json-or-theia-workspace-support-in-ccs-theia/5598275?tisearch=e2e-sitesearch&keymatch=%252525252525252520user%25252525252525253A636987#5598275
I solved this by using dedicated CCS workspace which is not the same as workspace file and then dropping workspace file into it with dedicated launches.
Regarding mass erase please see e2e.ti.com/.../5629790
Hope this helps.
Eugene