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.

Memory Size

Hi,

How to predict the maximum memory size required for the specific application before selecting the microcontrollers?

  • Hello Vasu,

    If you have a CCS project for a device you can view the size requirements for the program by looking at the Memory Allocation view after successfully building the project.

    If you don't have a CCS project, you can create one for a device with a large amount of memory just for testing this out (such as the F2838x device, or whatever device is compatible with your code). From there, if you copy your program code into that project and set up the linker command (.cmd) file, you can view the amount of memory needed solely for the program (.text section) or any variables/data you need to store.

    Besides using this method, there is no easy way to predict the maximum memory size required unless you're just trying to calculate this for data. If this is the case, to find out the maximum size required for the data to be stored you can determine the amount of data (i.e. 64 32-bit integers) and then determine how many memory locations will be needed. In our devices, one location stores a 16-bit word, so if you have 64 32-bit integers this will require a memory size of at least 128 for just this data.

    Best regards,

    Omer Amir

  • Hi Omer Amir,

    Yes I accept that if we have CCS project we can see the memory size. When we are getting new project, we have to finalize the controller at the design stage  which we are going to use. So at the we can't develop the code for the whole application.

    I took grid connected single phase inverter as reference, F280049C is used in that. Same application we are going to develop, and now we have planned to go with F280049C.

    Thanks for your reply.

    Regards 

    Vasu

  • Hi Vasu,

    Do you need further help or is the info I provided sufficient? Unfortunately for determining programming size, there's no way to predict how large it will be without first writing it.

    Best regards,

    Omer Amir

  • Yeah Omer I accept that