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.

F28335DSP经常报错

C28xx: Error: (Error -154 @ 0x0) One of the FTDI driver functions used to write data returned bad status or an error. (Emulation package 5.1.232.0)

 

程序如下:

  

void main(void)
{


   Gpio_select();  

   DINT;

   InitPieCtrl();

   IER = 0x0000;
   IFR = 0x0000;


// 初始化PIE中断向量表,并使其指向中断服务子程序(ISR)
// 这些中断服务子程序被放在了DSP280x_DefaultIsr.c源文件中
// 这个函数放在了DSP2833x_PieVect.c源文件里面.
   InitPieVectTable();

 
// 步骤 4. 初始化片内外设:
// 这个函数可以在DSP280x_CpuTimers.c源文件中找到
//   InitCpuTimers();   // 这个例子仅初始化了Cpu定时器
 
// 步骤 5. 用户特定的代码
  

   for(;;)
   {   
     GpioDataRegs.GPCSET.bit.GPIO64=1;
    delay_loop();
    while(1);

    }

 

}  
//延迟子函数
void delay_loop()
{
    Uint32      i;
 Uint32      j;
 for(i=0;i<32;i++)
    for (j = 0; j < 80000; j++) {}
}
//GPIO初始化函数
void Gpio_select(void)
{

  
    EALLOW;
 GpioCtrlRegs.GPAMUX1.all = 0x00000000;  // All GPIO
 GpioCtrlRegs.GPAMUX2.all = 0x00000000;  // All GPIO
 GpioCtrlRegs.GPBMUX1.all = 0x00000000;  // All GPIO
    GpioCtrlRegs.GPBMUX2.all = 0x00000000;  // All GPIO
 GpioCtrlRegs.GPCMUX1.all = 0x00000000;  // All GPIO
 GpioCtrlRegs.GPCMUX2.all = 0x00000000;  // All GPIO


    GpioCtrlRegs.GPADIR.all = 0xFFFFFFFF;   // All outputs
    GpioCtrlRegs.GPBDIR.all = 0xFFFFFFFF;   // All outputs
    GpioCtrlRegs.GPCDIR.all = 0xFFFFFFFF;   // All outputs

    EDIS;
    
}    
//===========================================================================
// No more.
//===========================================================================

主函数就一个bit