Search found 45 matches

by ych
Fri Dec 12, 2025 10:59 am
Forum: General Support
Topic: Measuring CPU Usage
Replies: 20
Views: 32477

Re: Measuring CPU Usage

What about the following approach for obtaining a general CPU usage value when
ChibiOS is configured with thread statistics and the idle thread enabled?

The idea is to sum the cumulative execution time of all registered threads,
subtract the idle thread contribution, and compute the CPU load as a ...
by ych
Mon Jul 21, 2025 6:28 pm
Forum: ChibiOS/HAL
Topic: Compilation error when activating the same peripheral for Serial and UART drivers
Replies: 1
Views: 15406

Compilation error when activating the same peripheral for Serial and UART drivers

What is the reason for the compilation error when activating the same peripheral for both Serial and UART drivers?

I'm referring to this message:

#error "SD1 requires USART1 but it is already used"

...and similar checks involving STM32_USART*_IS_USED .

Is this just a safeguard to prevent ...
by ych
Tue Apr 22, 2025 8:42 am
Forum: Bug Reports
Topic: FDCAN with STM32H735
Replies: 44
Views: 95134

Re: FDCAN with STM32H735

Edoardo1982 wrote:...

Thank you for your feedback, I remove that sleep from the code right away.

Edoardo


Would it be possible to remove it as well from at least the latest stable version, [font=Courier New]stable_21.11.x[/font]?
by ych
Mon Apr 14, 2025 11:27 am
Forum: Bug Reports
Topic: FDCAN with STM32H735
Replies: 44
Views: 95134

Re: FDCAN with STM32H735


...
Could you give me some feedback on how FDCAN works without that sleep?
...


Hi Edoardo,

After a week in production without that sleep command, I haven't encountered any issues with FDCAN transmission.
It seems we can safely remove it.

The issue I encountered was due to a flaw in my code ...
by ych
Mon Mar 31, 2025 10:24 am
Forum: Bug Reports
Topic: [STM32H7] missing I2C5 Peripheral in mcuconf
Replies: 6
Views: 52269

Re: [STM32H7] missing I2C5 Peripheral in mcuconf

I’ve been using this patch in production for several months now, and it has been working as expected.

What can I do to get it merged into the current trunk and the latest stable branch?
Do I need to extend my patch with additional configurations, examples, or anything else?
by ych
Mon Mar 31, 2025 10:17 am
Forum: Bug Reports
Topic: FDCAN with STM32H735
Replies: 44
Views: 95134

Re: FDCAN with STM32H735

I encountered a limitation caused by the chThdSleepS(OSAL_MS2I(1)) delay in the FDCANv2 driver for STM32. A similar delay also exists in FDCANv1 .

Due to this delay, I’m unable to send CAN FD frames faster than 1 kHz from a single thread, whereas my application requires a 2 kHz transmission rate ...
by ych
Tue Jan 14, 2025 4:19 pm
Forum: Bug Reports
Topic: FDCAN with STM32H735
Replies: 44
Views: 95134

Re: FDCAN with STM32H735


...
I also have another FDCan patch to make filtering a little bit faster : in the current implementation of filters, all the filters are enabled, and the filters not in use just filter nothing, but filtering hardware have to try them all. I have a patch that dynamically adjust the filter table ...
by ych
Mon Dec 23, 2024 7:03 pm
Forum: Bug Reports
Topic: FDCAN ITR receive trigger choice
Replies: 1
Views: 14233

Re: FDCAN ITR receive trigger choice

Hello, Alexandre

It seems that this proposal is implemented with ChibiOS trunk (rev 16769).

Yurii
by ych
Mon Oct 14, 2024 10:39 pm
Forum: Bug Reports
Topic: [STM32H7] missing I2C5 Peripheral in mcuconf
Replies: 6
Views: 52269

Re: [STM32H7] missing I2C5 Peripheral in mcuconf

Attached is the patch that adds I2C5 peripheral support to the STM32H7 port. I hope this helps to incorporate the missing peripheral into the development and latest stable branches.
by ych
Fri Oct 11, 2024 1:00 pm
Forum: Bug Reports
Topic: [STM32H7] missing I2C5 Peripheral in mcuconf
Replies: 6
Views: 52269

[STM32H7] missing I2C5 Peripheral in mcuconf

Is there any specific reason why the I2C5 peripheral is absent in the STM32H7 mcuconf?