PDA

View Full Version : Problem compiling EasyHID code



mindthomas
- 13th September 2009, 00:19
Hi.
I've just installed MPASM, PBP and MicroCode studio, and then I created a EasyHID project.
But everytime I try to compile the project, it gives med the following errors:
RES directive cannot reserve odd number of bytes in PIC18 absolute mode

Error[180] c:\picprojects\usb\usb18mem.asm 116 : RES directive cannot reserve odd number of bytes in PIC18 absolute mode
Warning[231] c:\picprojects\usb\usb18mem.asm 116 : No memory has been reserved by this instruction
Error[180] c:\picprojects\usb\usb18mem.asm 117 : RES directive cannot reserve odd number of bytes in PIC18 absolute mode
Warning[231] c:\picprojects\usb\usb18mem.asm 111 : No memory has been reserved by this instruction
And so on....

Anyone who knows what the problem is?

Best Regards
Thomas Jespersen

Darrel Taylor
- 13th September 2009, 00:35
PBP's old USB files can't be used with the new versions of MPASM.

The new version of PBP 2.60 has new USB files that will work with it. But if you're trying to compile an older USB program ... you have to make changes to the files being included, and create a new Descriptor, because the one's from EasyHID don't work with 2.60.

Consequently, until David updates EasyHID, it's "Broke".

If you go back to an earlier version of MPLAB/MPASM then you can still compile the EasyHID or other old USB programs with PBP 2.50 or previous.

meLabs has MPLAB 8.15a on their website.
http://www.melabs.com/support/mplab_old_versions.htm
<br>

mindthomas
- 14th September 2009, 06:11
Downgrading the MPASM solved the problem.
Thanks :)

Steveo2969
- 25th August 2010, 20:46
HI,

I'm currently using PBP 2.50c with MPlab 8.15a and MicroCode Studio Plus 3.0.0.5 and I want to upgrade to PBP 2.60 and the latest version of MPlab but i'm wondering if the problem still exsists when trying to compile older USB EasyHID code?

Thanks