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.

Error building 256 Kb + code in CC3200.

Other Parts Discussed in Thread: CC3200

Hi all,

I have my application code which is large and uses more than 256 KB of memory ( including data + code ). When i run the program i get an error " program will not fit into available memory".

I know the program code wont fit into available RAM. But how can i specify the use of external flash in the command linker file while building.

I am stuck on my project in this regard.

Thanks

Regards,

Sreenivasa

  • It is my understanding that the external flash is quite different to flash you might have within an MCU, it is treated as an external peripheral, so I doubt you will be able link to it as you are wanting. Also, it will not matter if you could, as it will want to copy into RAM anyway, so you end up with the same issue.

    I do have a work around you may be able to implement though. If you can reduce size significantly by separating the data from the code, and then breaking up the data into chunks and save these chunks as separate files on the serial flash. And if you do not need to process these chunks all at the same time, then you could use the Fs module (API) to work with the data stored on the serial flash, discard when done with a chunk, retrieve when you need a new chunk.

    If this does not work....then it looks like you need a larger MCU or perhaps a processor with an OS etc.

    Glenn.
  • Glenn,

    Thanks again :)

    I understand this now.

    I have procured Audio booster pack for CC3200.I have connected it as mentioned in the user guide.
    Also i have only 1 CC3200 launchpad.

    I have imported the wifi audio app program into my ccs 6.0 workspace.

    What changes should i do so that i can use this app as a loopback application i.e playout and capture on the same CC3200.
    I dont have multiple boards to test the default example.

    Also i see a MACRO called NETWORK defined in the network.c file. Can simply undefining this will do the job?


    Also how can i enable the on board mic in the default example.

    Regards,
    Sreenivasa
  • I cannot answer your specific questions....but is your app so large because you have embedded a sound file of some sort?
  • Glenn,

    There is no dependency of file as such. The code + data takes around 300 KB.

    Regards,
    Sreenivasa
  • Hi Sreenivasa,

    Is this issue resolved ?

    Thanks and Regards,
    Praveen
  • Hi Sreenivasa,

    Does the above posts answered your query ? If so, please mark the thread as answered to close it.

    Thanks and Regards,
    Praveen