General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
-
Masha
- Posts: 1
- Joined: Thu Jul 26, 2007 9:33 am
Post
by Masha » Thu Jul 26, 2007 9:38 am
Hi!
I have problem with driver in IAR. I have error
"Error[e18]: Range error,
Number out of range. Valid range is -128 (-0x80) to 255 (0xFF).
File: usbdrvasm.S, Line: 124
Source: sbci YH, hi8(-(usbRxBuf));1 [7]
Where $ = usbCrc16 + 0x2A [0x612]
in module "usbdrvasm"
".
-
christian
- Objective Development
- Posts: 1443
- Joined: Thu Nov 09, 2006 11:46 am
Post
by christian » Thu Jul 26, 2007 7:00 pm
Please change the definition of hi8(x) in usbdrvasm.S to
# define hi8(x) (((x)>>8) & 0xff)
That should fix the problem. We'll include this change in the next release.