Search found 180 matches

by dflogeras
Fri Jun 07, 2019 11:31 am
Forum: STM32 Support
Topic: STM32L496 external oscillator
Replies: 7
Views: 292

Re: STM32L496 external oscillator

Usually when I'm setting up a new project, I use ST Micro's CubeMX tool as an augmentation to the manual. It has a graphical clock tree for each device, and you can immediately see the outcome of changes you make on all the various subsystems. As Giovanni said, it's quite complex (especially the new...
by dflogeras
Wed May 29, 2019 9:58 pm
Forum: STM32 Support
Topic: STM32F4 disco HID demo
Replies: 0
Views: 128

STM32F4 disco HID demo

Hi Giovanni, Please have a look at this example I threw together. It simply enumerates as a HID gamepad, then cycles through pressing each button and joystick direction on a timer. See readme for how to view the gamepad on the host OS. It is derived from the current 19.1.2 release. I fashioned it li...
by dflogeras
Fri May 24, 2019 1:41 pm
Forum: STM32 Support
Topic: USB on STM32F103 blue pill
Replies: 15
Views: 626

Re: USB on STM32F103 blue pill

Yep, simple is what I'm thinking. I have found that modern desktop OS's usually have some UI support for reading and displaying the state of joystick/gamepad devices but the trick is in making a descriptor that it accepts as such. I've found that just having a HID with some buttons isn't enough, you...
by dflogeras
Fri May 24, 2019 10:59 am
Forum: STM32 Support
Topic: USB on STM32F103 blue pill
Replies: 15
Views: 626

Re: USB on STM32F103 blue pill

Ok, I got back to this project again and tried a fresh tact. I found an older demo code in the forum pointing to this repo https://github.com/guiduc/usb-hid-chibios-example.git Which was based upon 2.6.x Chibi release, but it worked as advertised and was simple enough to understand. I then modified ...
by dflogeras
Tue May 14, 2019 2:53 pm
Forum: STM32 Support
Topic: USB on STM32F103 blue pill
Replies: 15
Views: 626

Re: USB on STM32F103 blue pill

Giovanni wrote:It should be an interrupt endpoint, I think it is part of the standard but it is not used in demos.


Yep, but shouldn't I be able to write to it? It may mess up the host end, but I would expect it to transmit the bytes)?
by dflogeras
Tue May 14, 2019 2:45 pm
Forum: STM32 Support
Topic: USB on STM32F103 blue pill
Replies: 15
Views: 626

Re: USB on STM32F103 blue pill

Could you try adding the interrupt EP on top of the demo? in general, you could try to re-introduce your changes gradually, board and driver appear to work. I got back to this finally. I added another interface to the CDC demo, with my (to my knowledge) working HID descriptors. I have verified that...
by dflogeras
Tue May 14, 2019 2:41 pm
Forum: STM32 Support
Topic: USB on STM32F103 blue pill
Replies: 15
Views: 626

Re: USB on STM32F103 blue pill

Thanks for the offer Nico, however I have a working CDC example, it's my HID I cannot get working.
by dflogeras
Fri May 03, 2019 8:59 pm
Forum: STM32 Support
Topic: USB on STM32F103 blue pill
Replies: 15
Views: 626

Re: USB on STM32F103 blue pill

I took testhal/STM32/STM32F1xx/USB_CDC I changed it to use STM32F103C8_MINIMAL board, and STM32F103x8.ld linker script to match my hardware. I also just dragged the D+ pin low for a second in main in lieu of usbDisconnect/usbConnect since the board.h doesn't support those. All appears normal in the ...
by dflogeras
Fri May 03, 2019 3:50 pm
Forum: STM32 Support
Topic: USB on STM32F103 blue pill
Replies: 15
Views: 626

Re: USB on STM32F103 blue pill

OK, I revisited my baseline ChibiOS project, which is just a STM32F1 hal demo, with the added USB_RAW bits. I initially said it was working, but it seems to only receive. When I tried making it transmit, the same thing happens where it enters usbTransmit() and never wakes up again. Is it possible th...
by dflogeras
Fri May 03, 2019 12:56 pm
Forum: STM32 Support
Topic: USB on STM32F103 blue pill
Replies: 15
Views: 626

Re: USB on STM32F103 blue pill

I'm not sure. I started with working descriptors taken from a project that used libopencm3. Originally based on this: https://github.com/paulfertser/stm32-tx-hid I had changed the HID report to match my hardware, and I can verify that those descriptors/endpoints work fine. The only modifications I d...

Go to advanced search