Qt mcu project can't include libraries like QCanBus, QObject?
-
-
@inusion said in Qt mcu project can't include libraries like QCanBus, QObject?:
thank you.
But I need to utilize qcanbus to do can development. Is there any other way?You're welcome.
The link that I posted says, "Applications that require non-graphical functionalities such as networking... need to either have their own implementation or leverage existing 3rd party libraries for respective platforms."
That means you must either write your own CAN code, or use a CAN library that has been developed for your MCU.
-
Hi @inusion, and welcome!
Qt for MCUs (also called "Qt Quick Ultralite") is designed to let you develop GUIs on MCUs. It does not include the non-GUI Qt modules. See https://doc.qt.io/QtForMCUs-2.3/qtul-qtquick-differences.html
-
@inusion said in Qt mcu project can't include libraries like QCanBus, QObject?:
thank you.
But I need to utilize qcanbus to do can development. Is there any other way?You're welcome.
The link that I posted says, "Applications that require non-graphical functionalities such as networking... need to either have their own implementation or leverage existing 3rd party libraries for respective platforms."
That means you must either write your own CAN code, or use a CAN library that has been developed for your MCU.
-
@JKSH
Let me ask you one more question.https://doc.qt.io/QtForMCUs-2.3/quickultralite-automotive-src-canbus-qt-canbusdevice-cpp.html
The link is the Qt Quick Ultralite Automotive Cluster Demo among the mcu demos on the qt official website.
The program is an mcu project, how can I use the QCanBus library?
-
@inusion said in Qt mcu project can't include libraries like QCanBus, QObject?:
https://doc.qt.io/QtForMCUs-2.3/quickultralite-automotive-src-canbus-qt-canbusdevice-cpp.html
The link is the Qt Quick Ultralite Automotive Cluster Demo among the mcu demos on the qt official website.
The program is an mcu project, how can I use the QCanBus library?
A Qt for MCUs project can be built and run on a real MCU (for running a real product), or it can be built and run on a development PC (for easier programming and testing).
In the demo that you linked,
- If the project is built for a development PC, then it will use the QCanBus library
- If the project is built for an RH850 MCU, then it will use the RSCANFD library
This is the implementation that uses the QCanBus library: https://doc.qt.io/QtForMCUs-2.3/quickultralite-automotive-src-canbus-qt-canbusdevice-cpp.html
This is the implementation that uses the RSCANFD library: https://doc.qt.io/QtForMCUs-2.3/quickultralite-automotive-src-canbus-rh850-d1m1a-baremetal-canbusdevice-cpp.html
QCanBus CANNOT be used in a real MCU.
I hope this clarifies things.
-
@inusion said in Qt mcu project can't include libraries like QCanBus, QObject?:
@JKSH
Thank you for answer.I'm trying to do can communication using nxp, but will it work in nxp even if I use the RSCANFD library?
You're welcome.
RSCANFD is for Renesas MCUs. Please ask your supplier which C/C++ CAN library can be used with your NXP MCU.