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.

MSP430FR2311: Risks when using MSP430FR2311 small code model

Part Number: MSP430FR2311
Other Parts Discussed in Thread: MSP430G2553

Hi,

When creating a default empty project in CCR 12.4 for a MSP430FR2311, the --code_model compiler flag is set to large. This has a significant effect on the program memory footprint due to the 20bit addressing mode that is used within the large code model (if I understand correctly).Therefore, I prefer to use the small code model.

Taking into account the limited amount of memory in this particular MCU (3.5k FRAM, 1k RAM), is there any downside to using the small code model? Are there any risks I need to be aware of?

Thanks,

Justus

  • There are zero hazards since there is nothing present that requires the longer addresses.  For such a tiny amount of program memory (FRAM) you shouldn't be using the large model for any reason.

    I always start with the small model and will not change that unless required.

  • Perfect, thanks!

    I was put on the wrong track because of the unexpected (wrong?) default project setting. My previous project used a MSP430G2553, for which CCS already choose the correct code model (small). This was not the case for the MSP430FR2311.

**Attention** This is a public forum