Search found 90 matches

by tridge
Sat Aug 24, 2019 10:40 pm
Forum: Bug Reports
Topic: Preventing interrupt storms on STM32
Replies: 8
Views: 74

Re: Preventing interrupt storms on STM32

I like the idea, I could look into creating some generic mechanism for IRQ spam protection to be used in drivers. I am less sure about the error handling method, resetting everything looks like a brute force approach. it is brute force and quite deliberately so. It only triggers if we've already tr...
by tridge
Sat Aug 24, 2019 11:52 am
Forum: Bug Reports
Topic: Preventing interrupt storms on STM32
Replies: 8
Views: 74

Re: Preventing interrupt storms on STM32

Have you considered trying the SW fallback I2C implementation? it could prove safer after some tests. I haven't tried it, but I would guess it would have too much performance impact. I'm actually quite hopeful that with the prevention of interrupt storms that i2c will no longer be a source of major...
by tridge
Sat Aug 24, 2019 6:37 am
Forum: Bug Reports
Topic: Preventing interrupt storms on STM32
Replies: 8
Views: 74

Re: Preventing interrupt storms on STM32

It looks like an HW behavior, do you know which even or state triggers it? which is the IRQ source doing this? no, we don't. If this patch does fix the issue then that would give us the opportunity to log the ISR mask when it happens. As we never produced it outside flight conditions we had no way ...
by tridge
Sat Aug 24, 2019 1:22 am
Forum: Bug Reports
Topic: Preventing interrupt storms on STM32
Replies: 8
Views: 74

Preventing interrupt storms on STM32

Continuing a recent theme on trying to make ArduPilot on ChibiOS as robust as we can make it I've created a patch to prevent interrupt storms on I2C on STM32. This was prompted by a particularly nasty bug report we've had where a small quadcopter called a 'Solo' has occasionally fallen out of the sk...
by tridge
Sun Jul 28, 2019 11:37 pm
Forum: Small Change Requests
Topic: [patch] Added reset of SPIv2 on FIFO error
Replies: 7
Views: 215

Re: [patch] Added reset of SPIv2 on FIFO error

I will proceed with adding the reset operation to spi_lld_start(), no need to add a switch, the idea is to do this across the whole STM32 HAL. ok, sounds good. I've implemented it for our branch here: https://github.com/ArduPilot/ChibiOS/commit/7dfc95f72b3164d65b6b15c8a8d306ff51d138d3 I've tested i...
by tridge
Sun Jul 28, 2019 9:54 am
Forum: Small Change Requests
Topic: [patch] Added reset of SPIv2 on FIFO error
Replies: 7
Views: 215

Re: [patch] Added reset of SPIv2 on FIFO error

1) Add the reset to spi_lld_start() and make it a general rule for all drivers. Some already do that, see I2C which is historically glitchy and can need restarting. In general, stop then start should always return the driver to a fresh situation so the reset IS needed. I hadn't actually noticed tha...
by tridge
Sat Jul 27, 2019 11:31 pm
Forum: Small Change Requests
Topic: [patch] Added reset of SPIv2 on FIFO error
Replies: 7
Views: 215

Re: [patch] Added reset of SPIv2 on FIFO error

My question is, what causes the glitch? we don't know. The issue happened once in flight. All we knew from that flight was that we started getting crazy values back from SPI reads on the MS5611. A reboot fixed it. After the flight we tried various was to trigger the same symptoms. The one we found ...
by tridge
Sat Jul 27, 2019 12:12 pm
Forum: Bug Reports
Topic: [patch] add missing I2C3 DMA channels for STM32F412 Topic is solved
Replies: 2
Views: 148

[patch] add missing I2C3 DMA channels for STM32F412 Topic is solved

This adds missing DMA channels for I2C3 on the STM32F412
by tridge
Sat Jul 27, 2019 12:08 pm
Forum: Small Change Requests
Topic: [patch] Added reset of SPIv2 on FIFO error
Replies: 7
Views: 215

[patch] Added reset of SPIv2 on FIFO error

While testing a flight controller based on a STM32F765IIK6 we hit a problem in flight where SPI transactions from a MS5611 barometer went crazy. As this caused a crash we tried to reproduce the problem on the ground. I found that the SPI peripheral (SPI4) can get into a bad state due to a momentary ...
by tridge
Fri Jul 19, 2019 11:48 am
Forum: STM32 Support
Topic: Where to start STM32H7 support
Replies: 152
Views: 14646

Re: Where to start STM32H7 support

Giovanni wrote:I will look into this in the weekend

note that there was a typo in my I2Cv3 change, mixup of rx and tx

Go to advanced search