cancel
Showing results for 
Search instead for 
Did you mean: 

How to transpose (use) a i2c driver from esp32/PlatfromIo to stm32f469 discovery kit?

neuberfran
Associate III

Hi,

https://community.st.com/s/question/0D73W000001P4HjSAK/detail?s1oid=00Db0000000YtG6&s1nid=0DB0X000000DYbd&emkind=chatterCommentNotification&emvtk=rFBwJPoX22v19IUT7w4abpgtAss59jGZDSMkyQTYp9E%3D&s1uid=0053W000002oMnN&emtm=1658948892390&fromEmail=1&s1ext=0

Continuing my evolution (after the post above) I want to put the i2c driver (github link below) to run on the stm32f469 discovery kit board.

https://github.com/neuberfran/SmartDriveEmC/tree/main/src

This is 1 external i2c driver (called SmartDrive)

I put my previous post here from the community, because I don't want to miss this splash screen when writing my new software. Which will use LVGL and will be pressed to run motor 01 (right and left). The same will apply to engine number 02.

https://github.com/neuberfran/SmartDrive

3 REPLIES 3
Pavel A.
Evangelist III

Well, in the project you've linked there is #include <Wire.h> and then some I2C manipulations with the "Wire" thing: Wire.beginTransmission(this->_address); Wire.read, Wire.write etc.

The ST library has its own API for I2C, not compatible with this "Wire" thing. IMHO it won't not port cleanly and needs a complete rewrite of the I2C I/O.

So you'll need to learn some I2C examples provided by ST and do the work, or ... convince somebody else to do this.

neuberfran
Associate III

@Pavel A.​ 

I have two more questions for you:

1) Could you list the main changes I will have to make to my github driver?

https://github.com/neuberfran/SmartDriveEmC/tree/main/src

2) If I can't, where can I find a professional to do this for me in an accessible way financially speaking

Hi @neuberfran​ 

1: In the SmartDrive class, replace all calls to Wire methods to either the STM32 "HAL" library or any other STM32 library you may find.

2: Here, for one: https://www.fiverr.com/categories/programming-tech/electronics-engineering/embedded-systems-iot