Where to start STM32H7 support

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

Moderators: RoccoMarco, barthess

andypiper
Posts: 65
Joined: Sat Oct 24, 2020 5:21 pm
Has thanked: 5 times
Been thanked: 4 times

Re: Where to start STM32H7 support

Postby andypiper » Tue Jan 26, 2021 9:59 am

Giovanni wrote:Hi,

No need to struggle too much, in mcuconf.h there is this:

Code: Select all

/*
 * Memory attributes settings.
 */
#define STM32_NOCACHE_MPU_REGION            MPU_REGION_6
#define STM32_NOCACHE_SRAM1_SRAM2           FALSE
#define STM32_NOCACHE_SRAM3                 TRUE


The related code is in hal_lld.c, you can use that as example.

Giovanni


Giovanni, there seems to be a bug here - SRAM3 is 32k according to the reference manual but we are only locking 16k

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

Re: Where to start STM32H7 support

Postby Giovanni » Tue Jan 26, 2021 11:01 am

Hi,

Please open a topic under "bug reports" about this, it is where I look for "things to do".

Giovanni

mobyfab
Posts: 483
Joined: Sat Nov 19, 2011 6:47 pm
Location: Le Mans, France
Has thanked: 21 times
Been thanked: 30 times

Re: Where to start STM32H7 support

Postby mobyfab » Sun Feb 14, 2021 3:40 pm

Giovanni wrote:OK, it could be a wiring issue, it happened already in the past with SD cards connected using wires.

If cost is not an issue then you could get a discovery board and see if it makes a difference.

Giovanni


I'm having the same issue with an STM32H750 rev V, it's not a hardware problem as it works fine with other software
The error flag is SDMMC_STA_RXOVERR

However, hardcoding return HAL_SUCCESS doesn't fix it. (connection successful but I can't read/write anything)

mobyfab
Posts: 483
Joined: Sat Nov 19, 2011 6:47 pm
Location: Le Mans, France
Has thanked: 21 times
Been thanked: 30 times

Re: Where to start STM32H7 support

Postby mobyfab » Thu Feb 18, 2021 1:01 am

is WSPI working on H7? I can't read/write anything right now (confirmed working with ST's HAL using ChibiOS RCC/GPIO config)

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

Re: Where to start STM32H7 support

Postby Giovanni » Thu Feb 18, 2021 6:32 am

mobyfab wrote:is WSPI working on H7? I can't read/write anything right now (confirmed working with ST's HAL using ChibiOS RCC/GPIO config)


Hi,

It is untested, there would be a test application under ./testhal otherwise.

Giovanni

Guillaume227
Posts: 15
Joined: Tue Apr 18, 2017 6:52 pm
Has thanked: 10 times

Re: Where to start STM32H7 support

Postby Guillaume227 » Mon Aug 30, 2021 11:52 am

Just got my hands on a H723ZG nucleo 144.
Current H7 demo cover H743, H750, H755 but there aren't any for H72x.
Is there anything specific to that family I should know before embarking on creating a new demo project, along the lines of what's described there ?
https://www.playembedded.org/blog/port- ... -platform/
I am thinking about compatibility gotchas between the various H7 sub-families.

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

Re: Where to start STM32H7 support

Postby Giovanni » Mon Aug 30, 2021 12:59 pm

Hi,

It should be just another subfamily, usually this requires adding an entry to the registry, few changes in hal_lld.h, a new mcuconf.h template and other minor things.

I have not yet analysed it in details so cannot guarantee you wont find some unusual things in there.

Giovanni

franek.bmw
Posts: 57
Joined: Thu Mar 13, 2014 11:15 am
Has thanked: 2 times

Re: Where to start STM32H7 support

Postby franek.bmw » Thu Feb 17, 2022 8:33 pm

Hello,

Thank you all for your contribution to support for H7.
I would like to ask what is the status of the CAN driver? If it is not ready yet, can you somehow support the work on this topic?

Thank you,
Franek

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

Re: Where to start STM32H7 support

Postby Giovanni » Thu Feb 17, 2022 8:38 pm

Hi,

Look in the dev forum, there are various contributions for the CAN driver I never had time to get into. There is an half done thing in the repository but it is not exactly high in my priorities. An effort is required to bring all contributions and suggestions together into a single driver.

Giovanni

fvantienen
Posts: 20
Joined: Thu Nov 08, 2018 11:56 am
Has thanked: 1 time
Been thanked: 2 times

Re: Where to start STM32H7 support

Postby fvantienen » Tue Apr 12, 2022 1:38 pm

Did someone already test the SDMMCv2 for the H7 or is it still untested?


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 27 guests