Search found 71 matches

by flabbergast
Mon Sep 14, 2015 3:57 pm
Forum: Kinetis Support
Topic: Teensy 3.1 / MK20DX256VLH7 support
Replies: 52
Views: 42443

Re: Teensy 3.1 / MK20DX256VLH7 support

What would be your opinion about moving Kinetis from SVN to the community repo in Github? I would welcome that. Meanwhile, I've got two compilation issues (talking about RedoX's tsy_usb branch): - os/hal/ports/KINETIS/K20x/usb_lld.c has a couple of leftover sdPut calls, which of course fail to comp...
by flabbergast
Fri Sep 11, 2015 10:44 am
Forum: Kinetis Support
Topic: Teensy 3.1 / MK20DX256VLH7 support
Replies: 52
Views: 42443

Re: Teensy 3.1 / MK20DX256VLH7 support

Nice to find this! I am personally very much interested in having Teensy 3.* and Teensy LC support in ChibiOS (the main point for me is the USB stack). Please keep up the nice work! I'll try to help (e.g. by testing) if I can. I've done a couple of USB examples (sources here ) for STM23F0x2, but it ...
by flabbergast
Sun Aug 30, 2015 6:12 pm
Forum: STM32 Support
Topic: USB Driver: HID Set Report / how to read data from ep0?
Replies: 13
Views: 7875

Re: USB Driver: HID Set Report / how to read data from ep0?

First of all, thanks for all the help, it kept me going! I understand that ep0 is handled differently, and I did not explicitly send or receive data over it, except by using usbSetupTransfer in requests_hook_cb. As you probably suspected, the error was in my code, and at a different place than I was...
by flabbergast
Sun Aug 30, 2015 3:43 pm
Forum: STM32 Support
Topic: USB Driver: HID Set Report / how to read data from ep0?
Replies: 13
Views: 7875

Re: USB Driver: HID Set Report / how to read data from ep0?

So - I was checking the state of usbp->receiving in the debugger, breakpoints triggered in requests_hook_cb whenever there's a HOST2DEV SET_REPORT or SET_IDLE request received. Both are issued once during a keyboard enumeration, and then 2 SET_REPORTs in quick succession whenever I hit caps lock. No...
by flabbergast
Sun Aug 30, 2015 3:21 pm
Forum: STM32 Support
Topic: USB Driver: HID Set Report / how to read data from ep0?
Replies: 13
Views: 7875

Re: USB Driver: HID Set Report / how to read data from ep0?

Ah, thanks about the buffer size, I didn't know. Maybe I should make that variable even uint32_t, to be on the safe side. And yes, I have the debug options enabled in chconf.h. About the other stuff (not processing two SETUP packets which come very quickly after each other): I understand that the bu...
by flabbergast
Sun Aug 30, 2015 1:30 pm
Forum: STM32 Support
Topic: USB Driver: HID Set Report / how to read data from ep0?
Replies: 13
Views: 7875

Re: USB Driver: HID Set Report / how to read data from ep0?

Next status report: So I've changed the variable into which I want to read the byte into uint16_t, and the code works, the SET_REPORTs are read properly. (But that I think that snippet with -M3/-M4 is potentially dangerous even on -M3, -M4, when one wants to read an odd number of bytes, and the buff...
by flabbergast
Sun Aug 30, 2015 10:27 am
Forum: STM32 Support
Topic: USB Driver: HID Set Report / how to read data from ep0?
Replies: 13
Views: 7875

Re: USB Driver: HID Set Report / how to read data from ep0?

OK, so I did some digging and debugging, and I think the current code should do what I'm trying to do. It's because the logic in _usb_ep0setup callback (in os/hal/src/usb.c) is written well, so that if the request is HOST2DEV, and the "user" callback (i.e. the code I linked above) sets up ...
by flabbergast
Sun Aug 30, 2015 12:31 am
Forum: STM32 Support
Topic: USB Driver: HID Set Report / how to read data from ep0?
Replies: 13
Views: 7875

Re: USB Driver: HID Set Report / how to read data from ep0?

The maxPacketSize is set to 64 in the descriptor. However wireshark apparently joins the packets that are part of one transaction (you can see that in the "length" column in the wireshark screenshots), it says 65 for that particular setup transaction. BTW, the 8 SETUP bytes are actually by...
by flabbergast
Sat Aug 29, 2015 5:28 pm
Forum: STM32 Support
Topic: USB Driver: HID Set Report / how to read data from ep0?
Replies: 13
Views: 7875

Re: USB Driver: HID Set Report / how to read data from ep0?

I should also say that I tried to sniff USB traffic with wireshark, and curiously the way it shows the traffic is going is that under the SETUP packet (SET_REPORT) it shows the usual 64 bytes and the extra byte that should follow by OUT is shown in the same raw packet (i.e. it has 65 bytes there, al...
by flabbergast
Sat Aug 29, 2015 4:56 pm
Forum: STM32 Support
Topic: USB Driver: HID Set Report / how to read data from ep0?
Replies: 13
Views: 7875

USB Driver: HID Set Report / how to read data from ep0?

So, I've played a bit with ChibiOS/HAL USB Driver for a while, and got a couple of examples working, e.g. raw HID pipes (you can see the code here , but it is still very raw, doesn't comply with formatting rules, has some test code left there, licenses aren't fixed, etc...) However now I'm stuck on ...

Go to advanced search