I have installed the new MPLAB X IDE and the free versions of the XC compilers. Hence, I want to switch to the new XC8 version 1.12 compiler and linker for all my 8-bit PIC developments. I find it neater but it comes with trouble. My fundamental question is whether there is an easy way to perform the conversion of the USB library.
I am currently converting the USB HID Generic (lvr) to XC8 and I have the following questions:
1. The USB HID Generic (lvr) contains the following: #pragma udata, #pragma romdata, #pragma code and some specifi memory location definitions like #pragma USB_VARIABLES = 0x260. The XC8 compiler does not recognise these #pragma and I can't find an equivalent directive in the XC8 User's Guide. The XC8 has a facility called psect, but it is not as the #pragma as far as I understand it. Does anyone have a neat solution? (Please, do not reply that I should stay with the C18)
2. There are several sections to be included or not depending on the choice of compiler and microcontroller. The XC8 is stated in one file, but not in the others. Should I use define C18 in place of XC8?
3. Are there plans to update the USB stack to work with the XC8?
Regards,
Jorgen