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.

CC3220SF: Unable to permanently flash program

Part Number: CC3220SF
Other Parts Discussed in Thread: UNIFLASH

Hi Experts

I can successfully reprogram the LaunchPad RevA Board with the 'out of the box' example program, using UnitFlash v3.4.1. The programs still works after power off.

In addition, I can successfully load the own program for debugging, using IAR command line and CMake files. But after reseting the MCU the program is lost. I proceeded according this link:
http://dev.ti.com/tirex/explore/content/simplelink_academy_cc32xxsdk_3_10_01_00/modules/wifi/wifi_imagecreator/wifi_imagecreator.html#program-an-image
With the only difference that I selected my own .bin file in the MCU img field. The image can successfully be burned, but nothing works.

Additional Information:

I set the jumpers as described in SWRU463B – February 2017 – Revised August 2018, Figure 11.

I use UniFlash v3.4.1  because the link for v5.0.0 is broken.

Any documentation linked to the UniFlash website below 'Additional Information' is broken.

The 'help' link in UniFlash itself does not work.

The documents I found did not provide the needed information.

I appreciate your help

Htkbwud

  • Hi Htkbwud,

    For CC3220 devices you need to use Uniflash version 4.2 at least. Version 3.4.1 does not support CC3220 devices. Download link for Uniflash 5.0 is functional again.

    Jan
  • Hi Jan,

    Thanks a lot for the fast reply and for fixing the link for Uniflash 5.0! I was now able to install the newest version.
    Unfortunatelly it did not change the behavior. I can successfully program the device, but my program does not run.

    What about the SHA1 bytes that should be added to the binary? For the 'simple' mode of UniFlash, I expect it to be done automatically. Is this correct?
    What about the __SF_DEBUG__ flag? Is it mandatory to set it in the FW? If I do so, I'm not able to program the own code at all.
    What I also wonder is, that neither my own code, nor the program flashed before, runs after power reset.

    Regards,
    Htkbwud
  • Hi Htkbwud,

    With binary file produced by IDE (CCS or IAR) should be all done automatically with Uniflash in simple mode. For uploading code by Uniflash is not macro __SF_DEBUG__ mandatory. This macro is applicable when you have uploaded blank image by Uniflash. After that you can compile code with this macro and upload from IDE by JTAG/SWD. After that code in internal XIP flash should not be erased after boot by bootloader.

    My recommendation is to import one of SDK examples and do all workflow with bin file from this example. Import example, compile BIN file from example, Upload file by Uniflash...

    Btw... I am not TI employee from this reason I did not fix Uniflash download issue. I knew that wiki was broken and not is online again only :)

    Jan
  • Thanks Jan for the explanation! Even a bigger thanks as you are not a TI employee.

    I followed your advice:
    - Taking the example code RTOS - pwmled2 form TI.
    - Compile and load it to the device with IAR 8.32.4
    ==> program runs successfully, but is not stored persistently

    - Open UniFlash v5.0
    - Create a new project as described in SWRU469D (Uniflash Programming Tools documentation), section 4 (Image Creator Application) and 5 (Quick Start)
    - It tried with and without service pack
    ==> program does not run at all

    The only program I'm able to flash on the device, is the 'out of the box' example, which comes with a .zip file for UniFlash.
    So I flashed again the 'out of the box' example and repeated the process described above. But same result.
    Regards,
    Htkbwud
  • Hi Htkbwud,

    Emm... it seems that something wrong is inside your build environment (IAR). Unfortunately I haven't available IAR and from this reason I am not able test this. Can you for a test install CCS and check this? If you include here bin file produced by IAR (some example with uart functionality) I can test this on my side.

    Jan
  • Hi Jan,
    Your proposal worked, compiling the example code with CCS, and then using the .bin file generated by CCS in UniFlash.
    I try now to find out what the difference between the generation of the two .bin files is...
  • Hi Htkbwud,

    OK. It seems you are able to properly use Uniflash software. Now you need figure out reason why IAR not produce proper binary file. If case you will not be able figure out reason of issue, feel free to open new thread. Experts to IAR will be able asist you.

    Jan
  • Jan, Thanks for the advice. In case I cant find it I will create another thread.
    Thanks.
    Htkbwud