Other Parts Discussed in Thread: TM4C123GH6PGE, TEST2, SYSBIOS
I am using the Tiva C TM4C123G and can't get a very simple project to compile because I keep getting unresolved symbol errors
Here is my code
/*
* main.c
*/
#include <stdint.h>
#include <stdbool.h>
#include "C:/ti/TivaWare_C_Series-1.1/driverlib/sysctl.h"
#include "C:/ti/TivaWare_C_Series-1.1/driverlib/rom.h"
int
main(void) {
//
// Set the clocking to run directly from the crystal.
//
ROM_SysCtlClockSet(SYSCTL_SYSDIV_4 | SYSCTL_USE_PLL | SYSCTL_XTAL_16MHZ |
SYSCTL_OSC_MAIN);
return 0;
}
My linker flags
-mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --diag_warning=225 --display_error_number --diag_wrap=off -z --stack_size=512 -m"test2.map" --heap_size=0 -i"C:/ti/ccsv5/tools/compiler/arm_5.0.4/lib" -i"C:/ti/ccsv5/tools/compiler/arm_5.0.4/include" --reread_libs --define=--define=ccs="ccs" --define=PART_TM4C123GH6PGE --define=TARGET_IS_BLIZZARD_RA1 --verbose_diagnostics --warn_sections --display_error_number --issue_remarks --diag_wrap=off --xml_link_info="test2_linkInfo.xml" --rom_model
Error
undefined first referenced
symbol in file
--------- ----------------
ROM_SysCtlClockSet ./main.obj
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "test2.out" not built
>> Compilation failure
I am sure I must be missing something really stupid but I just can't get any project I create to find symbols in the driverlib.lib