Hello,
I work with the msp430f5438A , and compile with CCS 5.3 .
When I compile with large memory and code model I get the warning:
#17003-D relocation from function.
The warning is point to the code, where is a large array ( look up table) .
And the warning :
#10015-D output file…. Cannot be loaded.
All the array defined with const type qualifier.
The questions:
- due the fact that I use large data model and large code model. How can I get warning of relocation from function?
- How can I solve that warning?
compiler setting:
-vmspx --abi=eabi --code_model=large --data_model=large -g --include_path="C:/ti/ccsv5/ccs_base/msp430/include" --include_path="C:/ti/ccsv5/tools/compiler/msp430_4.1.2/include" --include_path="../hal" --include_path="../impact" --include_path="../hdr" --advice:power="all" --define=__MSP430F5437A__ --define=_LARGE_MEMORY_MODEL_ --define=_OPR_ --diag_warning=225 --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40
linker setting:
-vmspx --abi=eabi --code_model=large --data_model=large -g --advice:power="all" --define=__MSP430F5437A__ --define=_LARGE_MEMORY_MODEL_ --define=_OPR_ --diag_warning=225 --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 -z --stack_size=400 -m"../Release/kela_ver_x_x.map" --heap_size=400 --use_hw_mpy=F5 -i"C:/ti/ccsv5/ccs_base/msp430/include" -i"C:/ti/ccsv5/tools/compiler/msp430_4.1.2/lib" -i"C:/ti/ccsv5/tools/compiler/msp430_4.1.2/include" --reread_libs --warn_sections --display_error_number --rom_model
Thanks.