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-LAUNCHXL: Error when flashing Mongoose-os to controller

Part Number: CC3220SF-LAUNCHXL
Other Parts Discussed in Thread: CC3220SF, UNIFLASH

Hello,

I have been trying to flash a sample demo app(demo-js/demo-c) from mongoose-os examples, on the TI CC3220SF controller launchpad. Following is the log of the error that I was facing:

 Error: failed to load https://mongoose-os.com/downloads/api.json

[Jul  8 10:36:08.045] E0708 10:36:08.044036     412 ui.go:539] Calling: Sys.GetInfo

[Jul  8 10:36:11.381] E0708 10:36:11.381071     412 ui.go:563] Call complete, error: context deadline exceeded

[Jul  8 10:36:25.756] Fetching https://github.com/mongoose-os-apps/demo-js/releases/download/2.3/demo-js-cc3220.zip...

[Jul  8 10:36:32.569] Loaded demo-js/cc3220 version 1.0 (20180615-171230/???)

[Jul  8 10:36:34.296] Found BPI binary: c:\ti\uniflash_4.3.1\simplelink\imagecreator\bin\BuildProgrammingImage.exe

[Jul  8 10:36:34.296] Using XDS110 debug probe to control the device...

[Jul  8 10:36:34.326]   XDS110 2.3.0.20 HW 39 S/N E0071009

[Jul  8 10:36:34.327] Opening COM6...

[Jul  8 10:36:34.327] Connecting to boot loader..

[Jul  8 10:36:35.468]   CC3220SF boot loader v0.1.0.3, storage 0x86

[Jul  8 10:36:35.469] Switching to NWP...

[Jul  8 10:36:36.733]   NWP boot loader v1.1.0.3, storage 0x84

[Jul  8 10:36:36.748]   MAC: 98:84:e3:f6:70:2f

[Jul  8 10:36:36.748] Applying boot loader patches...

[Jul  8 10:36:37.133]   RAM patch applied, new version: 1.1.0.34

[Jul  8 10:36:37.518]   Flash patch applied

[Jul  8 10:36:37.518] Generating UCF image for 98:84:e3:f6:70:2f (flash size: 4194304)

[Jul  8 10:36:37.544] Running c:\ti\uniflash_4.3.1\simplelink\imagecreator\bin\BuildProgrammingImage.exe -i C:\Users\kaust\AppData\Local\Temp\demo-js_cc3220_1.0_086248199 -x C:\Users\kaust\AppData\Local\Temp\demo-js_cc3220_1.0_086248199\ImageConfig.xml

[Jul  8 10:36:44.379] Uploading UCF image (731024 bytes)

Flashing error: failed to upload image: image programming error @ 0: e0 = -10275, e1 = 4097

I tried flashing the controller using CCS/TI-uniflash with custom TI-RTOS/FreeRTOS based firmware and it seemed to flash correctly. But, I always got an error when working with mongoose-os code. Just to make sure, I tried running the mongoose-os(MOS v2.3) tool on Ubuntu and MacOS also, but got the same error.

After examining different ways to have mongoose-os flashed correctly onto the controller, I found out that the problem has to do something with the latest version of TI Uniflash(v4.4), as an older version, v4.2.2 that was released in January 2018, seems to do the trick. After speaking with an official from TI, I was asked to post the issue on this forum. It would be great if the Uniflash team takes a note of this.

Thanks,

Kaustubh