Tool/software: Code Composer Studio
Hello,
I made a custom TM4C123 board, and I managed to program it by using another launchpad as a JTAG adapter.
In my board, there is a battery that supplies the VBAT, and I also managed to get RTC working as well.
Now i am trying to test the hibernate module. I have a wake button connected as specified.
I imported the lab6 project as specified with CCS Version: 8.0.0.00016
Here is the code I am trying to compile:
#include <stdint.h> #include <stdbool.h> #include "utils/ustdlib.h" #include "inc/hw_types.h" #include "inc/hw_memmap.h" #include "driverlib/sysctl.h" #include "driverlib/pin_map.h" #include "driverlib/debug.h" #include "driverlib/hibernate.h" #include "driverlib/gpio.h" int main(void) { SysCtlClockSet(SYSCTL_SYSDIV_5|SYSCTL_USE_PLL|SYSCTL_XTAL_16MHZ|SYSCTL_OSC_MAIN); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF); GPIOPinTypeGPIOOutput(GPIO_PORTF_BASE, GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3); GPIOPinWrite(GPIO_PORTF_BASE,GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3, 0x08); SysCtlPeripheralEnable(SYSCTL_PERIPH_HIBERNATE); HibernateEnableExpClk(SysCtlClockGet()); HibernateGPIORetentionEnable(); SysCtlDelay(64000000); HibernateWakeSet(HIBERNATE_WAKE_PIN); GPIOPinWrite(GPIO_PORTF_BASE,GPIO_PIN_3, 0x00); HibernateRequest(); while(1) { } }
and I get this error:
**** Build of configuration Debug for project lab6 ****
"C:\\ti\\ccsv8\\utils\\bin\\gmake" -k all
Building file: "../main.c"
Invoking: ARM Compiler
"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" -g --define=PART_TM4C123GH6PM --display_error_number --diag_wrap=off --diag_warning=225 --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c"
>> Compilation failure
subdir_rules.mk:9: recipe for target 'main.obj' failed
"../main.c", line 3: fatal error #1965: cannot open source file "utils/ustdlib.h"
1 catastrophic error detected in the compilation of "../main.c".
Compilation terminated.
gmake: *** [main.obj] Error 1
gmake: *** No rule to make target 'C:/ti/ccsv8/eclipse/TIVAWARE_INSTALL/driverlib/ccs/Debug/driverlib.lib', needed by 'lab6.out'.
gmake: Target 'all' not remade because of errors.
**** Build Finished ****
Any ideas/help greatly appreciated,
-C.A.