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.

CC3220MODA: How to programming cc3220 using uart?

Part Number: CC3220MODA
Other Parts Discussed in Thread: CC3220SF, CC3220MOD, UNIFLASH

Hi TI supporters,

I want to using external MCU to program the cc3220moda via UART.

In  my hardware: cc3220moda interface with external mcu: P55:TxD1, P57:RxD1.

How can I do it?  Can you show me or any document?

A lot of thank!

Vu.

  • Hi Jan,

    When I using ImageProgramming.exe, I can use any UART converter, right?

    Then I connect PC to TX, RX of cc3220sf?

    Thank you!!

    Vu,

  • Hi Jan,

    In my hardwware, my CPU can't use UART with baudrate 921600. There, use UART to programming is impossible.

    I found CC3220 Production Line Guide at chapter 4: Programming Directly Through SPI, I need more information to programming direct SPI.

    I use CC3220MODASF12MON interface with MCU through SPI and programming.

    Thank you,

    Vu,

  • Hi Vu,

    Yes, you can use USB to UART converter.

    Inside CC3220MOD is a flash chip from Macronix MX25R3235F. You need to hold CC3220MOD at reset and after that you can program SPI flash chip using pins 13,14, 15, 17. Do not forgot clear whole flash chip before programming. All related information how to program SPI flash chip you find at Macronix datasheet.

    Jan

  • Hi Jan,

    I need to create ".bin" from Uniflash and write to MX25R3235F at start address: 000000h to end address: 3FFFFFh, Right?

    But at .bin file, end address :

    003FDFF0: FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF ;................
    003FE000: FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF ;................
    003FE010: FFFF FFFF FFFF FFFF ;........

    End address of MX25R3235F is 3FFFFFh,

    From 3FE010 to 3FFFFF I must to write FF, right?

    I think so,

    Thank you for your help.

    Vu,

  • Hi Vu,

    You should not write anything there. Writing 0xFF into already erased flash is a wasting of time only.

    At beginning is best to do mass erase and after that program binary image generated from the Uniflash.

    Jan

  • Hi Jan,

    I write .BIN file generated from the Uniflash and verify data content in MX25R3235F but CC3220MODA can't run.

    Am I missing any step?

    Thank you,

    Vu,

  • Hi Vu,

    Hard to say what may to be incorrect.

    • Did you erased whole SPI flash
    • Is your image generated at production or development mode? In case of your image is generated at development mode do you have inserted proper MAC address of module?
    • Please try to generate .ucf file for UART programming and try to use it for UART programming. If you will be successful, we can be sure that your Uniflash setup is correct.
    • What is your SOP mode? For unpacking image you should to use SOP mode 0-0-0.

    Be aware after programming content of SPI flash you need to restart module. After that will module starts unpacking binary image and creating filesystem. This can take a moments.

    Jan

  • Hi Jan,

    SOP set mode 010.

    I change 000 then it's work.

    Thank for your support,

    Vu,