We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi All,
Please have a look at below code from makefile.
$(OUTPUT_FILE_PATH): $(OBJS) @echo Building target: $@ @echo Invoking: ARM/GNU Linker : 4.8.4 $(QUOTE)$(COMPILER_PATH)\armlink.exe$(QUOTE) --cpu Cortex-M0+ "Mcal\lib\MCAL.lib" -o$(OUTPUT_FILE_PATH) $(OBJS) --library_type=microlib --strict --scatter "linker_scripts\samd21\keil\SAMD21.sct" --summary_stderr --info summarysizes --map --xref --callgraph --symbols --info sizes --info totals --info unused --info veneers --list "listings\mapfile.map" @echo Finished building target: $@
I have created Cortex M0+ specific driver library. I am able to link this library to my ECAL code. But i ahve one more core specific library which i am trying to link. "CoreM0+.lib"
I have modified the above makefile as below $(OUTPUT_FILE_PATH): $(OBJS) @echo Building target: $@ @echo Invoking: ARM/GNU Linker : 4.8.4 $(QUOTE)$(COMPILER_PATH)\armlink.exe$(QUOTE) --cpu Cortex-M0+ "Core\CoreM0+.lib","Mcal\lib\MCAL.lib" -o$(OUTPUT_FILE_PATH) $(OBJS) --library_type=microlib --strict --scatter "linker_scripts\samd21\keil\SAMD21.sct" --summary_stderr --info summarysizes --map --xref --callgraph --symbols --info sizes --info totals --info unused --info veneers --list "listings\mapfile.map" @echo Finished building target: $@ My understanding as per input-file-list keyword from compiler reference is to add multiple library files by seperating them with comma. Please let me know any other workaround or alternative.
Thanks in Advance, Parag.