新手遇到的问题:STM8S103F3P6把PD3口设置为输出,编译出现错误
大家好,最近刚刚使用st的单片机STM8S103F3P6来开发一款产品。新下载的软件,设置好后自带了一个空的程序,编译正常。当想把PD3口设置为输出的时候,编译就出现了错误。不知道为什么?设置如下:
PD_DDR = 0x08;
PD_CR1 = 0x08; // 将PD3设置成推挽输出
PD_CR2 = 0x00;
RE:新手遇到的问题
为什么STVD中写入头文件后编译却找不到这个呢?The command: "cxstm8 +debug -pxp -no -l +mods0 -pp -i"C:\Program Files\COSMIC\CXSTM8\Hstm8"-clDebug\ -coDebug\ main.c " has failed, the returned value is: 1
exit code=1.
RE:新手遇到的问题
Compiling main.c...cxstm8 +debug -pxp -no -l +mods0 -pp -i"C:\Program Files\COSMIC\CXSTM8\Hstm8"-clDebug\ -coDebug\ main.c
#error cpstm8 main.c:5 can't open STM8S103F3P6.h
页:
[1]