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.

MSP430FR2355: IQMathLib using MPY32

Part Number: MSP430FR2355


Hello, 

I would like to use IQ or QMathLib with MSP430FR2355 and take advantage of the MPY32 multiplier. I do not see support in the IQMathLib for the MSP430FR2355 and MPY32 specifically. I can manually add support for it myself but it would be better to use a ready made library. 

How can I add the IQMathLib to the CCS 10.4.0.00006 so that the library is using the MPY32 peripheral? How do I set it in the project properties? 

Thank you

Sagi 

  • While we are at it, I also would like to know what is the definition of large code, small data configurations. -- Thanks.

  • Hi Sagi,

    In CCS, just add it to your project. You can create a folder under your project and place it there.

    Here is an example:

    If you do,  you will have to change the project properties to add an include path to this folder.

    Now, about memory models.  I took a couple of screen shots in CCS so you can see where these configurations are set.

    Now the MSP430FR2355 is only a 32K device, so you are probably going to ask why is the default memory model large?  You can certainly set this to small, but, the reason it defaults to large is to be able to access the ROMLIB at the higher address. 

    The ROMLIB contains pre-programmed MSP430 driverlib functions. You'll have to refer to the MSP430 driverlib documentation for those details.  If you won't be using the ROMLIB functions you can set it to small memory model.  The difference between large and small memory models isn't much in terms of your program size, but there is a slight performace penality with large due to the extra code required to address the higher locations.

    Hope this helps.

  • Hi Dennis, 

    Thank you for your the post.

    I linked the library and can resolve the special _iq in CCS. The question is how do I know for sure the library is using the onboard MPY32? The MPY32 has a very special register write order and if there is no support for it then I think it is not using it? 

    Thanks

    Sagi  

  • Anyone else has any input on whether the MPY32 is being used in the IQ_Math library or do I need to implement it myself? 

    Thanks

    Sagi 

**Attention** This is a public forum