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.

MSP430FR2676: Compiler --use_hw_mpy option defaults to F5

Part Number: MSP430FR2676
Other Parts Discussed in Thread: MSP430F47177, MSP430F5529

After creating a new MSP430FR2676 project in Code Composer Studio, the --use_hw_mpy compiler option is set to F5. The documentation says F5 is for F5xx devices. Should the option be set to F5 be for the FR2676 or 32, which is for F4xx devices?

  • From looking at the documentation and TI MSP430 compiler run time library source files I think the MPY32 in the different series has the same registers, but the base address of the MPY32 registers can differ between the series.

    Where:

    • --use_hw_mpy=32 selects functions for the MPY32 with a base address of 0x0130 (e.g. the ti-cgt-msp430_21.6.0.LTS/lib/src/mult3264_hw32.asm source file)
    • --use_hw_mpy=F5 selects functions for the MPY32 with a base address of 0x04C0 (e.g. the ti-cgt-msp430_21.6.0.LTS/lib/src/mult3264_f5hw.asm source file)

    Looking at a sample of datasheets:

    • A MSP430FR2676 has a MPY32 with a base address of 0x04C0
    • A MSP430F47177 has a MPY32 with a base address of 0x0130
    • A MSP430F5529 has a MPY32 with a base address of 0x04C0

    Therefore, the --use_hw_mpy=F5 for a MSP430FR2676 does look correct. I agree is a bit confusing, and the documentation for the --use_hw_mpy compiler option could be clarified.

  • Thank you for bringing this issue to our attention.  The compiler manual does not indicate what setting of --use_hw_mpy to use for the MSP430FR267x group of devices.  So, I filed the entry EXT_EP-10629 to have that addressed.  You are welcome to follow it with that link.

    Thanks and regards,

    -George

**Attention** This is a public forum