Search found 45 matches

by HDKLog
Wed Jul 09, 2025 11:55 am
Forum: STM32 Support
Topic: Software USB Host/Device stack
Replies: 1
Views: 20086

Software USB Host/Device stack

Hello, I wonder if someone has tried to implement a Software USB Host/Device stack like TinyUSB on low-end MCUS and if there is an example of USB serial with it?
by HDKLog
Sat Mar 29, 2025 9:41 pm
Forum: STM32 Support
Topic: STM32G051x ADC strange referance voltage
Replies: 2
Views: 17903

Re: STM32G051x ADC strange referance voltage

Thank you Giovanni, I had never thought about input impedance.
According to the datasheet:

000: 1.5 ADC clock cycles
001: 3.5 ADC clock cycles
010: 7.5 ADC clock cycles
011: 12.5 ADC clock cycles
100: 19.5 ADC clock cycles
101: 39.5 ADC clock cycles ...
by HDKLog
Sat Mar 29, 2025 8:14 pm
Forum: STM32 Support
Topic: STM32G051x ADC strange referance voltage
Replies: 2
Views: 17903

STM32G051x ADC strange referance voltage

Hello, I was able to successfully setup a project for my board with STM32G051F8P6 but was unable to configure ADC properly. My voltage source is 3.3V (from LDO) but I get strange readings when I read ADC1. I have a Voltage Divider connected to ADC1 channel 1 with resistor 1 15k to the ground and 68k ...
by HDKLog
Sat Jun 08, 2024 9:18 am
Forum: General Support
Topic: Support for MSPM0G310x
Replies: 1
Views: 27417

Support for MSPM0G310x

Hello, I was using microcontrollers in a small package and then I found a better MCU from TI which has twice the Flash and RAM, has 2 ADCs, and a slightly higher frequency. This could have a big impact on my project and I wonder if ChibiOS has any ports on this MCU. It is an Arm M0+ MCU and it also ...
by HDKLog
Sun Mar 15, 2020 3:41 pm
Forum: Small Change Requests
Topic: Byte peeking from streams
Replies: 3
Views: 36966

Re: Byte peeking from streams

Hello Giovanni, how about implementing it in descendants of BaseSequentialStream class where it is easy and trivial. You can move it in BaseSequentialStream when implementation will be available in all descendants of BaseSequentialStream.

Harry.
by HDKLog
Sun Mar 15, 2020 12:58 pm
Forum: Small Change Requests
Topic: Byte peeking from streams
Replies: 3
Views: 36966

Byte peeking from streams

Hello,
It would be very useful to have a "peek" method for Streams. There are many cases when you need to get the first byte of the stream without popping it out and having method streamPeek() along with streamPut() and streamGet() will help to reduce extra workaround and keeping code more light and ...
by HDKLog
Mon Jul 15, 2019 5:50 pm
Forum: General Support
Topic: Using MMC driver with other SPI devices
Replies: 3
Views: 4106

Re: Using MMC driver with other SPI devices

So each time I call any MMC driver function I should put it in between spiAcquireBus() and spiReleaseBus() and also if I use FATFS library i should put all FATFS function calls between them. Shouldn't be nice to have these all encapsulated in MMC driver functions calls and option like HAL_USE_MMC ...
by HDKLog
Sun Jul 14, 2019 6:05 pm
Forum: General Support
Topic: Using MMC driver with other SPI devices
Replies: 3
Views: 4106

Using MMC driver with other SPI devices

Hello,
I've got one of these TFT display breakout boards with SD card socket which shares same SPI interface with display. I already wrote driver which communicates with display and follows ChibiOS Hal communication with mutual exclusion:


spiAcquireBus()
spiStart()
spiSelect()

//spiSend ...
by HDKLog
Wed Jan 16, 2019 3:02 pm
Forum: Bug Reports
Topic: usb_event called not within interrupt handler
Replies: 8
Views: 9525

Re: usb_event called not within interrupt handler

Hello Giovanni, I tested my code on the workspace computer and wasn't able to reproduce error. I don't remember all details of my test where I have catched this error and everything seems to work fine. If I will catch this error again I will let you know with all details and conditions.
by HDKLog
Fri Jan 11, 2019 12:05 am
Forum: General Support
Topic: Does ChibiOS have drivers for integrated operational amplifiers?
Replies: 4
Views: 4557

Does ChibiOS have drivers for integrated operational amplifiers?

Hello.
I want to use opamp's integrated in STM32F303 MCU. I know ADC driver was tempt to be portable and generic as much as possible, to be used with many different MCU's but is there any extended futures in ADC or separated driver for integrated opamp's? Also any example code of integrated opamp's ...