Where to start STM32H7 support

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: barthess, RoccoMarco

User avatar
Giovanni
Site Admin
Posts: 12770
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 697 times
Been thanked: 575 times
Contact:

Re: Where to start STM32H7 support

Postby Giovanni » Fri Jul 19, 2019 7:44 am

Hi Tridge,

I will look into this in the weekend. I slowed down a bit on the H7 because the new revision that changed quite a bit of things, I am waiting boards with the updated device and with the new one with two cores.

Giovanni

tridge
Posts: 130
Joined: Mon Sep 25, 2017 8:27 am
Has thanked: 8 times
Been thanked: 18 times
Contact:

Re: Where to start STM32H7 support

Postby tridge » Fri Jul 19, 2019 8:08 am

Giovanni wrote:I will look into this in the weekend. I slowed down a bit on the H7 because the new revision that changed quite a bit of things, I am waiting boards with the updated device and with the new one with two cores.

no worries, I'm looking fwd to getting one of those new ones too.

tridge
Posts: 130
Joined: Mon Sep 25, 2017 8:27 am
Has thanked: 8 times
Been thanked: 18 times
Contact:

Re: Where to start STM32H7 support

Postby tridge » Fri Jul 19, 2019 11:48 am

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

tridge
Posts: 130
Joined: Mon Sep 25, 2017 8:27 am
Has thanked: 8 times
Been thanked: 18 times
Contact:

Re: Where to start STM32H7 support

Postby tridge » Mon Nov 25, 2019 8:58 am

I received my first boards with the new RevisionV of the H743 chip today. It was a lot less hassle than I expected. It turns out our existing ArduPilot code runs on it fine with no changes. That is partly luck because of ADC clocking choices, but it certainly makes our life easy.
I haven't yet tried to enable the VOS0 voltage scaling to allow for 480MHz. We'll try that soon. I'm hoping we can do that as a runtime change based on the chip revision so we don't need to ship two different firmwares.
Either way, the gloomy predictions for how hard it was going to be to support both RevY and RevV turn out to be a bit over-stated. At least for ArduPilot it has been trivially easy.

User avatar
Giovanni
Site Admin
Posts: 12770
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 697 times
Been thanked: 575 times
Contact:

Re: Where to start STM32H7 support

Postby Giovanni » Mon Nov 25, 2019 11:08 am

Good to know, I will resume work on this next. Is support for the old revision still required? probably there are lots of parts on the field.

Giovanni

tridge
Posts: 130
Joined: Mon Sep 25, 2017 8:27 am
Has thanked: 8 times
Been thanked: 18 times
Contact:

Re: Where to start STM32H7 support

Postby tridge » Mon Nov 25, 2019 1:20 pm

Giovanni wrote:Good to know, I will resume work on this next. Is support for the old revision still required? probably there are lots of parts on the field.

We will certainly need to support both revY and revV for quite a few years in ArduPilot (usual lifetime would be 5 years or so). Luckily that won't be hard.

elagil
Posts: 73
Joined: Tue Sep 19, 2017 7:38 am
Has thanked: 6 times
Been thanked: 5 times

Re: Where to start STM32H7 support

Postby elagil » Tue Nov 26, 2019 1:22 pm

Was development on a MACv2 driver already started? If so, I would like to contribute, since I need this functionality for some projects.

User avatar
Giovanni
Site Admin
Posts: 12770
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 697 times
Been thanked: 575 times
Contact:

Re: Where to start STM32H7 support

Postby Giovanni » Tue Nov 26, 2019 1:24 pm

Hi,

MACv2 is not started yet, I still have to assess differences with the old one.

Giovanni

User avatar
Giovanni
Site Admin
Posts: 12770
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 697 times
Been thanked: 575 times
Contact:

Re: progress on SDMMCv2 on H7

Postby Giovanni » Mon Jan 13, 2020 6:55 pm

tridge wrote:I made some more progress on SDMMCv2 on a H743. I still don't have IDMA working, but I do have a working polled driver. I can access flight logs in ArduPilot now, and create logs. I've attached the current version.
Only polled transfers work so far. I spent quite a bit of time today trying to get interrupt driven transfers working, but as yet they don't work. I do get some successful transactions, but pretty soon either get a lockup or data corruption. I've left the interrupt driven implementation in the driver, enabled for read and write using the SDMMC_POLLED_READ and SDMMC_POLLED_WRITE defines at the top of the driver. If anyone can spot what the issue is with interrupt driven mode that would be great.
Of course what we really want is IDMA working, but so far I've had no luck with that. See my previous question about triggers.
Cheers, Tridge


Just FYI, I am giving IDMA a try, it does not look complex.

Giovanni

tridge
Posts: 130
Joined: Mon Sep 25, 2017 8:27 am
Has thanked: 8 times
Been thanked: 18 times
Contact:

Re: progress on SDMMCv2 on H7

Postby tridge » Mon Jan 13, 2020 8:40 pm

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/bl ... _sdc_lld.c
We've been using it in production with ArduPilot for some months now. It works well.


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 4 guests