Search found 40 matches

by Ceco
Wed Jun 01, 2022 8:23 am
Forum: General Support
Topic: STM32U5 Support?
Replies: 8
Views: 4828

STM32U5 Support?

Hello, Giovanni.

Are you planning a support for STM32U5 microcontrollers?
by Ceco
Wed Oct 07, 2020 8:54 am
Forum: ChibiOS/HAL
Topic: I2S on H742
Replies: 1
Views: 1467

I2S on H742

Hello. I'm trying to implement I2S peripheral on STM32H742. The Chibios version is official 20.3.2. As I see the "hal_i2s_lld.c" & "hal_i2s_lld.h" files are missing from the "os\hal\ports\STM32\LLD\SPIv3". Is it a my mistake or the module is currently not supported?
by Ceco
Mon Sep 14, 2020 3:56 pm
Forum: Bug Reports
Topic: Possible bug in stm32_registry.h Topic is solved
Replies: 2
Views: 2027

Possible bug in stm32_registry.h Topic is solved

Hello.

I found a possible mistake in os/hal/ports/STM32/STM32F4xx/stm32_registry.h and especially for STM32F446 core.

The STM32_SPI1_SUPPORTS_I2S is set to FALSE, which makes the usage of I2S on SPI1 impossible.

Is there a reason to block it? Normally F446 supports I2S on SPI1.
by Ceco
Wed Jan 02, 2019 11:19 am
Forum: Bug Reports
Topic: Optimization doubts with USB driver
Replies: 11
Views: 6511

Re: Optimization doubts with USB driver

Hello Giovanni, and Happy New Year! Currently I'm using the following code for the FIFO reading at it works well for my needs. As I mentioned before - it is optimized for huge data blocks transfers like MSD implementation and probably is not the best in other particular cases. static inline void otg...
by Ceco
Fri Dec 07, 2018 2:45 pm
Forum: Development and Feedback
Topic: USB Mass Storage Device
Replies: 112
Views: 66606

Re: USB Mass Storage Device

Just a small report of my game with MSD. STM32F437 with USB3220 PHY. OTG_HS mode. CPU clock 168Mhz. SD_CLK = 48Mhz. Chibios 18.2.0 MSD / SCSI drivers: https://github.com/ChibiOS/ChibiOS-Contrib data endpoint size = 512 bytes USB_HS RX FIFO size = 1536 bytes (3 * 512) USB HS TX FIFO size = 2048 (4 * ...
by Ceco
Fri Dec 07, 2018 2:41 pm
Forum: Bug Reports
Topic: Optimization doubts with USB driver
Replies: 11
Views: 6511

Re: Optimization doubts with USB driver

Super. :D
by Ceco
Fri Dec 07, 2018 2:27 pm
Forum: Bug Reports
Topic: Optimization doubts with USB driver
Replies: 11
Views: 6511

Re: Optimization doubts with USB driver

Ok, I will leave it as it is. In my implementation it is coded as exceptional case at the end of the loop, so it not affects the performance of the loop at all. With this small correction the write speed of the MSD driver raised twice, so I'm pretty happy with the results. I will post some report in...
by Ceco
Fri Dec 07, 2018 1:22 pm
Forum: Bug Reports
Topic: Optimization doubts with USB driver
Replies: 11
Views: 6511

Re: Optimization doubts with USB driver

Correct, the function has to empty the FIFO even if the requested size is less than the available data. Ok, but how this can happen? I mean what a user case? And why we dump the data, maybe it will be requested with the next function invoking? Sorry if the question is strange, but in my head the du...
by Ceco
Fri Dec 07, 2018 7:24 am
Forum: Bug Reports
Topic: Optimization doubts with USB driver
Replies: 11
Views: 6511

Re: Optimization doubts with USB driver

Giovanni, currently it not looks like a bug, the original code works just fine. The idea is to achieve highest performance, normally this is not a issue for most of the user cases. Meanwhile, can you give me a bit more information for your code: static void otg_fifo_read_to_buffer(volatile uint32_t ...
by Ceco
Thu Dec 06, 2018 6:27 pm
Forum: Bug Reports
Topic: Optimization doubts with USB driver
Replies: 11
Views: 6511

Optimization doubts with USB driver

Hello. I'm using STM32F439 with external PHY USB3320C. The OS version is 18.2.0. The driver is configured for HS mode. CPU clock is 168MHz. I'm trying to implement MSD mode with maximum performance. After a digging in the code, I found one potential performance limitation. In file hal_usb_lld.c, the...

Go to advanced search