Search found 71 matches

by flabbergast
Tue Feb 16, 2016 11:10 pm
Forum: STM32 Support
Topic: Bizarre function call issue
Replies: 6
Views: 1229

Re: Bizarre function call issue

BTW, I had something similar come up lately (90% power-ups resulted in a HardFault of the firmware - but not all!). The firmware *did* wait until USB_ACTIVE, but I had a call right after that, which was sometimes fast enough to try to write to an endpoint which (apparently) wasn't completely ready y...
by flabbergast
Tue Jan 26, 2016 8:39 pm
Forum: Development and Feedback
Topic: [NEWS] ChibiOS to fly even higher
Replies: 4
Views: 1132

Re: [NEWS] ChibiOS to fly even higher

This is fantastic! Congratulations!
by flabbergast
Thu Jan 21, 2016 6:24 pm
Forum: STM32 Support
Topic: Calling stm32 internal bootloader from application
Replies: 9
Views: 4534

Re: Calling stm32 internal bootloader from application

Good to know! Just to give credit where it is due, my approach is based on this forum thread. Also, I have now moved the required code to board definition files, so patching core chibios code is no longer needed: the modifications to the board files are like this to the header and this to the __earl...
by flabbergast
Wed Jan 20, 2016 9:01 am
Forum: ChibiOS/HAL
Topic: USB requests_hook_cb: how to rcv data from host?
Replies: 8
Views: 1965

Re: USB requests_hook_cb: how to rcv data from host?

I've updated the keyb example recently, it works now (the previous code worked with stable_3.0.x). I'll update the other ones (e.g. rawhid) soon-ish. For HID, removing the queued API wasn't a problem, but the other change in USB API was. In the keyb example, the queued API was used only for the CONS...
by flabbergast
Wed Jan 20, 2016 12:32 am
Forum: STM32 Support
Topic: Calling stm32 internal bootloader from application
Replies: 9
Views: 4534

Re: Calling stm32 internal bootloader from application

The way I do it is that I patch the ResetHandler supplied with chibios, so that it reads a word at the end of the memory, and if it matches a predefined value, it jumps to the bootloader. This jump is "safe" because nothing has been initialised yet, it is just after a reset. Now when I wan...
by flabbergast
Tue Jan 12, 2016 8:16 pm
Forum: ChibiOS/HAL
Topic: BQ_BUFFER_SIZE macro correct?
Replies: 2
Views: 927

Re: BQ_BUFFER_SIZE macro correct?

Thanks, that's what I thought it should do. Yes, it would be good to fix :)
by flabbergast
Tue Jan 12, 2016 3:08 pm
Forum: ChibiOS/HAL
Topic: BQ_BUFFER_SIZE macro correct?
Replies: 2
Views: 927

BQ_BUFFER_SIZE macro correct?

In hal/include/hal_buffers.h there's this definition: #define BQ_BUFFER_SIZE(n, size) \ ((size_t)(size) + ((sizeof (size_t)) * (size_t)(n))) From what I could understand from the documentation of buffers queue, I thought it should compute how many bytes should be allocated for n buffers, each of siz...
by flabbergast
Thu Dec 31, 2015 11:54 am
Forum: ChibiOS/HAL
Topic: USB requests_hook_cb: how to rcv data from host?
Replies: 8
Views: 1965

Re: USB requests_hook_cb: how to rcv data from host?

Just in case you'd like to "compare notes", I've got a working keyboard (+mouse+other things) example working, on STM32F072-DISCOVERY board, here.
by flabbergast
Sun Dec 27, 2015 7:14 pm
Forum: Kinetis Support
Topic: Teensy 3.1 / MK20DX256VLH7 support
Replies: 52
Views: 13311

Re: Teensy 3.1 / MK20DX256VLH7 support

Thanks, that's a really nice catch! I wouldn't be able to find this out myself.
by flabbergast
Fri Nov 06, 2015 2:16 pm
Forum: Kinetis Support
Topic: Teensy 3.1 / MK20DX256VLH7 support
Replies: 52
Views: 13311

Re: Teensy 3.1 / MK20DX256VLH7 support

I've used wireshark before, and I learned that the trouble is usually caused by something *before* the last request, usually just one transaction before - if it fails to do what the host expects, the host sends another request, but the microcontroller side is already messed up by then. So my guess w...

Go to advanced search