WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
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
I am designing a costume board using the STM32L412RBI6.
I see a generic variant for it in the stm32duino package.
what I want to ask is how do I configure several I2C channels in the variant (I want to use I2C1 and I2C3), also for two SPI channels and two U(S)ART channels?
I was creating an .ioc file in the STM32CubeMX, is there a way to take from the generated files the variant, peripheralsPins, clock definitions?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Hi @RonNabha
You can refers to the Wiki, simply instantiate new instance with the desired pins linked to a dedicated IP.
https://github.com/stm32duino/Arduino_Core_STM32/wiki/API#spi
https://github.com/stm32duino/Arduino_Core_STM32/wiki/API#i2C
https://github.com/stm32duino/Arduino_Core_STM32/wiki/API#hardwareserial