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.

Storing graphics assets in CC3200 flash

Other Parts Discussed in Thread: CC3200, UNIFLASH, CC3100

My application does graphics on a 240x240 LCD and I have several assets like fonts and bitmaps which don't all need to be in active memory at once and which I need  to store in the 750K of "unused" onboard flash. I would love some guidance on how to put binary resources in the flash at build time and then retrieve them individually at run time.

  • Hi Roy,

    There is a file_operations example program at CC3200 SDK. See, if that example program might help you achieve what you want to do.

    - kel
  • Thanks, kel. I did see that one, and it would be perfect if I knew a way to put the files into flash at build time instead of run time.
  • Hi,

    If you want to put the files at build time, see httpserver example program instead. Before, I was able to modify the httpserver webpage and play animated gif.

    - kel
  • Thank you, kel -- that's a big help. That sample does perform the task I want, so it will eventually get me there. If I can prevail upon your patience a bit more, though, my CCS neophyte status is biting me. I spent a couple hours last night unsuccessfully trying figure out:

    • What mechanism caused the project to include the html files in the binary. 
    • Where in the code the html files get read from flash.

    The sample links to something like "free RTOS" rather than the RTOS that came with my SDK, so I haven't gotten it to compile yet either.

    Thanks again,

    Roy

  • Roy Sprowl said:
    • What mechanism caused the project to include the html files in the binary. 
    • Where in the code the html files get read from flash.

    1. The html are not included in the binary after compilation of the program. The html is stored at Serial Flash using Uniflash. You can see the webpage files at Uniflash if you load the .ucf file of httpserver at Uniflash.

    2. It will benefit you, to go through the "CC3100\CC3200 SimpleLink™ Wi-Fi® Network Processor Subsystem Programmer's Guide" doc or swru368.pdf, to help you understand how the entire httpserver example works, including the embedded web page.

    - kel

  • This is exactly what I needed; I hadn't understood that Uniflash uses the same file naming scheme that the RTOS file system calls do. It's obvious good engineering now that I understand, but very different from the Windows embedded resource schemes I'm accustomed to. Thanks very much for your help!