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.

Developing in RAM & Flash

I am writing software that is larger than the available RAM space, so I cannot develop entirely in RAM and I have to develop in flash. However the flash has limited write cycles, which in the development phase can easily run into that limitation.

What I want to do is flash the known working parts of my code info flash, and then work on the new functions in RAM. I would have to boot from flash and call a function in a known location of RAM, similar to a ramfunc section, but loaded using File > Load Program instead of memcopy. I will also have to be sure to link seperate sections of RAM space for the stack.

Is this the right way to go about this? Open to suggestions.

  • Hello Henry

    Yes, your approach sounds good. If you are new in this then please look up the application note which explains how to run application from flash. Also, I am not sure which C2000 device you are planning to use in your final product but you may consider using a device with maximum RAM during development phase for the ease of debugging and later move to the correct device. Since 28xxxx devices are code compatible and transitioning from one device to another will be relative easy. Good luck with your project.

  • I've already successfully run code in flash and in RAM seperately.

    I am using F2812 on an ezDSP. Sorry forgot to mention that in first post.

     

  • Henry,

    The F28x devices have more W/E cycles than are documented in the datasheet. We have been running qualification and will increase the number sometime soon.  It really should not be an issue during the course of a year or two of daily development.  But your method will certainly work fine.

  • The problem can be solved by adding external static RAM chip(and connecting it via XINTF interface). In my eZdsp F28335 it is already onboard. Flashing is time wasteful operation, program loading to RAM is much faster.