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.

CC3200: Saving 500 MB Binary Files to Flash Memory

Part Number: CC3200
Other Parts Discussed in Thread: ENERGIA

Hi, 

I am currently working on a code in Energia that will allow me to upload and send a binary file wirelessly from a client site to the CC3200. So far, the code has successfully accomplished the following:

-the board establishes a Wi-Fi network

-commands from a laptop can interact with the board (the Energia Simple Wi-Fi Server example (LED ON/OFF) code was tested to ensure this was working)

-a 9 byte binary file is sent through Wi-Fi to the board's volatile memory, saved from volatile memory into an on-baord flash memory file, and confirmed by sending it back to the laptop through a serial connection

The code is eventually supposed to receive a larger binary file (we hope around 500 KB) that will represent points on a sinusoidal curve. This file will then be sent to the Audio Booster Pack board to play the audio file. 

I created a flash file which was opened, and written to through a buffer array containing the binary file contents. 

This method was successful for a 9 byte file, but I learned that a larger 500 KB file cannot be stored in a buffer array so easily. I think this is because of a lack of RAM space on the board, but I am not entirely sure why the larger file won't save, since the on-board flash memory supports file sizes of 1 MB. 

How can I save this larger binary file to the flash memory? Is the buffer array approach a good method? Latency isn't really an issue, as long as we can fit the whole file on the board, and then play it after. 

Thanks, any support is greatly appreciated!

  • Hi,

    In CC3200 LaunchPad is embedded 1MB flash memory. If you use chip version of CC3200, you can use serial flash up to 16MB. Filesystem for serial flash have limitation to biggest file up to 1MB.

    I think best way for your purpose is connect secondary serial flash (SPI, I2C) to you CC3200. Control of this flash memory will be on you and this allow you decrease latency and store bigger files. Alternatively you can connect SD card to CC3200. Solution with SD card is little more complicated. And finally, if you need really quick storage, please consider to use SDRAM chip.

    For question about Energia and implementation is better post to this forum forum.43oh.com/.../

    Jan

  • Hi Jan, 

    Thanks for getting back to me.

    The intention of the project is to transmit the file through the board's Wi-Fi. I am having no trouble getting the file to the board wirelessly, I just need a proper way to store the file. I will post in the recommended forum, since it is more of an Energia implementation question. Thanks!

  • You will need an external flash device separate from the one already required by the CC3200

    -Aaron