Search found 36 matches

by jayalfredprufrock
Thu Aug 17, 2017 6:31 am
Forum: ChibiOS/RT
Topic: CH_CFG_SYSTEM_HALT_HOOK compilation errors
Replies: 2
Views: 3640

CH_CFG_SYSTEM_HALT_HOOK compilation errors

GCC outputs a million errors when I try to add some logging code to the CH_CFG_SYSTEM_HALT_HOOK definition within chconf.h. I have a standalone logging header file that I #include at the top of chconf.h that includes board.h, stm32f4xx.h, a few standard lib headers, and a few definitions for reading ...
by jayalfredprufrock
Wed Jun 14, 2017 2:07 am
Forum: Development and Feedback
Topic: USB Mass Storage Device
Replies: 112
Views: 113533

Re: USB Mass Storage Device

I noticed today that MSD code (hacked together mainly from DeusExMachina's contributions) is suddenly performing very poorly on Windows 10. When the device is plugged in, the drivers seem to install fine and windows recognizes everything properly within device manager without any warnings, however ...
by jayalfredprufrock
Thu Mar 16, 2017 6:14 am
Forum: Bug Reports
Topic: Problem with StkUnused calculation
Replies: 6
Views: 9649

Re: Problem with StkUnused calculation

Not sure if this is related, but I have also noticed strange stkunused calculations recently. The majority of my threads are actually reporting more unused stack space than what they have allocated (some times > twice as much). I'm using the the 3.0 eclipse plugin (4.0 version doesn't seem to work ...
by jayalfredprufrock
Tue Jan 24, 2017 11:37 pm
Forum: Development and Feedback
Topic: USB Mass Storage Device
Replies: 112
Views: 113533

Re: USB Mass Storage Device

The problem ended up being how I was switching between the Serial and MSD drivers. I needed the ability to move between the two without a reset so I carefully disable one usb driver and reenable the other when everything is idle. The SDC driver remains active the entire time, I just make sure no sd ...
by jayalfredprufrock
Tue Jan 24, 2017 9:53 pm
Forum: Development and Feedback
Topic: USB Mass Storage Device
Replies: 112
Views: 113533

Re: USB Mass Storage Device

I've been integrating some of the MSD code DeusExMachina shared and have noticed some weird behavior. Files saved to the root directory of the device are not persisted. This happens regardless of how I disconnect the MSD device (eject, software disconnect, etc.) Saving files in subfolders works ...
by jayalfredprufrock
Mon Jan 02, 2017 4:36 pm
Forum: Development and Feedback
Topic: USB Mass Storage Device
Replies: 112
Views: 113533

Re: USB Mass Storage Device

Koen
Could you share your demo project? I would like to check transmission speed with my F4 setup.

I too would love to see a demo project. I've been following this thread closely and am excited to see there is progress being made on this front. We are limited to 25Mhz SDIO clock on the F4 so I'm ...
by jayalfredprufrock
Tue Dec 13, 2016 9:34 pm
Forum: General Support
Topic: Synchronizing separate USART TX and RX threads
Replies: 5
Views: 6049

Re: Synchronizing separate USART TX and RX threads

Great advice guys, thanks a lot for taking the time to respond. I'm going to refactor things and use the events emitted by the serial driver to buffer each byte as it is received, parse the bytes using a state machine, and use a timeout to catch the case where a portion of a header packet gets ...
by jayalfredprufrock
Tue Dec 13, 2016 9:35 am
Forum: General Support
Topic: Synchronizing separate USART TX and RX threads
Replies: 5
Views: 6049

Re: Synchronizing separate USART TX and RX threads

Thanks for the response Giovanni.

Responses and events from the module have a fixed length header. That's what the first read waits to receive. Then depending on the response/event there may be an additional data payload. All commands produce exactly one response packet and events can be emitted ...
by jayalfredprufrock
Tue Dec 13, 2016 7:19 am
Forum: General Support
Topic: Synchronizing separate USART TX and RX threads
Replies: 5
Views: 6049

Synchronizing separate USART TX and RX threads

I have a bluetooth module that my STM32F4 communicates with over USART. The module is controlled by sending command byte sequences over USART, which in turn generate responses. The module can only process commands one at a time so you must wait for a response before issuing the next command. The ...
by jayalfredprufrock
Thu Oct 27, 2016 6:37 am
Forum: General Support
Topic: Using command line #define to control debug options causes crash??
Replies: 2
Views: 4282

Re: Using command line #define to control debug options causes crash??

Ahh I must be missing the ASM definition. Knew it was something silly like that. As always, thanks for your support and patience!