We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi~ All I have write a RTX51 test program with AT89C51, see following code: #include <reg51.h> #include <rtx51tny.h> void init (void) _task_ 0 { os_create_task (1); os_create_task (2); } void LED (void) _task_ 1 { P2=0; } void LED2 (void) _task_ 2 { P2=1; } and this compile is OK, but when debug run something error: error message as below: *** error 65: access violation at I:0xFE : no 'write' permission but when I change to at89c52, the same code is OK. So is there something wrong in RTX51?
Thanks for the replies~ I think I found the problem. Just as Dejan says, 89C51 only have 128 bytes rams, and RTX51 defaulty uses 256 bytes rams, so problems happened. We must change Ramtop value from 0xFF to 0x7F and it works.