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.

uniflashCLI invalid serial flash capacity after format

Other Parts Discussed in Thread: UNIFLASH

Hello,

I use uniflashCLI for programming purposes and I am not able to format serial flash with proper capacity. The log from command line tool shows:

***** Texas Instruments Universal Flash Programmer *****

> Configuring UniFlash with the following configuration: C:/Users/Piotr Marcinko
wski/Projects/pmarcinkowski/bcdevelopment/output/uniflash.usf

> Device: SimpleLink Wifi CC3100/CC3200
> Interface: CC3x Serial(UART) Interface

> Template XML: C:\Users\Piotr Marcinkowski\Projects\pmarcinkowski\bcdevelopment
\output\uniflash_session\templates\CC3xxx_template.xml
> Token XML: C:\Users\Piotr Marcinkowski\Projects\pmarcinkowski\bcdevelopment\ou
tput\uniflash_session\templates\CC3xxx_token.xml
> User setting [com]: 3
> User setting [capacity]: 16M

> Executing operation: format
> Relevant settings:
Capacity: 16M
INFO: > Executing Operation: Connect
INFO: setting break signal
INFO: detecting FTDI for device reset
INFO: connection succeeded
INFO: getting storage list
INFO: > Executing Operation: Init
INFO: reading version info
INFO: DEVICE CC3200 ES1.33
INFO: reading version info
INFO: reading version info
Progress (SRAM): 8%
Progress (SRAM): 24%
Progress (SRAM): 32%
Progress (SRAM): 49%
Progress (SRAM): 57%
Progress (SRAM): 74%
Progress (SRAM): 82%
Progress (SRAM): 90%
Progress (SRAM): 98%
Progress (SRAM): 100%
INFO: > Executing Operation: Format
INFO: Erase storage SFLASH
INFO: erase storage succeeded
INFO: erase storage completed
> Finish Executing operation: format

UniFlash UI application after executing List File System shows:

[13:06:41] Begin ListFileSystem operation.
[13:06:42] INFO: > Executing Operation: Connect
[13:06:44] INFO: setting break signal
[13:06:46] INFO: detecting FTDI for device reset
[13:06:47] INFO: connection succeeded
[13:06:47] INFO: getting storage list
[13:06:47] INFO: > Executing Operation: Init
[13:06:47] INFO: reading version info
[13:06:47] INFO: DEVICE CC3200 ES1.33
[13:06:47] INFO: reading version info
[13:06:48] INFO: reading version info
[13:06:50] INFO: > Executing Operation: ListFileSystem
[13:06:50] INFO: extracting file system information...
[13:06:50] INFO: Serial Flash block size:	4096 bytes
[13:06:50] INFO: Serial Flash capacity:		128 blocks

[13:06:50] INFO: 	file	start	size	fail	total size	filename
[13:06:50] INFO: 	index	block	[BLKs]	safe	[BLKs]
[13:06:50] INFO: ----------------------------------------------------------------------------
[13:06:50] INFO: 	N/A	0	5	N/A	5		FATFS
[13:06:50] INFO: 	0	5	3	yes	6		/sys/mcuimg.bin
[13:06:50] INFO: 	4	11	12	no	12		/recovery.bin
[13:06:50] INFO: 	6	23	5	yes	10		/tmp/phy.cal
[13:06:50] INFO: 


[13:06:50] INFO: 	Flash usage
[13:06:50] INFO: -------------------------
[13:06:50] INFO: used space:	33 blocks
[13:06:50] INFO: free space:	95 blocks
[13:06:50] INFO: memory hole:	[33-127]
[13:06:50] INFO: > Executing Operation: Disconnect
[13:06:51] Operation ListFileSystem returned. 

It looks like the serial flash was formatted to 512kB capacity.

I am using UniFlash 3.4,

Thanks,

Piotr

  • Piotr,

    I noticed that when you listed the File System that there is content on the device. Did you run another operation between the format and the list file system, and could it be that it was formatted with a different capacity during that time?

    Can you try to run the following command line that formats and lists the file system in the same command, and let me know if the capacity is correct?

    >uniflashCLI.bat -config <yourUSFfile> -setOptions capacity=16MB -operation format listFileSystem

    When I tested this, I was able to get the correct capacity:
    INFO: Serial Flash block size: 4096 bytes
    INFO: Serial Flash capacity: 4096 blocks

    Thanks,
    Ricky