Search found 28 matches

by charlesrwest
Tue Jul 02, 2019 4:52 pm
Forum: ChibiOS/HAL
Topic: chnWriteTimeout with USB Serial - finish on buffer write or device write?
Replies: 2
Views: 531

chnWriteTimeout with USB Serial - finish on buffer write or device write?

Hello, I have a few questions about using the Serial over USB Driver (SDU1 on STM32F072B). If I may ask: 1. How thread safe is it? a. Is it safe to have a writer thread (chnWriteTimeout) and a reader thread (chnReadTimeout) running at the same time? b. Is it safe to have multiple writer threads doin...
by charlesrwest
Fri Jun 28, 2019 4:30 pm
Forum: STM32 Support
Topic: Dropping bytes with 3 mb/s UART
Replies: 2
Views: 316

Dropping bytes with 3 mb/s UART

Hello! I'm working on a project with a stm32f0-discovery board talking to a BNO080 IMU over UART. The IMU has it's own framing/serialization scheme and appears to be hard coded to talk at a 3000000 baud rate. After looking at the chatter with a logic analyzer, it's clear that it is properly respondi...
by charlesrwest
Mon Mar 04, 2019 4:20 pm
Forum: ChibiOS/HAL
Topic: Simple USB serial
Replies: 3
Views: 561

Re: Simple USB serial

Further investigation indicates that it was due to the compile version issue that your code warns against. I got the same errors with your hal demo that I did with my code. I am surprised that they haven't fixed a problem that popped up in GCC 6 by GCC 8. I will used GCC 5 for the immediate future b...
by charlesrwest
Thu Feb 28, 2019 9:16 pm
Forum: ChibiOS/HAL
Topic: Simple USB serial
Replies: 3
Views: 561

Simple USB serial

Hello, I'm trying to get serial communication over USB working on the STM32F072B Discovery board. I'ved tried to port over the USB config files from the RT-STM32F429-DISCOVERY project with the only change being changing USBD2->USBD1. However, any time I call usbDisconnectBus, usbConnectBus or chnWri...
by charlesrwest
Fri Feb 15, 2019 8:52 pm
Forum: ChibiOS/HAL
Topic: Issue compiling ChibiOS/testhal/STM32/STM32F0xx/USB_CDC
Replies: 3
Views: 466

Re: Issue compiling ChibiOS/testhal/STM32/STM32F0xx/USB_CDC

Thank you. I am currently trying to get USB to work. Am I likely to run into other issues related to licensing with that? Also, are there any examples that can do USB read/write while using the exception version?

Thanks again,
Charlie West
by charlesrwest
Fri Feb 15, 2019 5:21 pm
Forum: ChibiOS/HAL
Topic: Issue compiling ChibiOS/testhal/STM32/STM32F0xx/USB_CDC
Replies: 3
Views: 466

Issue compiling ChibiOS/testhal/STM32/STM32F0xx/USB_CDC

Hello. I'm having some issues compiling my project which I've been trying to hunt down. Much to my surprise, I am getting the same issue when I try to compile the HAL test programs: ../../../../os/various/shell/shell_cmd.c: In function 'cmd_test': ../../../../os/various/shell/shell_cmd.c:182:8: warn...
by charlesrwest
Sat Feb 11, 2017 5:32 pm
Forum: Development and Feedback
Topic: C++ wrappers
Replies: 84
Views: 18071

Re: C++ wrappers

Hello all, I would like to report a bug fix for C++ with ChibiOS. I was working with a simple hello world program compiled with cpp but without any C++ features (using direct OS calls, not the wrapper) and got linker errors (originally reported in this thread in Sept 2015, http://www.chibios.com/for...
by charlesrwest
Wed Feb 08, 2017 6:09 am
Forum: ChibiOS/RT
Topic: Linking errors with C++
Replies: 4
Views: 2323

Re: Linking errors with C++

Hello.

I'm doing another project and noticed that I seem to be getting the same issue. I guess the next step is to submit to the source forge bug tracker?

Thanks,
Charlie
by charlesrwest
Fri Sep 25, 2015 3:20 pm
Forum: ChibiOS/RT
Topic: Increasing tick resolution without affecting delay functions
Replies: 4
Views: 1399

Re: Increasing tick resolution without affecting delay funct

Thanks for the detailed response! I will check for overflow when using that macro and reimplement my LED object to use millisecond delay to reduce the likelihood of trouble.

Thanks again,
Charlie
by charlesrwest
Fri Sep 25, 2015 1:58 am
Forum: ChibiOS/RT
Topic: Increasing tick resolution without affecting delay functions
Replies: 4
Views: 1399

Re: Increasing tick resolution without affecting delay funct

I apologize, but I am not sure how to do that. I've replicated the error with a minimal length program (below). In testing, I noticed that the (currently commented out) chThdSleepMilliseconds function performs as expected (same frequency despite resolution changes) while the microseconds delay funct...

Go to advanced search