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.

MSP430F67751A: MSP430F67751A DMA Problem Optimum RAM usage

Part Number: MSP430F67751A
Other Parts Discussed in Thread: MSP430F67751

Hello, 

I asked question about DMA problem previously. What is the optimum percent of RAM usage for MSP430F67751 series to work reliable ?

Thanks.

  • Hello,

    There is not any hard/fast guidance here as it depends on lots of factors including stack size, and variables held in RAM. In other words, how much RAM you need to be free to operate properly, is entirely dependent on your software and how its architected. Adjusting stack size as suggested in other thread could help you, but you may also think shifting some RAM usage to longer term storage (aka FLASH) if you can or sending out your data on a comms interface if your system allows for it. My basic assumption here is you have  a large array of ADC samples being stored in RAM, due to the other thread. 

    If you do everything through CCS , as far as adjusting stack size and such, the linker and compiler should give you warnings if you are going over your limits. What they will not tell you if you are writing over previous data being stored in RAM. One way to figure out how much RAM you need, is to compile code without storing an array of values, and see what your RAM usage is. You could also do a "watermark" test to see how much dynamic RAM the device is using. This is done by filling all of RAM with 0xFFFF, then once you are done with exercising your program, you can pause the debugger and see where RAM as stopped changing. (no longer at 0xFFFF). 

    there are also some advanced debug techniques you may find in the CCS for MSP430 User Guide or in the following app note: www.ti.com/lit/slaa393 

**Attention** This is a public forum