usb et pic24

Forum de support pour les locuteurs de la langue française qui souhaitent écrire dans leur langue maternelle.

Moderator: Benj

Post Reply
regisD
Flowcode V4 User
Posts: 16
Joined: Wed Apr 07, 2010 7:48 am
Location: France, Troyes
Contact:

usb et pic24

Post 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.

regisD
Flowcode V4 User
Posts: 16
Joined: Wed Apr 07, 2010 7:48 am
Location: France, Troyes
Contact:

Re: usb et pic24

Post 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

User avatar
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

Post 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.

regisD
Flowcode V4 User
Posts: 16
Joined: Wed Apr 07, 2010 7:48 am
Location: France, Troyes
Contact:

Re: usb et pic24

Post by regisD »

Ok, happy to help you and i'm waiting for the dspic V5, have you an idea of this release date?

User avatar
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

Post 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.

Post Reply