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.

CC3220MODA: IMAGE_TESTING mode

Guru 16770 points

Part Number: CC3220MODA

Hi


The customer wants to confirm how does IMAGE_TESTING mode work while OTA.


"IMAGE_TESTING" can also be referred from following report but it is not detailed.
www.tij.co.jp/.../swra510a.pdf

Does it judge if test is succeeded or failed? How does it judge?

If you have flowchart of IMAGE_TESTING or relating API function, please tell us.

BestRegards

  • Hi,

    Section 4.2.3 of the guide explains how the system moves into the IMAGE_TESTING mode. You can refer to the flow chart in section 4.2 as well.

    The actual process for determining if the new code/files are working successfully is up to the developer. The system can run some basic tests like starting up the network processor, connecting to an AP, pinging a known server, or even trying to use some data from the file system. However it is implemented, if the check passes the code needs to set the system to the commit state (IMAGE_COMMIT).

    Best Regards,
    Ben M
  • Hi Ben

    Thank you for your reply.

    >The actual process for determining if the new code/files are working successfully is up to the developer.
    >The system can run some basic tests like starting up the network processor, connecting to an AP,
    >pinging a known server, or even trying to use some data from the file system.

    According to chapter 3.3 of the gudie, following is explained.

    3.3 Running a Sample Application
    After programming the OTA sample application and uploading the OTA tar file to the cloud, press Reset to
    start the OTA process. The major steps that the sample application executes are as follows:
    1. Connect to AP through an existing profile, or by the provisioning process.
    2. Send pings and wait for the CC3220LP button click to start the OTA.
    3. Configure the OTA library with the CDN server details.
    4. Run the OTA process, initiated from external trigger (button on the CC3220LP board)
    a. Connect to the CDN HTTPS server.
    b. Request for directory content, and download the .tar archive file.
    c. Extract .tar archive files, including the file mcuflashimg.bin, into the serial flash.
    5. After the download is finished, set IMAGE_TESTING mode and reset the MCU.
    6. On successful system tests, set IMAGE_COMMIT and continue running the new MCU image.

    At #5, it mentions "IMAGE TESTING mode and reset"is set after download.
    At #6, it mentinos "IMAGE_COMMIT" is set and continues running the new MCU image if system test is successful.

    Do you offer default process of IMAGE_TESTING in cloud_ota example?
    If so, can you tell us what is tested while between #5 and #6?

    BestRegards
  • Hi,

    Yes, the application that is intended to be downloaded when testing the cloud_ota example is a newer version of the cloud_ota example. Embedded in the cloud OTA example is a ping test that is run after the system connects back to the access point. When the ping test completes, if it is successful the "HandlePingComple()" function is run. This function sets the mode to IMAGE_COMMIT (look at OtaCheckAndDoCommit()). 

    So overall, the process that we show for "testing" in the example is -

    1) Connect to an AP

    2) Run a ping test to the gateway

    This should be updated to a suitable test for the final product since the test will be application specific.

    Best Regards,

    Ben M

  • Hi Ben

    Thank you for your reply.
    I could share the information to customer.

    BestRegards