Other Parts Discussed in Thread: UNIFLASH
Hi,
We are developing on a custom board based on CC3200 MCU,
Our application requires us to have a secondary bootloader and a application .
We are flashing both of them using Uniflash.
we follow the following steps:
-> Format and then,
-> Program
our boot process is :
we have written one bootloader which is programmed on the filesystem as /sys/mcuimg.bin. The bootloader loads and execute our application and the issue which we are facing is when bootloader tries to open application.bin which is something like "/sys/XXXX.bin" on the filesystem . i.e it is added as a user file while flashing.
We reboot our board many times and on some boards we have observed this that
when calling sl_FsOpen() API to open the application file (/sys/XXXX.bin) it returns -49 error .
NOTE : this issue has been observed on a working board and not just after flashing and trying to boot.
Also this issue is very very random and we dont have the steps to reproduce it yet, but after this issue occurs our boot process is stuck and the only option to recover from this is to reflash the board i.e it does not recover even after hardware reset or even after removing the power source(battery in our case) and connecting it back again.
This happens probably when randomly reseting the board or powering the board randomly or by software reset by calling the PRCMMCUReset().
We are using CC3200 MCU and along with it 1MB SFLASH; part number : M25PX80-VMN6TP
One thing observed with this is after this issue occurs we have listed the filesystem using uniflash tool and can see /tmp/phy.cal file is missing which is not the case with the boards working fine I dont know if this is related but just a observation.
Also find attached the output of the listfilesystem taken from Uniflash tool of both the working and suddenly stuck board which was working fine previously.
[13:47:15] INFO: > Executing Operation: ListFileSystem
[13:47:15] INFO: extracting file system information...
[13:47:15] INFO: file start size fail total size filename
[13:47:15] INFO: index block [BLKs] safe [BLKs]
[13:47:15] INFO: ----------------------------------------------------------------------------
[13:47:15] INFO: N/A 0 5 N/A 5 FATFS
[13:47:15] INFO: 0 15 7 yes 14 /sys/mcuimg.bin
[13:47:15] INFO: 6 29 24 no 24 /sys/XXXX.bin
[13:47:15] INFO: 7 53 1 yes 2 /sys/mcubootinfo.bin
[13:47:15] INFO: 8 55 1 yes 2 /sys/stacfg.ini
[13:47:15] INFO: 9 57 2 yes 4 /sys/pref.net
[13:47:15] INFO: 10 61 1 yes 2 /sys/ipcfg.ini
[13:47:15] INFO: 11 63 1 yes 2 /sys/mode.cfg
[13:47:15] INFO: 12 65 1 yes 2 /sys/pmcfg.ini
[13:47:15] INFO: 13 67 1 yes 2 /sys/mdns.cfg
[13:47:15] INFO: 14 69 1 yes 2 /sys/ap.cfg
[13:47:15] INFO:
Flash usage
[13:47:15] INFO: -------------------------
[13:47:15] INFO: used space: 61 blocks
[13:47:15] INFO: free space: 195 blocks
[13:47:15] INFO: memory hole: [5-14]
[13:47:15] INFO: memory hole: [71-255]
[14:51:22] INFO: extracting file system information...
[14:51:22] INFO: file start size fail total size filename
[14:51:22] INFO: index block [BLKs] safe [BLKs]
[14:51:22] INFO: ----------------------------------------------------------------------------
[14:51:22] INFO: N/A 0 5 N/A 5 FATFS
[14:51:22] INFO: 0 15 7 yes 14 /sys/mcuimg.bin
[14:51:22] INFO: 4 5 5 yes 10 /tmp/phy.cal
[14:51:22] INFO: 6 29 24 no 24 /sys/XXXX.bin
[14:51:22] INFO: 7 53 1 yes 2 /sys/mcubootinfo.bin
[14:51:22] INFO: 8 55 1 yes 2 /sys/stacfg.ini
[14:51:22] INFO: 9 57 2 yes 4 /sys/pref.net
[14:51:22] INFO: 10 61 1 yes 2 /sys/ipcfg.ini
[14:51:22] INFO: 11 63 1 yes 2 /sys/mode.cfg
[14:51:22] INFO: 12 65 1 yes 2 /sys/pmcfg.ini
[14:51:22] INFO: 13 67 1 yes 2 /sys/mdns.cfg
[14:51:22] INFO: 14 69 1 yes 2 /sys/ap.cfg
[14:51:22] INFO:
Flash usage
[14:51:22] INFO: -------------------------
[14:51:22] INFO: used space: 71 blocks
[14:51:22] INFO: free space: 185 blocks
[14:51:22] INFO: memory hole: [71-255]