| ??? 03/30/02 06:56 Read: times |
#21264 - uC/OS II with 8052 |
Hello everybody ..
I haven't been here for a long time . How are you all ? Last 5 months ,I' ve been on other CPU's world ,and ... well I didn't visit here. OK ,enough for greeting :) I just get on the 80c32 with uC/OS II with the medium h/w resource supply ,for 32 K rom and 32K external RAM. Normally , The uC/OS II need LARGE memory model (Oh man I forgot to tell you that I ported it with Keil v6.10a compiler ) . Everything seems right ,I ported it,compile and simulate on uVision. Until I download the code to my target . The error occur when I try to create a Task via OSTaskCreate( ); the return value is OS_PRIO_INVALID . I checked again inside OS and it's seem that the OS use some xdata from area 0xf000-0xffff which I don't have enough memory to support. The M51 file tell me that there's no reserve for such an area around that. Right to the point , I have 2 question . 1. Is that heap memory ? The Priority variable is located there after I passed the priority value to OSTaskCreate( );. 2. I tried to locate all xdata within 32Kbytes by XDATA(0X0000-0X7FFF) but the code didn't implement on that as following. ;---- inside OS -------; mov dptr,#0dH ;now dptr is 0x0d lcall ?C?XBP0FF ; movx a,@dptr ; now dptr is 0xffff ; and acc now is priority data ;-----------------------; I don't have 0xFFFF. it would surely be 0xFF not my assigned priority and finally cause the error. Is there any way to locate on 0x7FFF instead? |
| Topic | Author | Date |
| uC/OS II with 8052 | 01/01/70 00:00 | |
RE: uC/OS II with 8052 | 01/01/70 00:00 |



