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.

RTOS/CC2640R2F: CC2640R2: Software System Reset after using JTAG not entering to BIM

Part Number: CC2640R2F
Other Parts Discussed in Thread: UNIFLASH

Tool/software: TI-RTOS

Hi,

Device CC2640R2F LAUNCHXL
Stack simplelink_cc2640r2_sdk_1_40_00_45
IDE IAR8.11.2

I have done software system reset by sending command over UART. So I am using "HAL_SYSTEM_RESET();" whenever I will receive reset command from UART.

But it fails every time after using JTAG (programming with IAR, also with Flash Programmer 2).

I also tried "SysCtrlSystemReset();" and  AON_WUC (swcu117h.pdf /6.7.3 Software-Initiated Reset of MCU_VD). but result are same.

However, it work fine when i power off and on the board after JTAG programming.

Could anyone please explain why this is happening? also please help to solve this...?

Thanks

Niranjan Hegde

  • Hello,

    The situation you are describing is because the device is placed in Halt In Boot mode by the emulation tools when disconnecting from the JTAG session. On the next reboot (in this case, when HAL_SYSTEM_RESET() is issued).

    This should be alleviated by updating to the latest version of the emulator tools (and pointing IAR to these instead of previous version):
    processors.wiki.ti.com/.../XDS_Emulation_Software_Package
  • Hi Sean,

    Thanks for reply.

    1. My IAR is pointed to latest XDS Emulation Software (ti_emupack_setup_7.0.48.0_win_32)

    2.Same behavior observed even from Flash programmer  2 ver 1.7.5

    I observed that any of above programming method is not going to reset it to boot loader.

    So I used "xds110reset --action toggle --delay <delay>" and observed that device is reset and enter to boot loader.  And HAL_SYSTEM_RESET() is working fine every time.

    How this reset can be integrated in SmartRF Flash programming? Or any other method of programming?

  • Hi Sean,

    I also monitor the Reset line. And I found different reset wave forms with TMS and TCK.

    Could you please explain what happens to reset in first (waveform) reset condition?.

    How can I achieve the reset which jumps to BIM using SmartRf Flash programmer?

  • Hello,

    The waveforms you have shown correspond exactly with the Halt In Boot (HIB) state described in the TRM, section 5.6

    This is related to the version of the Emupack that is used by SmartRF flash programmer 1.7.5. I am not sure if it is possible to point it to another version of hte Emupack. I will ping the developer for details.

    In any case, I believe the latest version of Uniflash should work with the newer version of the emupack that does not have this issue.

  • I have feedback from the developer that the Emupack version of SmartRF flash programmer can be updated by replacing the files inside

    <fp2_install_dir>/config/xds/* with the ones from the emupack download page I linked to above.

    Please let me know if either of the solutions work for you.
  • Hi Sean,

    Thanks for the solution.

    I have replaced xds drivers inside <fp2_install_dir>/config/xds/* and  HIB avoided.

    Below is the reset waveform from SmartRf Flash programmer.

    Thanks

    Niranjan Hegde

  • Hi Niranjan,

    Thank you for following up, and glad the issue is resolved.

    Since your scope captures show the HIB quite nicely would you mind if I used them to add to our known issues for OAD wiki here:

  • Hi Sean,

    Absolutely no issues, you can use it. Also it would be nice if you update Flash programmer with new xds drivers.

    Thanks,
    Niranjan Hegde
  • Niranjan,

    Thank you very much. This will be very helpful.

    Unfortunately there is no planned update for Smart RF Flash Programmer 2 that I know of.

    In the future UniFlash should support these updates.

  • Hello /Niranjan Hegde

    I am having the exactly same issue.

    "I am using "HAL_SYSTEM_RESET();" whenever I will receive reset command from UART.
    But it fails every time after using JTAG (programming with CCS, also with Flash Programmer 2).
    However, it work fine when i power off and on the board after JTAG programming."

    The difference is that I am using XDS100 Ver3.0, XDS-FTZ5PP2UA instead of XDS110

    I have also replaced xds drivers inside <fp2_install_dir>/config/xds/*, but the problem is still not reloved

    I also used UniFlash to program the circuit but result is still same.