Search found 130 matches

by tridge
Tue Jan 21, 2020 4:15 am
Forum: ChibiOS/RT
Topic: How to make mutex support timeout?
Replies: 2
Views: 1108

Re: How to make mutex support timeout?

If anyone has implemented mutex with timeout and priority inheritance then please let me know. It would be very useful for ArduPilot. As giovanni said, it does look quite complex to implement, but would be a really nice feature.
by tridge
Sat Jan 18, 2020 11:11 pm
Forum: STM32 Support
Topic: Where to start STM32H7 support
Replies: 169
Views: 26131

Re: Where to start STM32H7 support

I committed an SDMMCv2 driver, it is a bit different because it uses a new mode of starting the data state machine, setting DTEN is no more "valid" even if it still works apparently. It also includes some clock-related improvements. Timeouts handling is different too. Thanks! I'll take a ...
by tridge
Thu Jan 16, 2020 2:17 am
Forum: STM32 Support
Topic: Where to start STM32H7 support
Replies: 169
Views: 26131

Re: Where to start STM32H7 support

Tridge, there several things I don't understand in your implementation so I cannot use it as-is, in additions it refers some external code (bouncebuffer) which is not part of the driver. yes, I have bouncebuffer hooks in SDIOv1 and SDMMCv1 too. I really don't understand how other ChibiOS users are ...
by tridge
Mon Jan 13, 2020 9:16 pm
Forum: STM32 Support
Topic: Where to start STM32H7 support
Replies: 169
Views: 26131

Re: Where to start STM32H7 support

One thing I didn't finish on SDMMCv2 is setting the clocks correctly. I just left a #warning in the code: https://github.com/ArduPilot/ChibiOS/blob/master/os/hal/ports/STM32/LLD/SDMMCv2/hal_sdc_lld.c#L519 It works like this, but the transfer rate isn't as fast as it should be. We normally don't need...
by tridge
Mon Jan 13, 2020 8:40 pm
Forum: STM32 Support
Topic: Where to start STM32H7 support
Replies: 169
Views: 26131

Re: progress on SDMMCv2 on H7

Just FYI, I am giving IDMA a try, it does not look complex. sorry, I thought I told you that I got IDMA fully working last year. I think I sent a patch? The code is here: https://github.com/ArduPilot/ChibiOS/blob/master/os/hal/ports/STM32/LLD/SDMMCv2/hal_sdc_lld.c We've been using it in production ...
by tridge
Tue Jan 07, 2020 12:04 pm
Forum: Bug Reports
Topic: [patch] fix I2C4 BDMA on STM32H7 Topic is solved
Replies: 1
Views: 1325

[patch] fix I2C4 BDMA on STM32H7 Topic is solved

simple fix for I2C4 BDMA on H7 attached, wrong CR register values used.
This one took me an embarrassingly long time to find. It just doesn't jump out at you when inspecting the code.
by tridge
Mon Dec 30, 2019 11:21 am
Forum: Small Change Requests
Topic: support for system timer 12, 13 and 14 for STM32 TIMv1 Topic is solved
Replies: 2
Views: 1291

Re: support for system timer 12, 13 and 14 for STM32 TIMv1 Topic is solved

Giovanni wrote:I had to do a lot of rework in order to integrate the ST driver with the new IRQ infrastructure so the patch was not up to date. Now the new infrastructure is ready and I added support for timers from 9 to 14 to ST.

thanks!
by tridge
Mon Dec 23, 2019 12:18 pm
Forum: Small Change Requests
Topic: support for system timer 12, 13 and 14 for STM32 TIMv1 Topic is solved
Replies: 2
Views: 1291

support for system timer 12, 13 and 14 for STM32 TIMv1 Topic is solved

This adds support for using TIM12, TIM13 or TIM14 as the system timer for STM32 TIMv1. Tested on a STM32F765. I needed this for a board where all the existing supported system timers were occupied for other tasks (PWM output, RC input etc). I couldn't see any reason we shouldn't use the other timers...
by tridge
Sat Dec 21, 2019 12:40 am
Forum: Development and Feedback
Topic: [RFC] Functional Safety in HAL
Replies: 11
Views: 1506

Re: [RFC] Functional Safety in HAL

Tridge, have you tried the SW I2C implementation? that would be the safest one. You can make it go fast enough without using much CPU. no, and I really don't want to. We run these MCUs with a large number of sensors and I really don't want the overhead of a sw I2C. Some of our boards have 4 I2C bus...
by tridge
Fri Dec 20, 2019 2:12 am
Forum: Development and Feedback
Topic: [RFC] Functional Safety in HAL
Replies: 11
Views: 1506

Re: [RFC] Functional Safety in HAL

The only recovery option for the particular board design was sledge hammer model (assert and watchdog). The I2C device had lost its mind, locked the bus up and couldn't be convinced to respond. Did you try a RCC reset approach on the specific I2C bus? That has worked well for ArduPilot using the in...

Go to advanced search