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.

FLASH-PROGRAMMER: Flash Programmer 2 - halt-in-boot known issue

Part Number: FLASH-PROGRAMMER-2

Hi,

I'm writing with regards to a known issue with Flash Programmer 2 used with XDS100 programmer (in our case the SmartRF06 EB) to program cc1310s over serial JTAG. The Halt-in-Boot flag remains set after programming, and will prevent devices resetting when disconnected. See thread https://e2e.ti.com/support/wireless_connectivity/low_power_rf_tools/f/155/p/528226/2208638#2208638; I'm presuming this hasn't been addressed yet.

I have a workaround, which appears to clear the flag for me, without needing to un-solder and re-solder batteries each time. The process is as follows:

  1. Open Flash Programmer 2 and select the binary image to program.
  2. Ensure cc1310 is powered, in our case with a non removable battery.
  3. Connect programmer (to both the cc1310 and the PC), with programmer POWER switch in 'OFF' position and the power source set to 'BAT' (required due to voltage differences of cc1310 and programmer).
  4. Turn POWER switch to 'on'. Device should now appear in Flash Programmer.
  5. Program the cc1310.
  6. Once verified, press the 'EM RESET' button on the programmer.
  7. Turn the programmer's POWER switch to 'off' and disconnect the cc1310.
  8. Repeat from step 2 for next device.

I appear to be able to soft reset device using this approach, without them getting stuck because of the HIB flag.

I would be grateful, if you could verify that this is a valid approach to clearing the HIB flag. Is there any risk that the HIB flag might not be cleared? 

Kind Regards

- Oliver

  • Hello Oliver,

    Yes, there is a known issue with HIB on older emulation packs that are still used in current tools. Can you update your emulation pack with the procedure listed on the "Device Does not restart after successful OAD" of the CC2640 OAD User's Guide BLE wiki: processors.wiki.ti.com/.../CC2640_OAD_User's_Guide

    Best wishes
  • Thanks for the update.

    I have just installed the latest emulation pack and the same thing seems to occur, if the serial JTAG cable is simply disconnected. 

    There is one minor differed though.

    Using Flash Programmer 2:

    • If I program a unit, then simply disconnect the JTAG, the HIB flag is still set (as before).
    • If I program a unit, then switch power off on the SmartRF06EB programmer, the HIB flag is cleared. This is new.
    • If I program a unit, then press the EM RESET button on the SmartRF06EB, the HIB flag is cleared. This is as before.

    Can I guarantee that the HIB flag is cleared, if the programmer is powered down, or the EM reset button are pressed after programming?

    This is a big issue for us as we can do an OTA firmware update, which requires a soft reset to start the re-programming.

    Kind Regards

    - Oliver

    PS: My test application on the cc1310 is as follows:

    Delay 5 seconds

    Flash an LED

    Do a soft reset.

    If HIB bit is still set after programming, the LED will not flash again as it will hold after the first soft reset.

  • Hello Oliver,

    Your results are expected. The HiB flag is set based on the state of TCK at the time of reset. So, after programming with the aforementioned patched emu pack, you will need to perform a system or external pin/power reset to clear the HiB flag.

    Best wishes
  • Thank you.

    So as long as I don't just remove the JTAG cable after programming and either power off the programmer or press the EM Reset button first; all appears to be well.

    Kind Regards

    - Oliver