Page 1 of 1

Problem with usbdrv.asm in IAR

Posted: Thu Jul 26, 2007 9:38 am
by Masha
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"

Posted: Thu Jul 26, 2007 7:00 pm
by christian
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.