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.

SYS/BIOS data memory model

Other Parts Discussed in Thread: MSP430F5438

We are developing a solution with TI CC256x chip. We are trying to use Bluetopia within SYS/BIOS project for MSP430F5438.

We are getting problems during linking SYS/BIOS project with Bluetopia library (BT stack available from TI). We are not able to recompile Bluetopia (this is distributed in binary form), and it is available in binary format with small data memory model.  Even if there is setting of small data memory model, some SYS/BIOS files are generated with restricted memory model, and several warnings are generated considering conversion from int to pointers.

Is it possible to compile SYS/BIOS application with small data memory model? How to use SYS/BIOS with library compiled for small data memory model?

  • Jacek,

    Two “targets” with different memory model combinations are currently supported on MSP430: large code with restricted data (the default), and small code with small data.

    To switch to use the small model target, do this: Right click on the project, select Properties, click General, and then click on the RTSC tab.  Change the target setting from “ti.targets.msp430.elf.MSP430X” to “ti.targets.msp430.elf.MSP430X_small”, and click Ok to close the property page.  Then clean and rebuild the project.  If you haven’t used this small code small data combination since the compiler was installed, the “rts430x_sc_sd_eabi.lib” runtime library will be built during the rebuild of the project.

    Scott

  • Scott,

    many thanks for option that allow for small memory model. Unfortunatelly Bluetopia library is provided as code model = large and data model = small. Is such configuration supported by SYS/BIOS?

  • Jacek,

    No, sorry, the only TI compiler memory model combinations SYS/BIOS supports on MSP430 are the two combinations Large Code/Restricted Data and Small Code/Small Data that I described in the earlier post, in ELF format.  In some of our early releases for MSP430 we supported the Large Code/Small Data combination, and COFF format, but those were deprecated.

    Scott