Where to start STM32H7 support

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

Moderators: RoccoMarco, barthess

User avatar
alex31
Posts: 379
Joined: Fri May 25, 2012 10:23 am
Location: toulouse, france
Has thanked: 38 times
Been thanked: 62 times
Contact:

Re: Where to start STM32H7 support

Postby alex31 » Fri Dec 14, 2018 6:11 pm

Hi,

The peripheral is the same in F3 so it should be similar, the exact values have to be calculated, details are in the STM32 Reference Manual.


The STM32CubeMX application can compute the TIMINGR value for you. Within STM32CubeMX, create a H7 project, configure the clock tree, then the I2C port you want to use, and you can generate pdf and text rapport where TIMINGR is calculated as a 32 bits constant.

The tool can even generate init code, but alas, not for ChibiOS :-/


Alexandre

maciek
Posts: 5
Joined: Thu Dec 13, 2018 2:55 pm

Re: Where to start STM32H7 support

Postby maciek » Tue Dec 18, 2018 5:03 pm

Hi,

thanks for the answers, I've generated the project in STM32CubeMX, and the resulting "Timing" constant I got is 0x10707DBC. Does it make sense? I'll check if it works in my ChibiOS I2C project.

As far as could I determine, ADCs and SDIO/SDC seem to be not supported yet?

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

Re: Where to start STM32H7 support

Postby Giovanni » Tue Dec 18, 2018 8:15 pm

Correct, H7 support is not complete yet.

Giovanni

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

Re: Where to start STM32H7 support

Postby Giovanni » Sun Dec 30, 2018 12:27 pm

Small update.

I added a demo for the H7 ADC, the code compiles and runs but the result is not what I expect, the buffer contains zeros even if the DMA started and wrote data.

There must still be some stupid error in the driver.

Giovanni

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

Re: Where to start STM32H7 support

Postby Giovanni » Sun Dec 30, 2018 4:06 pm

The driver is working now, tested one-shot and continuous circular modes.

Giovanni

bluuu
Posts: 5
Joined: Sun Dec 30, 2018 9:27 pm
Been thanked: 1 time

Re: Where to start STM32H7 support

Postby bluuu » Sun Dec 30, 2018 9:30 pm

Thanks for update. Good job.
Any plans for SDMMC driver ?

bluuu
Posts: 5
Joined: Sun Dec 30, 2018 9:27 pm
Been thanked: 1 time

Re: Where to start STM32H7 support

Postby bluuu » Sun Jan 20, 2019 9:44 pm

bump

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

Re: Where to start STM32H7 support

Postby Giovanni » Sun Jan 20, 2019 9:46 pm

No immediate plans, partly because lack of HW.

Giovanni

maciek
Posts: 5
Joined: Thu Dec 13, 2018 2:55 pm

Re: Where to start STM32H7 support

Postby maciek » Wed Jan 23, 2019 9:50 am

Hi Giovanni,

which HW do you need? Would Nucleo H743ZI do the job?

https://os.mbed.com/platforms/ST-Nucleo-H743ZI/

and also an SD card board with SDIO interface, connected to Nucleo?

I think some of us would be happy to fund such a board as our contribution to Chibios on H7 controllers. Do you prefer a donation or a real board, already wired to the SD shield?

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

Re: Where to start STM32H7 support

Postby Giovanni » Wed Jan 23, 2019 5:28 pm

Hi,

I have already that board, it doesn't have the SDMMC connector and I think that attaching one with floating wires would not work as expected. Some tried, should search topics in the forum about this.

Giovanni


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 22 guests