Search found 212 matches

by dflogeras
Mon Nov 11, 2019 2:49 pm
Forum: Development and Feedback
Topic: GCC 9
Replies: 20
Views: 10628

Re: GCC 9

That's a shame they missed merging the cortex-m0 fix prior to the last round of releases. Giovanni, based on what you've seen so far (and ignoring the cortex-m0 issue), is GCC 9 shaping up to be decent across most of the spectrum? I recall reading the last benchmark thread done between GCC 7 and 8, ...
by dflogeras
Sun Nov 10, 2019 12:50 pm
Forum: Bug Reports
Topic: C++ exceptions in cortex-m7 vs. cortex-m4
Replies: 14
Views: 5849

Re: C++ exceptions in cortex-m7 vs. cortex-m4

Hi Giovanni,

I'd be happy to test, it will be at least mid next week before I'll be near that hardware. Should I be testing off the trunk, or 19.x maintenance branch, or both?

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

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: 2082

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: 7917

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: 7917

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: 7917

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: 7917

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: 7917

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: 7917

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

Go to advanced search