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.

MSP430FR6989: Using small data and/or code model

Part Number: MSP430FR6989

Hello,

I am finding that CCS is not letting me set the data or code model via the Properties>MSP430 Compiler>Processor Options screen. The summary of flags set appears correct:

 -vmspx --code_model=small --data_model=small --use_hw_mpy=F5 --include_path="/opt/ti/ccs1200/ccs/ccs_base/msp430/include" --include_path="/opt/ti/ccs1200/ccs/tools/compiler/ti-cgt-msp430_21.6.0.LTS/include" ...

but when it is actually built the linker command is:

"/opt/ti/ccs1200/ccs/tools/compiler/ti-cgt-msp430_21.6.0.LTS/bin/cl430" -vmspx --data_model=restricted --use_hw_mpy=F5 ...

ie it seems to revert back to the default options.

The file link_msp430fr6989.cmd file includes a couple conditional statements #ifndef __LARGE_DATA_MODEL__ and #ifndef __LARGE_CODE_MODEL__ and these do not appear to be defined anywhere yet the code is being built as if they are, I'd assume this is related to the --data-model command line options being incorrect.

Using CCS 12.0.0.00009 on Ubuntu 18.04

**Attention** This is a public forum