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.

CC3220: Embedded Programming

Part Number: CC3220

I’m facing a trouble to program the SFLASH via UART by using Embedded Programming.
Referring document is “CC3120 and CC3220 SimpleLink™ Wi-Fi® Embedded Programming” at www.tij.co.jp/.../swpa230.pdf.

I think, from STEP1 to STEP10 are completed correctly, because an acknowledge “Last Status response:0x40” is backed by Get Status Command.
After that, Wi-Fi FW USF file which is created by using Image Creator is programed as STEP11.
However image is not programed properly.

Question1: What’s the format to program the SFLASH?  (UCF?)
Question2: I send the data with the following format at once. Is it correct?
 Packet size:   2byte (4096)
 Checksum:  1byte
 FS Programming command:  1byte(0x34)
 Key size:  2byte (0)
 Chunk size:  2byte (4096)
 Flags : 4byte (0)
 Data :  4084 byte(FW)
Question3: Could you please advise me the points which I confirm to solve it.

  • Hello,

    Yes, you need to pick the .ucf file for programming.

    Regarding the values for the different arguments, it is not correct.

    Please note that the document state that the length is the size of all fields beside the checksum.

    So in your case, it should be 4096+2 (length) +1 (opcode) +2 (key size) +2 (chunk size) +4 (flags) = 4107.

    The chunk should be 4096 bytes.

    You can see an example in the logic captures inside the package.

    Shlomi

  • Thank you for your quick response.

    The  image is programed properly.