Other Parts Discussed in Thread: UNIFLASH
Tool/software: Code Composer Studio
Hi,
I am working on CC1352P device and using SMART RF06 Evaluation board for programming custom board. I can able to debug and program my Board (i have tried with 10 devices, all are working fine). Suddenly one of my device could not able to debug or program. I am getting the following error when i program using uniflash tool.
Error connecting to the target: (Error -241 @ 0x0) A router subpath could not be accessed. A security error has probably occurred.
Make sure your device is unlocked (Emulation package 8.0.27.9).
I searched in net for the error. In debug error issues i found this is occured due to following reasons
Security Error
This error is caused by the inability of the debug probe to communicate with the device or core, despite the physical connection is fine. This can be caused by a large number of sources, but the most common are:
- The device being used is in secure mode and requires a specific procedure to unlock it. Certain devices have a security module that prevents any intrusive access to its core (including JTAG) and require a specific unlocking mechanism on the running code on the board (MLO, u-boot, etc.). A solution to this forcefully demands having this specific code. Contact your TI representative for details.
- The device or core is either powered down, incorrectly or does not have a valid clock. In these cases the JTAG debug probe can be fooled into thinking the device or core are secure but they are simply inaccessible. The solution to this is not unique but it requires thoroughly checking all clock and power signals on the target board. Some reported issues are:
-
The device is flashed with code that prevents JTAG access to the core. This is mostly common on microcontrollers (due to the presence of Flash memory) and usually require a mass erase to clear its memory from the faulty code.
- https://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/518464
-
https://e2e.ti.com/support/wireless_connectivity/low_power_rf_tools/f/155/t/262357
Note: for Launchpads, check if the TMS and TCK jumpers are in place.
How to unlock my device if it locked?
I could not even erase my code. I checked all the clocks are working fine
Thanks
Haricharan