So I have a question concerning boot2qt and QtCreator. I am currently developping some “testing app” with Qt creator (Qml with c++ backend) on a colibri iMX6DL with aster carrier board.
I managed to do something with the uart but i am not quite sure if this is the right way to do it. And I also don’t now if I can do it the same way with spi/i2c.
So I am asking if there is some tutorial on how to implement spi/i2c/uart in such an application.
With all that said, maybe I am not using the good method at all and it can be much easier than that
Here are the files where I configure the uart
Boot2Qt support serial ports through QSerialPort (Qt Serial Port 5.15.11). I think its a good idea to use that if you can. For I2C and SPI there is no such mechanism available. However, you may want to write a similar wrapper class as QSerialPort.
We describe how to use I2C here:
For SPI you need to adapt the devicetree and configure the SPI device at a specific CS. This is described here:
I hope this helps.
Thank you for your reply,
I also found a library to set i2c and/or spi in a C++ code.
This library is mainly made for raspberry pi but I managed to make it work with some tweaking
Perfect, thanks for the feedback!