Part Number:MSP430FR5738
Tool/software: Code Composer Studio
Hello all,
I hope it is the good forum, I hesitated with the compiler forum
As I use FRAM MSP430 µC, I wanted to change the memory code and data memory model to small (FRAM maximum memory size is <16Ko...) to optimize my code size. But there are linking errors due to incompatibility of model (error #16019).
In fact inside the makefile automatically generated by grace, there is the line:
# optional compiler flags CCOPTS ?= -vmspx --abi=eabi --code_model=small --data_model=small -O0 --opt_for_speed=0 --include_path=...
# the compiler and archiver commands
CC = "C:/PROGRA~1/TI/ccsv5/tools/compiler/msp430_4.2.4/bin/cl430" --abi=eabi -c --obj_directory=objs/ -vmspx --near_data=none --code_model=large --data_model=restricted
The first line seems to change correctly according to my project configuration, but the second is fixed. The compiler is called with the two parameters in option and by default choose large model, logically.
I try to delete the makefile, but the new generated one has the same behavior.
Do you have an explanation? may be some grace libraries are compiled with large memory model so the the configuration is force by this way, but I use otherwise driverlib library and there is not this type of problem.
Best regards,
Wilfrid