Tool/software: Code Composer Studio
My program, based off of adc0_singleended_singlechannel_singleseq.c, does not compile when SysCtlClockFreqSet() is called, and I'm not sure why. The error message and section of the code are below. I tried to call SysCtlReset() just to check if that entire header file is inaccessible, but that didn't result in any errors. I've also included the standard driverlib, and am using a number of functions from other driverlib headers, namely adc.h, so I'm at a loss as to why this specific function isn't working. All of the parameters are also accessible in sysctl.h.
My Includes, as listed in the directory and copied from the example, are:
C:/ti/ccsv8/ccs_base/arm/include C:/ti/ccsv8/ccs_base/arm/include/CMSIS C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include C:/ti/simplelink_msp432e4_sdk_2_30_00_14/source C:/ti/simplelink_msp432e4_sdk_2_30_00_14/source/third_party/CMSIS/Include C:/ti/simplelink_msp432e4_sdk_2_30_00_14/source/ti/net/bsd
Error:
>> Compilation failure makefile:144: recipe for target 'BOLT_IV_MCU.out' failed --------- ---------------- SysCtlClockFreqSet ./main.obj error #10234-D: unresolved symbols remain error #10010: errors encountered during linking; "BOLT_IV_MCU.out" not built gmake[1]: *** [BOLT_IV_MCU.out] Error 1 makefile:140: recipe for target 'all' failed gmake: *** [all] Error 2 **** Build Finished ****
Code causing the error:
#include "msp.h"
/* Standard driverlib include - can be more specific if needed */
#include <ti/devices/msp432e4/driverlib/driverlib.h>
#include <stdint.h>
#include <stdbool.h>
#define GPIO_PORTS 15
int main(void)
{
uint32_t systemClock;
MAP_SysCtlReset();
/* Configure system clock for 120 MHz */
systemClock = MAP_SysCtlClockFreqSet((SYSCTL_XTAL_25MHZ | SYSCTL_OSC_MAIN |
SYSCTL_USE_PLL | SYSCTL_CFG_VCO_480),
120000000);
