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.

CC3120MOD: OTA code limit with CC3120MOD and MSP432P4111

Part Number: CC3120MOD
Other Parts Discussed in Thread: CC3120

I have a design using the CC3120MOD and the MSP432P4111. I understand from the documentation that the OTA example is limited to 256K of MSP432 program.  The MSP432P4111 has 2M of code space and the CC3120 has 4M of sFlash.  How would I go about extending this limit and what are the limiting factors?

  • Hello Gary,

    Going through the SimpleLink Academy Lab on MSP432 Wi-Fi OTA Firmware Updates, it looks like the define OTA_BUFFER_SIZE (in ota_extended.h) needs to be updated to accommodate a larger image.

    Hope this helps!

    Thanks,

    Sai

  • Hi Sai,
    The note I was referring to is this:

    File Size Limit
    The file size limit of the MSP432 firmware is currently limited to 256K.

    Found in ti/simplelink_sdk_wifi_plugin_2_40_00_22/docs/msp432_ota_wifi_updates/ota/msp432_ota_wifi_updates.html

    I don't find a reference to OTA_BUFFER_SIZE in my project or ota itself. Is it related to the cc3120 flash file size?

    Thanks,
    Gary
  • Hello Gary,

    You are right. I could nto find any reference of OTA_BUFFER_SIZE in the project. I will have to understand the code and get back. I will be able to work on this post on 3/18.

    Thanks,
    Sai
  • Hello Gary,

    Apologize for the delay.

    We don't have to do anything to the "OTA_BUFFER_SIZE". It turns out that we don't have to change anything in the Embedded Software. I was able to program a file larger than 256KB by modifying the settings on "Image Creator".

    First I created a binary files of size > 512KB with the code uncommented in msp432p4111_bootloader.c. Let's call this "local_ota_MSP_EXP432P4111_tirtos_ccs_1.bin"

    Here are the steps I followed:

    • Follow all the steps outlined in Task 1 of MSP432 Wi-Fi OTA Firmware Updates SimpleLink Academy lab.
    • Before programming the image, follow the steps below on "Image Creator".
      • After opening the "Image Creator", click on the "Connect" Button.
      • After successfully connecting to the CC31xx device, open the following screen Advanced->Files->User Files.
      • Overwrite the "hostmcuimg.bin" file with the binary file we created above (local_ota_MSP_EXP432P4111_tirtos_ccs_1.bin).
      • In the resulting screen, set the MAX File Size to a 600000 (since the .bin file is > 512). Ensure that "Failsafe" is selected. Click on "Overwrite".
      • Click on "Burn", then "Program Image (Create & Program)".
      • This should successfully program the image to the CC31xx.
    • Follow all the steps in Task 2 to Task 6.
    • In Task 6, ensure that the code in msp432p4111_bootloader.c file is commented out and create a .bin file that is > 512KB .
    • Then follow the steps in Task 7 and Task 8.


    Note:

    • The serial flash on the CC3120 Boosterpack is 2MB. This is not enough for an image of >512KB with the "Failsafe" enabled. If the "Failsafe" is disabled then CC3120 can still work.
    • I could successfully program a image >512KB on a CC3120MOD Boosterpack as it has 4MB memory space.


    Hope this is helpful!

    Regards,
    Sai

  • Thank you Sai, this helps a lot. We are using the CC3120MOD in our design so that should give us the room we need.
    Gary