Search found 11 matches

by Apache
Tue Apr 26, 2022 1:55 pm
Forum: Development and Feedback
Topic: [DEV] STM32G4xx support
Replies: 100
Views: 117812

Re: [DEV] STM32G4xx support

Hello everyone,
I noticed a new problem in the implementation of the low level driver: it doesn't handle extended IDs. I quick fixed it so I could use it but I didn't code a clean fix yet. If anyone has the same problem, the fix is to set the bit 30 of the TX buffer, which allows the peripheral to ...
by Apache
Sat Feb 19, 2022 5:54 pm
Forum: Development and Feedback
Topic: [DEV] STM32G4xx support
Replies: 100
Views: 117812

Re: [DEV] STM32G4xx support


I just had a look at this diff, and it looks like I actually already made all these changes in my branch, except for adding the call to fdcan_clock_start. Do you really need to add that? It works just fine on an H7 (same IP from Bosch) exactly as it is on my fork (m).


I base my work on yours ...
by Apache
Tue Jul 13, 2021 9:04 pm
Forum: Development and Feedback
Topic: [DEV] STM32G4xx support
Replies: 100
Views: 117812

Re: [DEV] STM32G4xx support

Hey, I'm back with a diff :)
by Apache
Thu Jul 01, 2021 10:31 am
Forum: Development and Feedback
Topic: [DEV] STM32G4xx support
Replies: 100
Views: 117812

Re: [DEV] STM32G4xx support

Hi, I managed to solve my problem.

For the record, I had to implement a function fdcan_clock_start that restarts the clock before clearing the INIT bit in the CCCR register. This functions clears the CSR bit and waits for the CSA bit to be cleared.
by Apache
Wed Jun 30, 2021 8:43 am
Forum: Development and Feedback
Topic: [DEV] STM32G4xx support
Replies: 100
Views: 117812

Re: [DEV] STM32G4xx support

Hello, I created a thread about a problem I have with the FDCAN driver, and I was advised to ask here.

I've been developping an application on nucleo f303k3 which implements bxCAN. I ported the code to nucleo g431 but I'm not able to get a CAN signal out of the chip (other peripherals work fine ...
by Apache
Wed Jun 30, 2021 8:39 am
Forum: STM32 Support
Topic: FDCAN on STM32G431
Replies: 4
Views: 5402

Re: FDCAN on STM32G431

Ok, thank you!
by Apache
Wed Jun 30, 2021 8:15 am
Forum: STM32 Support
Topic: FDCAN on STM32G431
Replies: 4
Views: 5402

Re: FDCAN on STM32G431

In this thread you said that FDCAN driver should be working with CAN 2.0 frames. That's what I'm trying to do but I can't get it working. I tried the patch made by mck1117, it fixes some things in the init but it's behaving in the same way. Maybe that's my config that doesn't work?

I used this ...
by Apache
Tue Jun 29, 2021 11:07 pm
Forum: STM32 Support
Topic: FDCAN on STM32G431
Replies: 4
Views: 5402

FDCAN on STM32G431

Hello,

I've been developping an application on nucleo f303k3 which implements bxCAN. I ported the code to nucleo g431 but I'm not able to get a CAN signal out of the chip (other peripherals work fine). It looks like an init or a config problem, because when I try to send a CAN frame I always get a ...
by Apache
Fri Feb 05, 2021 8:59 pm
Forum: STM32 Support
Topic: STM32F303K8 and SysTick timer
Replies: 7
Views: 6941

Re: STM32F303K8 and SysTick timer

Using ticked mode worked fine! :D

Just to clarify, why are some 16 bits timers available and others aren't in tickless mode?
by Apache
Sun Jan 31, 2021 8:05 pm
Forum: STM32 Support
Topic: STM32F303K8 and SysTick timer
Replies: 7
Views: 6941

Re: STM32F303K8 and SysTick timer

I use the 20.3.X branch on the github repo.

The defines STM_ST_USE_TIMX are available for timers 2 to 5, 9 to 14, 21 and 22. On my MCU I have timers 1 to 3, 6, 7 and1 5 to 17, and I already use timers 1 to 3.

Thanks for the fast answer and the tip about tickless mode!