Page 1 of 1

usb et pic24

Posted: Tue Apr 10, 2012 2:04 pm
by regisD
bonjour, j'ai essayé le programme de demo 'USB Slave Demo No Service.fcf' (fonctionne bien sur un 18f2550) sur un PIC24FJ64GB004, il répond une fois et ne prend plus en compte les commandes suivantes (le pic tourne toujours, je vérifie en changeant l'état d'une sortie à chaque boucle principale).
Merci pour votre aide.

Re: usb et pic24

Posted: Wed Apr 11, 2012 10:45 am
by regisD
après quelques tests sur le hard sans succès, j'ai regardé le code source de la routine Send-Byte et Send_String, une ligne était en commentaire:
USBGenericOutHandle = USBGenRead(USBGEN_EP_NUM,(BYTE*)&OUTPacket,USBGEN_EP_SIZE);
j'ai enlevé le commentaire et là ça marche ??? si quelqu'un a une explication, je suis preneur.
Cordialement

Re: usb et pic24

Posted: Wed Apr 11, 2012 12:36 pm
by Benj
Bonjour,

Des thats grand que vous avez réussi à le faire fonctionner, merci pour nous faire connaître. J'ai eu un coup d'oeil sur le code, mais je ne me souviens pas pourquoi ces lignes sont commentées. Peut-être que c'est une erreur. Je vais juste en arrière à travers tout ce code pour la libération v5 donc je vais pencher sur ce problème et voir si je peux trouver autre chose.


Hello,

Thats great you have managed to get it working, thanks for letting us know. I have had a look at the code but I cannot remember why those lines are commented out. Maybe it is a mistake. I am just going back through all this code for the v5 release so I will look into this problem and see if I can find out anything further.

Re: usb et pic24

Posted: Wed Apr 11, 2012 1:09 pm
by regisD
Ok, happy to help you and i'm waiting for the dspic V5, have you an idea of this release date?

Re: usb et pic24

Posted: Wed Apr 11, 2012 2:43 pm
by Benj
At the moment we estimate v5 for AVR and ARM will be available in June and we are hoping v5 for dsPIC will also be included with this release.