C51编程:cxq
各位大侠:本人是一初学者,正在学习rtos,请各位帮忙看一下下面程序有何错误
为何能编译通过但软件无法仿真。仿真提示:
err65: access violation at i:0xfe : no 'write' permission
err65: access violation at i:0xff : no 'read' permission
程序如下:
#pragma code debug objectextend
#include<Rtx51tny.h>
int counter0;
int counter1;
int counter2;
job0() _task_ 0
{
os_create_task (1);
os_create_task (2);
while(1)
{
counter0++;
}
}
job1() _task_ 1
{
while(1)
{
counter1++;
}
}
job2() _task_ 2
{
while(1)
{
counter2++;
}
}
本人的RTX51TINY是用的KILL1.23的,但我把他用在了KILL6.02上,运行6.02
自带列子Traffic.uv2仿真和编译通过。
发表时间:2002年6月28日13:33:00