This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具/软件:Code Composer Studio
您好!
我制作了一个定制的 TM4C123板、并成功使用另一个 LaunchPad 作为 JTAG 适配器对其进行编程。
在我的板上、有一个为 VBAT 供电的电池、我也设法使 RTC 正常工作。
现在、我尝试测试休眠模块。 我按指定方式连接了唤醒按钮。
我按照 CCS 版本:8.0.0.00016中的规定导入了 lab6项目
下面是我尝试编译的代码:
#include #include #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 "intry") 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) { } }
我得到该误差:
****为项目 lab6构建配置调试****
"C:\\ti\\ccsv8\\utils\\bin\\gmake"-k all
编译文件:"../main.c"
调用:ARM 编译器
"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 --preproc_warning="-preproc_usion_main.c"-preproc_decuration="_main.abusion_main.c"。
>>编译失败
subdir_rules.mk:9:目标'main.obj'的配方失败
"./main.c"、第3行:致命错误#1965:无法打开源文件"utils/ustdlib.h"
1在编译"./main.c"时检测到灾难性错误。
编译已终止。
gmake:***[main.obj]错误1.
gmake:***没有使目标'C:/ti/ccsv8/eclipse/TIVAWARE_INSTALL/driverlib/ccs/Debug/driverlib.lib '成为'lab6.out'所需的规则。
gmake:目标"全部"不会由于错误而重新生成。
****构建完成****
任何想法/帮助都非常感谢、
-C.A.