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.

[参考译文] CCS/TM4C1294NCPDT:我可以#39;t 在 TM4C1294上运行该程序

Guru**** 2556560 points
Other Parts Discussed in Thread: TM4C1294NCPDT

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/911224/ccs-tm4c1294ncpdt-i-can-t-run-the-program-on-tm4c1294

器件型号:TM4C1294NCPDT

工具/软件:Code Composer Studio

您好! 我叫 Antonio Uriel、来自墨西哥墨西哥城。 我在 code composer studio 中的代码有问题、这会在我停止运行程序后出现  

我制作了一个简单的程序来刷写 LED、其中包含使用 SysTickTimer 的 EK-TM4C1294卡我公开了我的代码、添加了包括属性 add Tiva ware 和 driverlib.lib 在内的库、我不知道我是否错过了 add 或其他内容、 我希望您的快速响应会有点紧急。

Codigo:

#include
#include
#include "inc/tm4c1294ncpdt.h"
#include "driverlib/sysctl.h"
#include "driverlib/gpio.h"
#include "inc/hw_memmap.h"
#include "driverlib/SysTick .h"

//变量全局变量
int Estado=0;
//funciones globales
void DelaySysTick (int tiempo);

void main (void)

   //Puerto N
   //Habitilit el 模数 GPIO N
   SysCtlPeripheralEnable (SYSCTL_Periph_GPION);
   //espera que el modulo GPIO N este listo
   while (!SysCtlPeripheralReady (SYSCTL_Periph_GPION));

   //Configuramos el Puerto N 0 y 1 como salidas
   GPIOPinTypeGPIOOutput (GPIO_PORTN_BASE、GPIO_INT_PIN_0|GPIO_INT_PIN_1);
//********* 方案主管
   while (true)
   {
       GPIOPinWrite (GPIO_PORTN_BASE、GPIO_INT_PIN_0|GPIO_INT_PIN_1、Estado);
       Estado^í a = 0x03;
       DelaySysTick (16000000);
   }

空 DelaySysTick (int tiempo)

   //Configuramos y habilitamos el SysTick
   SysTickPeriodSet (tiempo);
   SysTickEnable();

   while (SysTickValueGet ()==0);

   SysTickDisable();

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    您需要在 CCS 项目中添加 SysTickValueGet () C 函数所在的 C 文件。

    -kel