Hi,
After installing the ARM Compiler from the CCS App Centre, I can't link my project any more. I get the following error:
'Invoking: MSP432 Compiler'
"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_16.6.0.STS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me -Ooff --opt_for_speed=1 --include_path="C:/ti/ccsv6/ccs_base/arm/include" --include_path="C:/ti/ccsv6/ccs_base/arm/include/CMSIS" --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-arm_16.6.0.STS/include" --include_path="C:/ti/msp/MSPWare_3_20_00_37/driverlib/driverlib/MSP432P4xx" --include_path="C:/LRR/Common/trunk" --include_path="C:/LRR/Common/trunk/drivers" --include_path="C:/LRR/Common/trunk/dataStructures" --include_path="C:/LRR/Hydra/trunk" --include_path="C:/LRR/Hydra/trunk/drivers" --include_path="C:/LRR/Hydra/trunk/dataStructures" --advice:power="1,2,3,4,5.2,5.3,7,9,10,12" --define=__MSP432P401R__ --define=DEBUG --define=TARGET_IS_MSP432P4XX --define=ccs -g --gcc --printf_support=full --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --common=on --preproc_with_compile --preproc_dependency="msp432_startup_ccs.pp" "../msp432_startup_ccs.c"
"C:\Users\xxxx~1\AppData\Local\Temp\1310810", ERROR! at line 644: [E0001] Address must be of a non-global defined in the current section
B hard_fault_handler_c
from the code:
static void FaultISR(void) { // The following code gets the stack pointer // This is then used to find what caused the Fault ISR __asm( " TST LR, #4\n" " ITE EQ\n" " MRSEQ R0, MSP\n" // Depending on what mode the CPU is in, the stack pointer will " MRSNE R0, PSP\n"// be either MSP or PSP " B hard_fault_handler_c\n"//jump to the hard fault handler to print out debug info ); // // Enter an infinite loop. // while (1) { } }
Any ideas?