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.

CC2650 stuck in reset loop

Other Parts Discussed in Thread: CC2650, TPS65721, CC1310

Hello,

I have a custom made board and I am using CC2650 7x7 chip. I am facing some difficulties in programming the board with sensor tag code for test. The stack file uploads easily without the glitch, but when I try to program the chip with App then error occurs after the code is uploaded. Plz find the error written below.
The problem seems to be a reset loop. Kindly note that the program is easily loaded with Smart RF, and the loading is also verified by a readback.
Here are the voltage config:-
VDDS pin:- 3.07V
VDDRpin:- 1.68(is this a problem?)
Decoupling capacitor voltage:- 1.30V

Plz find the error report:-

Cortex_M3_0: Error: (Error -1170 @ 0x0) Unable to access the DAP. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 5.1.641.0)
Cortex_M3_0: Trouble Halting Target CPU: (Error -2064 @ 0x0) Unable to read device status. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 5.1.641.0)

This error report comes in loop.

Plz suggest a solution

  • Hello,

    Providing a schematic or portions of the schematic will help with this. Also, did you base your board on a TI reference design, if so, which one?
  • Here is the schematic of the board. Its based on Sensor tag schematic. The Power comes from TPS65721 chip providing 3.06V as VDD.

  • The schematic looks fine at first glance. I assume you have verified that the voyage at VDDS and VDDR pins are as expected and stable? What firmware project are you uploading? Are you doing the stack first, then the app as described in the manual?
  • As mentioned in my first post the voltages are:-


    VDDS 3.07V
    VDDR 1.68V (Why is this coming less? Can I increase it using some configuration?)


    Regarding project upload, Yes I am uploading Stack first and then the app as described. there is no problem in uploading the stack but problem arises in the app.
    In a separate project where I have to upload a BIM_flash, then Stack and then app that also work just not the APP?

    Uploadng the project from RF Flash programmer is not causing any problem but that also doesn't seem be running inside because I can't see bluetooth signal detected by any other sources.

    Thanks

  • Still waiting for the reply!!
  • Hi Atul,

    The supply voltages looks correct. It would be helpful if you can describe your debugging efforts as an application can cause due to an extremely large number of reasons both SW and HW so helping out is like trying to find a needle in the hay stack.

    It sounds like something is causing your application to crash and device to reset as you lose contact with the debugger.
    I would suggest single-stepping your application from the start of main() and see where the crash happens (you need a breakpoint in each tasks' task function) and take it from there.

    One typical reason for this can be not setting up the pins correctly (driving a bus opposite of an external circuit or driving an un-powered external circuit). This would cause excessive current draw which can cause a brown-out reset.

    - What is the current draw when you see the device crashing running the application? (Use e.g. a 10ohm resistor in series with the battery to measure with an oscilloscope)
    - How far does the application execute before crashing?


    Regards,
    Svend
  • Thanks for reply.

    The problem majorly seems to be hardware as the problem errupts during the end phases of programming using ccs debug. The flow doesn't even reaches the first breakpoint created by debugger in the start of main(). The error occurs when the programming is just about to be completed.

    I will double check the pin configuration and current and report soon.

    Thanks
  • Can you upload the same firmware to the SensorTag or some other reference hardware / EB successfully?

  • Yes, Without any problem. Also the sensor tag firmware has problem booting into this board.
    This problem only occurs when I try to upload any firmware to device and this problem generally occurs in the last stages(90%) of firmware upload.
  • what programer are you using? can you try a different programer? can you try this with IAR instead of CCS or vice versa? maybe the behavior will be different or the error more informative? in CCS, can you try the "Test connection" feature of your target config? not great suggestions, but worth a try.

  • Have you tried erasing the device before programming it?

    I may be out of line, here, but just a thought.

  • Hello,
    I'm in trouble with this problem, too. Same with you, same chip(cc2650) and same error outputs.
    Have you solved this problem now?
  • Hello,

    I have got a similar problem too.

    With custom designed board, I can download the image with Flash Programmer2, but when I debug with CCS , it report such errors:

    Cortex_M3_0: Can't Run Target CPU: (Error -2134 @ 0x0) Unable to control device execution state. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.222.0)

    Cortex_M3_0: JTAG Communication Error: (Error -1170 @ 0x0) Unable to access the DAP. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.222.0)

    This is some debug information:

    1> I have meaure the VDDR and VDD decouple voltage, it is ok. and also the impedance between different power bus.

         it is matching with the correct answer in this post:

         

    2> My demo program can run on my another different modules smoothly, and echo some message to UART( DIO2/DIO3) ,  but I did not get any message with this board.

    3> I suspect the 24M oscillator doesn't work,  but this oscillator is verifed working with my other products.  There are only some small difference with  OSC signal routing .

    If the 24M oscillator doesn't work, Can I download the image using Flash Programming 2?

    Now, I can download with flash programmer2, can't debug using CCS and didn't get information on UART and RF message

    Any further debug hints and suggetions is appeciate!

    thanks,

    Hujie

  • I also found this error " Cortex_M3_0: Error: (Error -1170 @ 0x0) ", but after I remove 3V3 pin, it work well !!! ???

    I use pins "GND 3V3 Rst TMS TCK TDI TDO" from CC1310 LaunchPad to program my own PCB design of CC2650. I use CCS v7 and press "debug" button (the green bug button) I found this error.

    After trial in many ways, with luck, I found that if I remove 3V3 pin (from CC1310 LaunchPad to my own PCB), the programming is succeed ! All my 6 PCBs is the same ! Voltage at 3V3 pin on my PCB is 2.3V (after programming). After that I supply external 3.3V to my PCB, it works well.

    Then, I try to source external 3.3V to 3V3 pin of my own PCB. Then, press the "debug" button in CCS v7. It still stuck at this error.

    Who can explain about this ?
  • I also found this error " Cortex_M3_0: Error: (Error -1170 @ 0x0) ", but after I remove 3V3 pin, it work well !!! ???

    I use pins "GND 3V3 Rst TMS TCK TDI TDO" from CC1310 LaunchPad to program my own PCB design of CC2650. I use CCS v7 and press "debug" button (the green bug button) I found this error.

    After trial in many ways, with luck, I found that if I remove 3V3 pin (from CC1310 LaunchPad to my own PCB), the programming is succeed ! All my 6 PCBs is the same ! Voltage at 3V3 pin on my PCB is 2.3V (after programming). After that I supply external 3.3V to my PCB, it works well.

    Then, I try to source external 3.3V to 3V3 pin of my own PCB. Then, press the "debug" button in CCS v7.  It still stuck at this error.

    Who can explain about this ?

  • continue from the post on Jan 15 2017 ... with more trial on my own PCB design of CC2650.
    Then, I use an external supply source to the 3V3 pin. If 3V3 pin = 2.5V to 3.2V, the programming is successful (using CC1310 LaunchPad & CCS v7). If 3V3 pin = 3.3V to 3.5V, CCS v7 console will also show the error "Cortex_M3_0: Error: (Error -1170 @ 0x0) Unable to access the DAP". Why ???
  • Can you make sure your device is powered up properly before you do JTAG programming?
    Can you following the checklist provided below and let us know if your own design check off all the items from the list?
    processors.wiki.ti.com/.../CC26xx_HW_Checklist
    processors.wiki.ti.com/.../CC26xx_HW_Troubleshooting