You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, Ive been working with my Portenta h7 stm32h747 with onboard ulpi/ram/flash. Ive managed to get clock set/get for i2c/qspi working, I2c (only tested in master and not much), the external ram , and USBHS working. SPI is putting up a fight. My coding ability is weak and I can barely follow the conversations in the Pull Requests section. Would any value come from me eventually submitting a pull request so those more talented maybe able to use it as a starting point?
Simpler things clock set/get, I2c is pretty much just adding the existing i2c version 2, sum minor fixes for comments, added registers for usbhs etc, maybe able to get merged.
Its very much a work in progress, so no care has been taken to clean up the example. Lots of commented out previous trials and the like. But here is my shame on display https://github.com/bm16ton/libopencm3-portentaH7
Eventually I will find a way to contribute back to this project/community, may not be this but something:)
The text was updated successfully, but these errors were encountered:
Hi,
All coding efforts are worth sharing, thank you for this.
I am also working on a stm32h7 project.
The most important issue right now for this project is to get the structure of the lib files right.
Have a look at the common directory: Some drivers are already present, so you should not reimplement the functions that can be made common.
Regarding SPI I think the H7 has a new SPI hardware block called spiv3. This is different from spiv2 already present in the common stm32 directory.
This spiv3 block is likely to be used by several other stm32 variants, thats why it's not in a stm32/h7 directory but in stm32/common.
I have no idea where this v3 of the spi is coming from.
Inspiration about spi can be found in the NuttX project, which has a working SPI driver for stm32h7 (I am using it successfully right now). The NuttX project is Apache licensed, but the accesses to the registers can be observed and recoded in this project.
So the steps are
-determine is a common/spiv3 file is necessary
-determine the common operations and put them in stm32/common/spi_common_all and stm32/common/i2c_common_all
-compare all suggestions to get spi working and get the best from them
-test
Hello, Ive been working with my Portenta h7 stm32h747 with onboard ulpi/ram/flash. Ive managed to get clock set/get for i2c/qspi working, I2c (only tested in master and not much), the external ram , and USBHS working. SPI is putting up a fight. My coding ability is weak and I can barely follow the conversations in the Pull Requests section. Would any value come from me eventually submitting a pull request so those more talented maybe able to use it as a starting point?
Simpler things clock set/get, I2c is pretty much just adding the existing i2c version 2, sum minor fixes for comments, added registers for usbhs etc, maybe able to get merged.
Its very much a work in progress, so no care has been taken to clean up the example. Lots of commented out previous trials and the like. But here is my shame on display https://github.com/bm16ton/libopencm3-portentaH7
Eventually I will find a way to contribute back to this project/community, may not be this but something:)
The text was updated successfully, but these errors were encountered: