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.
usb et pic24
Moderator: Benj
Re: usb et pic24
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
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
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: usb et pic24
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: usb et pic24
Ok, happy to help you and i'm waiting for the dspic V5, have you an idea of this release date?
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: usb et pic24
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel