Jump to content
dpat123

Usb Pic18f2550 Problem With Picpack Lib

Recommended Posts

i have compiled picpack usb serial on pic18f2550 but when i connect it windows says that usb device could not be unrecognized .

 

i have made my own proto pcb with vusb connected to VDD and did not pulled up D+ . is it right . can somebody post the USB schematics which is working with picpack . Although i have reffered to TechToys but they do no show their usb demo board as of now .

 

Regards,

darshan

Share this post


Link to post
Share on other sites

#pragma DATA _CONFIG2L, _PWRT_ON_2L & _BOR_OFF_2L & _VREGEN_ON_2L

 

internal 3.3V regulator should be on in config bits if one is connectiong VUSB to GND using 0.1uf cap .

 

still i am not able to detect USB device with picpack library !.

 

might be some more to be done .

 

regards,

Darshan

 

i have compiled picpack usb serial on pic18f2550 but when i connect it windows says that usb device could not be unrecognized .

 

i have made my own proto pcb with vusb connected to VDD and did not pulled up D+ . is it right . can somebody post the USB schematics which is working with picpack . Although i have reffered to TechToys but they do no show their usb demo board as of now .

 

Regards,

darshan

Share this post


Link to post
Share on other sites

Hi Darshan,

 

How are you going now? Can you post the debug output from the pic?

 

regards

Ian.

 

#pragma DATA _CONFIG2L, _PWRT_ON_2L & _BOR_OFF_2L & _VREGEN_ON_2L

 

internal 3.3V regulator should be on in config bits if one is connectiong VUSB to GND using 0.1uf cap .

 

still i am not able to detect USB device with picpack library !.

 

might be some more to be done .

 

regards,

Darshan

 

i have compiled picpack usb serial on pic18f2550 but when i connect it windows says that usb device could not be unrecognized .

 

i have made my own proto pcb with vusb connected to VDD and did not pulled up D+ . is it right . can somebody post the USB schematics which is working with picpack . Although i have reffered to TechToys but they do no show their usb demo board as of now .

 

Regards,

darshan

Share this post


Link to post
Share on other sites

Hi Ian Harris,

 

i am using pic18f2550 with 20Mhz self power mode my config settings are as follows . i am using one of your muse example but not able to enumerate device .

 

#pragma DATA _CONFIG1L, _PLLDIV_5_1L & _CPUDIV_OSC4_PLL6_1L & _USBDIV_2_1L

#pragma DATA _CONFIG1H, _FOSC_HSPLL_HS_1H & _FCMEN_OFF_1H & _IESO_OFF_1H

#pragma DATA _CONFIG2L, _PWRT_ON_2L & _BOR_OFF_2L & _VREGEN_ON_2L

#pragma DATA _CONFIG2H, _WDT_OFF_2H & _WDTPS_128_2H

#pragma DATA _CONFIG3H, _CCP2MX_OFF_3H & _LPT1OSC_OFF_3H & _PBADEN_OFF_3H & _MCLRE_OFF_3H

#pragma DATA _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _DEBUG_OFF_4L & _XINST_OFF_4L

#pragma DATA _CONFIG5L, _CP0_OFF_5L & _CP1_OFF_5L & _CP2_OFF_5L & _CP3_OFF_5L

#pragma DATA _CONFIG5H, _CPB_OFF_5H & _CPD_OFF_5H

#pragma DATA _CONFIG6L, _WRT0_OFF_6L & _WRT1_OFF_6L & _WRT2_OFF_6L & _WRT3_OFF_6L

#pragma DATA _CONFIG6H, _WRTC_OFF_6H & _WRTB_OFF_6H & _WRTD_OFF_6H

#pragma DATA _CONFIG7L, _EBTR0_OFF_7L & _EBTR1_OFF_7L & _EBTR2_OFF_7L & _EBTR3_OFF_7L

#pragma DATA _CONFIG7H, _EBTRB_OFF_7H

 

could you please help me out for the same .

 

Regards,

Darshan

Share this post


Link to post
Share on other sites

Tom,

 

I'm having the same problem. Anyone found a solution yet?

This compiles with BoostC V7.05.

 

Which version do you use?

 

Remember to add:

#include <system.h>

to your code.

 

Regards

Dave

Share this post


Link to post
Share on other sites

Yes it compiles but the problem is that windows says "the usb device could not be recognized". I think it's a problem with the pickpack code and not the compiler.

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...