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.

Blinky and Timer Example Program does not run after pressing reset?

Other Parts Discussed in Thread: CC3200, UNIFLASH

Hi,

   Why does the Blinky and Timer Example Program does not run after pressing reset?

I build the example program and run Debug. Supposedly by running Debug at CCS the program is loaded at CC3200 Launchpad. But, after pressing reset, nothing happens.

- kel

  • Hi kel,

    without having all the info, maybe I am taking a chance to comment but, assuming you are still in CCS, the following is likely to be the case:

    CCS, when downloading the programs to the CC3200, loads it into RAM in preparation for execution from there.

    When you press the reset button it clears memeory, resets registers and the program is gone.

    The correct way would be to run the program from CCS without pressing reset.

    In order to store the new binary in flash on the CC3200 you must specifically write the binary .bin file to flash using CCS UniFlash.

    Andre

  • Yes, the reason you loose the code is because it is loaded to RAM.

    With other platforms, CCS is loading the code to NVMEM so it is not flushed upon reset. This is not the case with CC3200.

    In order to write it to flash, you need to use Uniflash.

    Shlomi

  • Hi All,

         Thanks for all your help and replies.

         So, I tried to load the blinky.bin using the Uniflash Guide. But, I failed. See, pic below. I set the correct com port as indicated at my Device Manager which is COM5. Why in the Guide it is COM Port 50? Is there any procedure that I am missing?

    - kel

  • Hi,

    You should the port that appears in your device manager (port #50 is just an example).

    In your case, you are not able to connect to the COM port using Uniflash.

    Please send me a capture of your Device Manager.

    Also, please make sure SOP2 is connected while flashing.

    Shlomi

  • And that no other utility (such as terminal) is connected already to the same port...

  • Hi Shlomi,

         Here below is my Device Manager showing COM5 for my CC3200 Launchpad.

    So, I reset the board and tried again with same settings. Here is the log below. But, after that, I reset the board and the LED is not blinking. So, I must be doing something wrong. The jumper is set at SOP2.

    [19:55:46] Begin Program operation.
    [19:55:46] INFO: > Executing Operation: Connect
    [19:55:48] INFO: setting break signal
    [19:55:48] INFO: --- please restart the device ---
    [19:55:48] INFO: connection succeeded
    [19:55:48] INFO: getting storage list
    [19:55:48] INFO: > Executing Operation: Init
    [19:55:48] INFO: reading version info
    [19:55:48] INFO: DEVICE CC3200 ES1.32
    [19:55:48] INFO: reading version info
    [19:55:50] INFO: reading version info
    [19:55:50] INFO: reading version info
    [19:55:52] INFO: > Executing Operation: Program
    [19:55:52] INFO: > File name: /sys/mcuimg.bin, Update: true, Erase: true
    [19:55:52] INFO: > Erase File: /sys/mcuimg.bin
    [19:55:52] INFO: erasing file "/sys/mcuimg.bin"
    [19:55:52] INFO: deleting file "/sys/mcuimg.bin"
    [19:55:52] INFO: erase file completed
    [19:55:52] INFO: > Size of file = 9928
    [19:55:52] INFO: > Update File: /sys/mcuimg.bin
    [19:55:52] INFO: Downloading file "/sys/mcuimg.bin" with size 9928
    [19:55:53] INFO:

    New Token is 0x0
    [19:55:53] INFO: Download complete
    [19:55:53] INFO: Verifying Data...
    [19:55:53] INFO: get file
    [19:55:53] INFO: Done. Reading 9928 bytes
    [19:55:53] INFO:

    Verification OK
    [19:55:54] INFO: > Updated Token value: 0x0
    [19:55:54] INFO: > File name: /cert/ca.pem, Update: false, Erase: false
    [19:55:54] INFO: > File name: /cert/client.pem, Update: false, Erase: false
    [19:55:54] INFO: > File name: /cert/private.key, Update: false, Erase: false
    [19:55:54] INFO: > File name: /tmp/pac.bin, Update: false, Erase: false
    [19:55:54] INFO: > File name: /sys/macadd.bin, Update: false, Erase: false
    [19:55:54] INFO: > File name: new file/99257a6e-6cfb-4846-a7f1-78af1b003e09, Update: false, Erase: false
    [19:55:54] INFO: > File name: new file/ccd9a9f2-87dc-47ca-8a05-e22458895e8d, Update: false, Erase: false
    [19:55:54] INFO: > Executing Operation: Disconnect
    [19:55:54] Operation Program returned.

    - kel

  • OK, so blinky has downloaded to serial flash just fine.

    In order to make the device read it from the serial flash and run it, you need to remove SOP2 jumper (it is connected only for Uniflash).

    Please let me know if it works.

  • Hi Shlomi,

         I removed the SOP2 jumper and placed it back to P58-VCC.

         After reset of board the LED blinks.

         Thanks for all your help.

    - kel

  • Great.

    BTW, please remember that when SOP2 is connected, it forces AP mode. Unless required, you better leave it unconnected.

    Shlomi

  • just a minor correction, in case anyone references this - when P58 is pulled to Vcc, it forces AP mode.
    SOP2 only forces flash mode.

  • hi


    I have same problem after so much searching.I found one solution for it.

    1.Open CCS and edit in project what you want to do.

    2.Then build project

    3.In left pane you should find .out file.for example oob.out

    4.Copy its file path

    5.Then open uniflash load old .ucf file

    6.After that I go to set /sys/mcuimg.bin file path which you copied.

    7.and program that file.It works definitely.