Other Parts Discussed in Thread: UNIFLASH, , , SYSBIOS
Tool/software: TI-RTOS
Hi,
We refer CC3200 Over-The-Air (OTA) Update Application Note.pdf to add OTA feature into "iotdev-aws-iot-device-sdk-embedded-c" SDK, it's working well on CC3200 LAUNCHPAD , as I use same way to use CCS UniFlash to burn the "\cc3200-sdk\example\application_bootloader\ewarm\Release\Exe\application_bootloader.bin", "servicepack_1.0.0.10.0.bin", and our mcuimg1.bin, mcuimg2.bin and mcuimg3.bin into own board's flash, we found the board not work up after back SOP2 to normal mode as checked no log print of UART; we tested same images and steps on CC3200 LAUNCHPAD is working well. why?
we tested to change the CC3200 LAUNCHPAD's SPI flash into our board, the board still not work.
we also tested to burn our iotdev-aws-iot-device-sdk-embedded-c image without bootloader image, our board working well .
And tested the CC3200SDK_1.1.0's example "get_weather demo" which used same way to add OTA feature. use same way and steps to burn images into our own CC3200 board, the get_weather example OTA working well on our board.
and we change the 16M SPI Flash tested got same issue.
below is the logs of CCS Uniflash. thanks!
[19:24:00] Begin Format operation.
[19:24:01] INFO: > Executing Operation: Connect
[19:24:03] INFO: setting break signal
[19:24:04] INFO: detecting FTDI for device reset
[19:24:06] INFO: connection succeeded
[19:24:06] INFO: getting storage list
[19:24:06] INFO: > Executing Operation: Init
[19:24:06] INFO: reading version info
[19:24:06] INFO: DEVICE CC3200 ES1.33
[19:24:06] INFO: reading version info
[19:24:07] INFO: reading version info
[19:24:09] INFO: > Executing Operation: Format
[19:24:09] INFO: Erase storage SFLASH
[19:24:10] INFO: erase storage succeeded
[19:24:10] INFO: erase storage completed
[19:24:10] INFO: > Executing Operation: Disconnect
[19:24:11] Operation Format returned.
[19:24:27] Begin ServicePackProgramming operation.
[19:24:27] INFO: > Executing Operation: Connect
[19:24:29] INFO: setting break signal
[19:24:30] INFO: connection succeeded
[19:24:30] INFO: getting storage list
[19:24:30] INFO: > Executing Operation: ServicePackProgramming
[19:24:30] INFO: Path to the service pack file: D:/TI/CC31xx_CC32xx_ServicePack_1.0.0.10.0/servicepack_1.0.0.10.0.bin
[19:24:30] INFO: reading version info
[19:24:30] INFO: CC3200R Device detected.
[19:24:30] INFO: NWP/MAC/PHY Version from Service Pack:
[19:24:30] INFO: NWP Patch version: 2.4.0.2
[19:24:30] INFO: MAC Patch version: 1.3.0.1
[19:24:30] INFO: PHY Patch version: 1.0.3.34
[19:24:30] INFO: reading version info
[19:24:30] INFO: DEVICE CC3200 ES1.33
[19:24:30] INFO: reading version info
[19:24:31] INFO: reading version info
[19:24:33] INFO: Downloading file "/sys/servicepack.ucf" with size 10100
[19:24:36] INFO:
New Token is 0xFE525F75
[19:24:36] INFO: Download complete
[19:24:36] INFO: > Executing Operation: Disconnect
[19:24:36] Operation ServicePackProgramming returned.
[19:24:39] Begin Program operation.
[19:24:40] INFO: > Executing Operation: Connect
[19:24:42] INFO: setting break signal
[19:24:43] INFO: detecting FTDI for device reset
[19:24:45] INFO: connection succeeded
[19:24:45] INFO: getting storage list
[19:24:45] INFO: > Executing Operation: Init
[19:24:45] INFO: reading version info
[19:24:45] INFO: DEVICE CC3200 ES1.33
[19:24:45] INFO: reading version info
[19:24:46] INFO: reading version info
[19:24:48] INFO: > Executing Operation: Program
[19:24:48] INFO: > File name: /sys/mcuimg.bin, Update: true, Erase: true
[19:24:48] INFO: > Erase File: /sys/mcuimg.bin
[19:24:48] INFO: erasing file "/sys/mcuimg.bin"
[19:24:48] INFO: deleting file "/sys/mcuimg.bin"
[19:24:48] INFO: erase file completed
[19:24:48] INFO: > Size of file = 12118
[19:24:48] INFO: > Update File: /sys/mcuimg.bin
[19:24:48] INFO: Downloading file "/sys/mcuimg.bin" with size 12118
[19:24:49] INFO:
New Token is 0x0
[19:24:49] INFO: Download complete
[19:24:49] INFO: Verifying Data...
[19:24:49] INFO: get file
[19:24:49] INFO: Done. Reading 12118 bytes
[19:24:49] INFO:
Verification OK
[19:24:50] INFO: > Updated Token value: 0x0
[19:24:50] INFO: > File name: /cert/ca.pem, Update: false, Erase: false
[19:24:50] INFO: > File name: /cert/client.pem, Update: false, Erase: false
[19:24:50] INFO: > File name: /cert/private.key, Update: false, Erase: false
[19:24:50] INFO: > File name: /sys/macadd.bin, Update: false, Erase: true
[19:24:50] INFO: > Erase File: /sys/macadd.bin
[19:24:50] INFO: erasing file "/sys/macadd.bin"
[19:24:50] INFO: deleting file "/sys/macadd.bin"
[19:24:50] INFO: erase file completed
[19:24:50] INFO: > File name: /sys/mode.cfg, Update: false, Erase: false
[19:24:50] INFO: > File name: /sys/ipcfg.ini, Update: false, Erase: false
[19:24:50] INFO: > File name: /sys/ap.cfg, Update: false, Erase: false
[19:24:50] INFO: > File name: /sys/devname.cfg, Update: false, Erase: false
[19:24:50] INFO: > File name: /sys/mdns.cfg, Update: false, Erase: false
[19:24:50] INFO: > File name: /sys/dhcpsrv.cfg, Update: false, Erase: false
[19:24:50] INFO: > File name: /sys/httpsrv.cfg, Update: false, Erase: false
[19:24:50] INFO: > File name: /sys/pref.net, Update: false, Erase: false
[19:24:50] INFO: > File name: /sys/smartconfigkeys.cfg, Update: false, Erase: false
[19:24:50] INFO: > File name: /sys/stacfg.ini, Update: false, Erase: false
[19:24:50] INFO: > File name: /sys/p2p.cfg, Update: false, Erase: false
[19:24:50] INFO: > File name: /sys/pmcfg.ini, Update: false, Erase: false
[19:24:50] INFO: > File name: /sys/mcuimg1.bin, Update: true, Erase: true
[19:24:50] INFO: > Erase File: /sys/mcuimg1.bin
[19:24:50] INFO: erasing file "/sys/mcuimg1.bin"
[19:24:50] INFO: deleting file "/sys/mcuimg1.bin"
[19:24:50] INFO: erase file completed
[19:24:50] INFO: > Size of file = 170616
[19:24:50] INFO: > Update File: /sys/mcuimg1.bin
[19:24:50] INFO: Downloading file "/sys/mcuimg1.bin" with size 170616
[19:24:55] INFO:
New Token is 0x0
[19:24:55] INFO: Download complete
[19:24:55] INFO: Verifying Data...
[19:24:55] INFO: get file
[19:24:59] INFO: Done. Reading 170616 bytes
[19:24:59] INFO:
Verification OK
[19:25:00] INFO: > Updated Token value: 0x0
[19:25:00] INFO: > File name: /sys/mcuimg2.bin, Update: true, Erase: true
[19:25:00] INFO: > Erase File: /sys/mcuimg2.bin
[19:25:00] INFO: erasing file "/sys/mcuimg2.bin"
[19:25:00] INFO: deleting file "/sys/mcuimg2.bin"
[19:25:00] INFO: erase file completed
[19:25:00] INFO: > Size of file = 170616
[19:25:00] INFO: > Update File: /sys/mcuimg2.bin
[19:25:00] INFO: Downloading file "/sys/mcuimg2.bin" with size 170616
[19:25:05] INFO:
New Token is 0x0
[19:25:05] INFO: Download complete
[19:25:05] INFO: Verifying Data...
[19:25:05] INFO: get file
[19:25:08] INFO: Done. Reading 170616 bytes
[19:25:08] INFO:
Verification OK
[19:25:09] INFO: > Updated Token value: 0x0
[19:25:09] INFO: > File name: /sys/mcuimg3.bin, Update: true, Erase: true
[19:25:09] INFO: > Erase File: /sys/mcuimg3.bin
[19:25:09] INFO: erasing file "/sys/mcuimg3.bin"
[19:25:09] INFO: deleting file "/sys/mcuimg3.bin"
[19:25:09] INFO: erase file completed
[19:25:09] INFO: > Size of file = 170616
[19:25:09] INFO: > Update File: /sys/mcuimg3.bin
[19:25:09] INFO: Downloading file "/sys/mcuimg3.bin" with size 170616
[19:25:15] INFO:
New Token is 0x0
[19:25:15] INFO: Download complete
[19:25:15] INFO: Verifying Data...
[19:25:15] INFO: get file
[19:25:18] INFO: Done. Reading 170616 bytes
[19:25:18] INFO:
Verification OK
[19:25:19] INFO: > Updated Token value: 0x0
[19:25:19] INFO: > Executing Operation: Disconnect
[19:25:19] Operation Program returned.
[19:25:22] Begin ListFileSystem operation.
[19:25:23] INFO: > Executing Operation: Connect
[19:25:25] INFO: setting break signal
[19:25:26] INFO: detecting FTDI for device reset
[19:25:28] INFO: connection succeeded
[19:25:28] INFO: getting storage list
[19:25:28] INFO: > Executing Operation: Init
[19:25:28] INFO: reading version info
[19:25:28] INFO: DEVICE CC3200 ES1.33
[19:25:28] INFO: reading version info
[19:25:29] INFO: reading version info
[19:25:31] INFO: > Executing Operation: ListFileSystem
[19:25:31] INFO: extracting file system information...
[19:25:31] INFO: Serial Flash block size: 4096 bytes
[19:25:31] INFO: Serial Flash capacity: 512 blocks
[19:25:31] INFO: file start size fail total size filename
[19:25:31] INFO: index block [BLKs] safe [BLKs]
[19:25:31] INFO: ----------------------------------------------------------------------------
[19:25:31] INFO: N/A 0 5 N/A 5 FATFS
[19:25:31] INFO: 0 81 4 yes 8 /sys/mcuimg.bin
[19:25:31] INFO: 4 5 5 yes 10 /tmp/phy.cal
[19:25:31] INFO: 6 15 33 yes 66 /sys/servicepack.ucf
[19:25:31] INFO: 7 89 50 no 50 /sys/mcuimg1.bin
[19:25:31] INFO: 8 139 50 no 50 /sys/mcuimg2.bin
[19:25:31] INFO: 9 189 50 no 50 /sys/mcuimg3.bin
[19:25:31] INFO:
[19:25:31] INFO: Flash usage
[19:25:31] INFO: -------------------------
[19:25:31] INFO: used space: 239 blocks
[19:25:31] INFO: free space: 273 blocks
[19:25:31] INFO: memory hole: [239-511]
[19:25:31] INFO: > Executing Operation: Disconnect
[19:25:31] Operation ListFileSystem returned.