|
刚学AVR,用AVRStudio(4.12 460版)+GCC(2006-4-21版)编译例程
#include <avr/io.h>
int main(void)
{
unsigned char i,j,k,led=0;
DDRB=0xFF;
while(1)
{
if(led)
PORTB|=0x01;
else
PORTB&=0xFE;
led=!led;
//延时
for(i=0;i<255;i++)
for(j=0;j<255;j++)
k++;
}
}
编译结果:
AllocationBase 0x0, BaseAddress 0x71590000, RegionSize 0x480000, State 0x10000
d:\WinAVR\utils\bin\sh.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 487
avr-gcc.exe -I"D:\WinAVR\avr\include" -mmcu=atmega16 -Wall -gdwarf-2 -DF_CPU= 4000000UL -O0 -fsigned-char -MD -MP -MT gccAVRdemo1.o -MF dep/gccAVRdemo1.o.d -c ../ gccAVRdemo1.c
AllocationBase 0x0, BaseAddress 0x71590000, RegionSize 0x480000, State 0x10000
d:\WinAVR\utils\bin\sh.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 487
make: *** [gccAVRdemo1.o] Error 1
Build succeeded with 0 Warnings...
![](http://cache.amobbs.com/bbs_upload782111/files_6/armok01144522.gif)
请高手帮忙看看,先谢了 |
阿莫论坛20周年了!感谢大家的支持与爱护!!
知道什么是神吗?其实神本来也是人,只不过神做了人做不到的事情 所以才成了神。 (头文字D, 杜汶泽)
|