Where to start STM32H7 support

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

Moderator: RoccoMarco

Post Reply
User avatar
alex31
Posts: 445
Joined: Fri May 25, 2012 10:23 am
Has thanked: 57 times
Been thanked: 88 times

Re: Where to start STM32H7 support

Post by alex31 »

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

Post by maciek »

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: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Where to start STM32H7 support

Post by Giovanni »

Correct, H7 support is not complete yet.

Giovanni
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Where to start STM32H7 support

Post by Giovanni »

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: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Where to start STM32H7 support

Post by Giovanni »

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

Post by bluuu »

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

Post by bluuu »

bump
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Where to start STM32H7 support

Post by Giovanni »

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

Post by maciek »

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: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Where to start STM32H7 support

Post by Giovanni »

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
Post Reply