Simplified Microchip PIC USB demos (C18/XC8 MLA)

Re: Simplified Microchip PIC USB demos (C18/XC8 MLA)

Postby Dennis » Wed Jul 19, 2017 12:29 pm

Hello,

I am trying to use the 4550 C18 example and modify it for use with 18f2455. Sadly the example doesn't build with MPLAB X 3.61 and C18 v3.47.
I get this error:
C:\Program Files\Microchip\mplabc18\v3.47\h\string.h:623:Error [1174] local 'c' in program memory can not be 'auto'
nbproject/Makefile-PDFSUSB_4550_C18.mk:162: recipe for target 'build/PDFSUSB_4550_C18/production/usb_descriptors.o' failed
make[2]: Leaving directory 'C:/Users/Administrator/Desktop/src/LPC_FSUSB-CDC-X'
nbproject/Makefile-PDFSUSB_4550_C18.mk:90: recipe for target '.build-conf' failed
make[1]: Leaving directory 'C:/Users/Administrator/Desktop/src/LPC_FSUSB-CDC-X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed

BUILD FAILED (exit value 2, total time: 91ms)


I already tried to google it but didn't find anything helpfull and nobody in this thread seemed to have this problem.
Help would be appreciated :)
Dennis
 
Posts: 2
Joined: Wed Jul 19, 2017 12:16 pm
PIC experience: EE Student

Re: Simplified Microchip PIC USB demos (C18/XC8 MLA)

Postby vloki » Wed Jul 19, 2017 1:20 pm

Read the info in C18_changes_in_framework.txt please.
(Comment line 623 and report here if this file is not included in the download)
vloki
Verified identity
 
Posts: 162
Joined: Wed May 28, 2014 8:42 am
Location: Germany
PIC experience: Professional 5+ years with MCHP products

Re: Simplified Microchip PIC USB demos (C18/XC8 MLA)

Postby Dennis » Wed Jul 19, 2017 1:31 pm

Okay thank you. Didn't realize it meant to just comment the line


Edit: I modified the 4550 code for my 2455 and it built and programmed fine. But the PC just recognizes an unknown USB device. I tried to use the drivers from the MLA but then it just says the drivers for unknown USB device are up to date.

Any suggestions?
Dennis
 
Posts: 2
Joined: Wed Jul 19, 2017 12:16 pm
PIC experience: EE Student

Re: Simplified Microchip PIC USB demos (C18/XC8 MLA)

Postby vloki » Thu Jul 20, 2017 8:10 am

Did you prove that the oscillator setting and the "fixed memory" stuff is correct?
vloki
Verified identity
 
Posts: 162
Joined: Wed May 28, 2014 8:42 am
Location: Germany
PIC experience: Professional 5+ years with MCHP products

Previous

Return to USB

Who is online

Users browsing this forum: No registered users and 1 guest

cron