猴哥,求助下,刚学NOIS,问题多多啊。
2 [main] ? (4724) e:\program files\altera\quartus\bin\cygwin\bin\sh.exe: *
** fatal error - couldn't allocate heap, Win32 error 487, base 0xDC0000, top 0xD
E0000, reserve_size 126976, allocsize 131072, page_const 4096
2 [main] sh 9804 fork: child -1 - died waiting for longjmp before initiali
zation, retry 0, exit code 0x100, errno 11
E:\altera\90\nios2eds\bin\nios2-download: fork: Resource temporarily unavailable
请问下这个是什么问题?如何解决?
网上有关这个问题的回答是这样的:http://blog.sina.com.cn/s/blog_49ad960501000aqk.html
可是我看不懂,也不晓得如何改。。
我的程序很简单,如下:
#include <stdio.h>
#include "system.h"
#include "altera_avalon_pio_regs.h"
//#include "../inc/sopc.h"
void delay(int m);
//int main(void)__attribute__((weak,alias("alt_main")));
int main()
{
unsigned char led_data = 0x01;
while(1)
{
IOWR_ALTERA_AVALON_PIO_DATA(PIO_LED_BASE,led_data);
led_data = led_data << 1;
if(led_data == 0)
led_data=0x01;
delay(500000);
}
}
void delay(int m)
{
int i;
for(i=0;i<m;i++)
{
;
}
}
|