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.

override compiler.opt parameters

Other Parts Discussed in Thread: SYSBIOS, MSP430F5437A

Hi,

I am using CCSv4 along with SYSBIOS for MSP430. I have defined a large array of data in flash (around 124 KB).
The SYSBIOS project gives an error about "#96: array is too large". I have made sure that I am using the large code and data model (in the CSS build settings). But it appears that XDCTool (used for SYSBIOS) is generating compiler.opt file which is overriding my settings.

If I reduce the array size to under 65KB, it compiles OK. With the original size (124KB), I can get it working if I don't use the SYSBIOS so I think the issue due to data model set to restricted in compiler.opt file.

Any hint would be greatly appreciated on overriding the compiler.opt options or instructing XDCTool to use the "large data model" instead of "restricted" (which it is currently using).

Here is the command in the console output, when trying to build the offending file:

"C:/D/DevTools/Embedded/TI/ccsv4/tools/compiler/MSP430 Code Generation Tools 4.1.2/bin/cl430" -vmspx --abi=coffabi --code_model=large --data_model=large -O0 --opt_for_speed=0 -g  --define=__MSP430F5437A__ --diag_warning=225 --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --large_memory_model --optimizer_interlist --printf_support=minimal -k --c_src_interlist --preproc_with_compile --preproc_dependency="Firmware/initcnfg.pp" --obj_directory="Firmware" --cmd_file="./configPkg/compiler.opt"  "../Firmware/initcnfg.c"

This is the content of the compiler.opt file (I have removed the -I include parhts to reduce the length):

-vmspx --near_data=none --code_model=large --data_model=restricted -Dxdc_target_types__="ti/targets/msp430/std.h" -Dxdc_target_name__=MSP430X -Dxdc_cfg__header__="C:/D/DevTools/Embedded/TI/workspace/3200Firmware/Release/configPkg/package/cfg/task_p430X.h"

  • projecta98,

    SYS/BIOS and XDCtools do not support the "large" data model of MSP430.  This is actually the first time we’ve heard of someone using SYS/BIOS on MSP430 wanting that large of an array.

    Can you break the array up into separate arrays of 64K or less to fit within the constraints of the "restricted" data model?

    Scott