|
|
|||||||
|
Hi, I'm porting an HID USB mouse example to HI-Tech 8051 ver 9.01 and am getting the error above. I've reduced the code to fit in this post (shows error at 'EP_STATUS[0] = EP_IDLE;' line). Please use Code tags to maintain formatting and improve code readability. I have added them here. (mod) Code: #define EP_IDLE 0x00 // This signifies Endpoint Idle State Any help would be greatly appreciated. Thanks, Brent |
||||||||
|
|
|||||||
|
It appears to a problem with the small memory model. I think help will have to come directly from support@htsoft.com. |
||||||||
|
|
|||||||
Quote: In the small model, static duration objects are supposed to be 'near' by default, I think. Explicitly qualifying EP_STATUS as 'near' fixes the error. Code: near unsigned char EP_STATUS[3] = {EP_IDLE, EP_HALT, EP_HALT}; |
||||||||
|
|
|||||||
|
Excellent. Thanks! -Brent |