Board logo

标题: 编译问题 求帮忙 [打印本页]

作者: cuicaifeng    时间: 2013-10-17 10:54     标题: 编译问题 求帮忙

#include "inc/hw_types.h"
#include "inc/hw_memmap.h"
#include "inc/hw_ints.h"
#include "driverlib/sysctl.h"
#include "driverlib/gpio.h"
#include "driverlib/uart.h"
#include "driverlib/interrupt.h"
#include "driverlib/timer.h"
#include "driverlib/pwm.h"

void GPIOPinWrite(unsigned long ulPort, unsigned char ucPins, unsigned charucVal)
{}
void SysCtlPeripheralEnable(unsigned long ulPeripheral)
{}
int main(void)
{

       SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOG);
       GPIOPinWrite(GPIO_PORTG_BASE,GPIO_PIN_4,0x1);
        return 0;
}
CCSV5环境下  1.调用函数需要再声明吗?我怎么不声明就出错,看很多别人的代码都没有声明2.这个程序是自己写的
每次debug时都出现CORTEX_M3_0: GEL Output:
Memory Map Initialization Complete
CORTEX_M3_0: GEL Output: Watchdog Timer Enabled
CORTEX_M3_0: GEL Output: UARTs Enabled
CORTEX_M3_0: Flash Programmer: Timed out whilewriting to Flash memory
CORTEX_M3_0: Trouble Writing Memory Block at 0x0 on Page 0 of Length 0x2f0
CORTEX_M3_0: GEL: File: F:\xuzhetao\CCS\LAB4\Debug\LAB4.out: Load failed.

作者: baikeeditor    时间: 2013-12-6 13:58

这应该和编译器有关,如果声明不出错可以先试试,以排除硬件的问题




欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0