HID_Write limitations

General discussion on mikroPascal PRO for ARM.
Post Reply
Author
Message
HardWareMan
Posts: 57
Joined: 09 Oct 2014 17:39

HID_Write limitations

#1 Post by HardWareMan » 24 Jun 2015 08:14

Is there any limitations of use HID_Write() procedure when USB_INTERRUPT set to 1?
If I call this procedure inside another interrupt handler, it's hangs somewhere inside (around L_HID_Write500):
Image

Pelikan
Posts: 219
Joined: 22 Nov 2012 07:58

Re: HID_Write limitations

#2 Post by Pelikan » 24 Jun 2015 11:51

Здравствуйте HardWareMan,


this is exactly why I use only units of which the source is present.
Please review with my unit.

Peter

HardWareMan
Posts: 57
Joined: 09 Oct 2014 17:39

Re: HID_Write limitations

#3 Post by HardWareMan » 25 Jun 2015 16:33

Pelikan wrote:this is exactly why I use only units of which the source is present.
Please review with my unit.
Peter
I completely forgot about your module. It is necessary to bring it to working condition and try to use. Thank you for reminding me.

HardWareMan
Posts: 57
Joined: 09 Oct 2014 17:39

Re: HID_Write limitations

#4 Post by HardWareMan » 02 Jul 2015 18:39

Pelikan wrote:Please review with my unit.
Peter
OK, your unit seems to be working. I call HID_Tx() from interrupt handler and controller didn't hangs. But something wrong with it. Packets reaches the PC host software with lag by one-two calling the HID_Tx(). For example: I call HID_Tx() first time no data appears on PC terminal. Then I call HID_Tx() again and previous sended data appears on PC terminal. What can be wrong with it?

Attach detection, enumeration and all system stuff seems to work excellent.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: HID_Write limitations

#5 Post by filip » 03 Jul 2015 14:28

Hi,

Did you try the default UAB Polling example from the compiler, setting the USB_INTERRUPT to 1, and the code got stuck ?
Which MCU are you using ?

Regards,
Filip.

Pelikan
Posts: 219
Joined: 22 Nov 2012 07:58

Re: HID_Write limitations

#6 Post by Pelikan » 07 Jul 2015 12:12

Hi HardWareMan

the problem I do not understand.
Can you please give a graphical representation?
( also to my email )

Regards,
Peter

Post Reply

Return to “mikroPascal PRO for ARM General”