Search found 414 matches

by alex31
Tue Jun 24, 2025 3:38 pm
Forum: Development and Feedback
Topic: how to dynamically choose a driver for a given peripheral
Replies: 1
Views: 2080

how to dynamically choose a driver for a given peripheral

Hello, I'm developing firmware for a UAVCAN proxy card that can fulfill multiple roles, which are selected via configuration parameters stored in an external EEPROM. Many of these roles rely on libraries written years ago. I'm facing a conflict where one role uses USART2 with the SD driver, while an...
by alex31
Mon Feb 17, 2025 10:53 am
Forum: Development and Feedback
Topic: GCC 14.2.1 available from ARM web site
Replies: 1
Views: 14434

Re: GCC 14.2.1 available from ARM web site

For the ultimate edgers :oops: I have compiled 15.0.1_experimental for ubuntu 24.04 : https://drive.google.com/file/d/1i6P6pFENXAkXFkslHCBC7RD-G5yBI3Ow/view?usp=drive_link In short : ChibiOS compile fine, static analyzer don't complain. g++15 trigger some error messages due to real bugs in my code t...
by alex31
Sat Feb 01, 2025 6:36 pm
Forum: Bug Reports
Topic: gptStartOneShot 'fails' with interval of 1 Topic is solved
Replies: 5
Views: 23376

Re: gptStartOneShot 'fails' with interval of 1 Topic is solved

Hi Giovanni,

I arrived at the same conclusion, assertion and addon in the documentation should be an honorable solution :-)

A.
by alex31
Sat Feb 01, 2025 4:59 pm
Forum: Bug Reports
Topic: gptStartOneShot 'fails' with interval of 1 Topic is solved
Replies: 5
Views: 23376

Re: gptStartOneShot 'fails' with interval of 1 Topic is solved

Hello,

It seems this bug has come back from the past.
In latest stable for oneshot and continuous : called with interval == 1, callback is never called.

Alexandre
by alex31
Fri Jan 31, 2025 8:47 pm
Forum: ChibiOS/HAL
Topic: Unsure about clock tree configuration (because the CANbus baud rate is not correct)
Replies: 4
Views: 25601

Re: Unsure about clock tree configuration (because the CANbus baud rate is not correct)

Where is my fault? Hello, Clock tree is indeed fine, but all the subfield CAN_BTR_SJW CAN_BTR_TS2 CAN_BTR_TS1 CAN_BTR_BRP have a minimum length of 1, so you must specify N-1 for all these fields c.a.d if you want a value of 1, you must specify 0 . you should write this : CAN_BTR_SJW(0) | CAN_BTR_TS...
by alex31
Thu Jan 30, 2025 4:08 pm
Forum: Bug Reports
Topic: FDCAN with STM32H735
Replies: 44
Views: 58783

Re: FDCAN with STM32H735

Hello, I have backported your proposed FDCAN driver from trunk to stable 21.11, and use it in my projects (H753 and G491), and so far all is working 8-) I agree that with mutex one can stop and start the driver, I have tested this solution and it works, with the burden of having to protect all the C...
by alex31
Tue Jan 21, 2025 1:54 pm
Forum: Bug Reports
Topic: FDCAN with STM32H735
Replies: 44
Views: 58783

Re: FDCAN with STM32H735

Hi, Rather than introducing low-level APIs, I would suggest calling a stop and start of the driver instead. Do you have any objections to this potential solution? I understand the inconvenience to add new low level API. In a typical application there is a reception thread, emissions are spread acros...
by alex31
Tue Jan 14, 2025 5:17 pm
Forum: Bug Reports
Topic: FDCAN with STM32H735
Replies: 44
Views: 58783

Re: FDCAN with STM32H735

I made measures with a Logic Analyzer, and I measured a little bit less that 100 ns in the worse situation, on fdcanV2 witch 32 entries in the extended id filtering table. In fact, what I cannot measure, is when you have few filters, and none of them successfully trigger, so the peripheral has to ex...
by alex31
Tue Jan 14, 2025 4:04 pm
Forum: Bug Reports
Topic: FDCAN with STM32H735
Replies: 44
Views: 58783

Re: FDCAN with STM32H735

Hello, one mode proposal for a patch to manage bus offline recovery. When a canbus peripheral send a frame that does not receive ACK, it automatically retransmit for a while, until peripheral itself goes offline. This occurs each time all the agents on a bus are not powered synchronously. Peripheral...
by alex31
Fri Jan 10, 2025 2:00 pm
Forum: Bug Reports
Topic: FDCAN with STM32H735
Replies: 44
Views: 58783

Re: FDCAN with STM32H735

Hello, I have backported trunk fdcan to stable, and so far, it works both for fdcanV2 (using watermark) and fdcanV1 (using new message IT) 1) I want to submit trivial patch to add TDCR (transmit delay register) to configuration structure : when using FDCAN at high baudate, it make transmission way m...

Go to advanced search