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
I have a LAUNCHPADXL-CC2640R2 and try some democode.
First I started with the "ble5 project zero". It could be loaded by the debugger once. If I want to start it again I get a "Load Program Error".
When I erase the comlete chip and start again it works, but only once.
I tried "verbose" but there is still the same problem. Then I increased the watchdog reload value in "CC2640_LAUNCHPADXL.c" so I can start the debugger again several times.
As I get the same problem with the "rtls master cc2640r2lp" project I did the same workaround, but it doesn`t work this time.
How can I deactivate the watchdog to start the debugger without erasing manually?
Thanks for helping.
I meant the version of the Software SDK including the protocol stack, i.e. SDKv3.20.
Disregard my comment about BIM, that's only relevant for CC2642 device.
Hi,
In what way are you restarting? Are you starting a new debug session, are you resetting the device and starting from main or something else? I've tried reproducing it on my computer but I haven't been able to do so yet.
Thanks,
Elin
Hello,
when the CC2640 is erased I can start the debugger without any problems.
It compiles, flashes and debugging works fine.
When I stop the debugger and start again, it compiles but then I get a "load program error". Flashing is not possible.
My dirty hack was to increase the watchdog reload value up to 20000.
This helps in the "project zero" but not in the "rtls master" project.
I have to erase the chip before flashing or starting debugger again.
Maybe the watchdog should be disabled in the demo code?
Hi,
Apologies for the delay.
That sounds very weird. Can you try and keep CCS in debug mode when you make changes to the files, rebuild the project, and see if the load succeeds?
I do believe that the watchdog is disabled per default.
Thanks,
Elin
Hi,
Can you try the example program without any modification and without watchdog code.
-kel
Hi,
That`s the problem, when I start the example program without any modification, the debugger can only startet once.
If I stop suspend and restart it is also possible.
But if I quit the the debug process and try to restart, I get a "load program error". I have to erase the chip first.
The example "project zero" is working. The example "rtls master" causes a warning:
"C:/ti/simplelink_cc2640r2_sdk_3_20_00_21/source/ti/blestack/common/cc26xx/ccs/cc26xx_app.cmd", line 287: warning #10068-D: no matching section
regards
Hi,
Did you try re-building the project when you are debugging as I mentioned in my previous post?
Thanks,
Elin
Hi Elin,
you are right. The watchdog is disabled in this example.
If I enter the debug mode, I can do changes in the code, build and flash.
Everything workes fine.
The problem only occurs when the debug mode is left and I want to flash again.
best regards