How to import third-party libraries through c code

For general Flowcode discussion that does not belong in the other sections.
Post Reply
missman
Posts: 5
http://meble-kuchenne.info.pl
Joined: Sun Jun 16, 2024 4:32 am

How to import third-party libraries through c code

Post by missman »

At present, I need to use the microROS[https://github.com/micro-ROS/micro_ros_ ... bemx_utils] library in the MCU, but I have not found the correct method, how to import the third-party library, such as in the C code module, how to reference the microROS header file and lib file, or how to import the dll file and use the functions and methods in it? Hope you can give advice, preferably to provide a simple function example. Thank you very much and look forward to your guidance.

BenR
Matrix Staff
Posts: 1950
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 510 times
Been thanked: 694 times

Re: How to import third-party libraries through c code

Post by BenR »

Hello,

That looks interesting. I've made a note to have a good look through that library.

For now just using the C code in Flowcode probably won't be easy or straightforward. It's very specifically created for STM32 devices running on the CubeMX IDE. It may work ok if your using an STM32 but if you're not then it's going to need a rewrite in terms of accessing our CAL.

If I can I'll spend some time on this in the near future and try to make a proper Flowcode compatible component.

What do you know about ROS/ROS2 and is there any control software or other third party software you can recommend to help drive the robot or other things we could look at to improve our offering both on embedded and app/web developer.

missman
Posts: 5
Joined: Sun Jun 16, 2024 4:32 am

Re: How to import third-party libraries through c code

Post by missman »

Thank you very much for your reply. I'm looking forward to it. As you might expect, microROS is ROS2 running on STM32 or ESP.
More information is available at https://github.com/lFatality/stm32_micro_ros_setup and https://github.com/micro-ROS/micro_ros_ ... bemx_utils

missman
Posts: 5
Joined: Sun Jun 16, 2024 4:32 am

Re: How to import third-party libraries through c code

Post by missman »

https://micro.ros.org/blog/2020/08/27/esp32/
This link provides all hardware supported by microROS

missman
Posts: 5
Joined: Sun Jun 16, 2024 4:32 am

Re: How to import third-party libraries through c code

Post by missman »

I would like to ask, if I use external open-source libraries, where should I put the corresponding header files (*.h) and library files (*.lib/*.dll) respectively, and how can I reference the corresponding header files in the programming window's Code Icons? I look forward to your guidance and detailed operation methods. Thank you.

Brendan
Posts: 59
Joined: Tue Dec 08, 2020 2:12 pm
Has thanked: 45 times
Been thanked: 12 times

Re: How to import third-party libraries through c code

Post by Brendan »

BenR wrote:
Thu Jul 04, 2024 9:20 am
Hello,

That looks interesting. I've made a note to have a good look through that library.

For now just using the C code in Flowcode probably won't be easy or straightforward. It's very specifically created for STM32 devices running on the CubeMX IDE. It may work ok if your using an STM32 but if you're not then it's going to need a rewrite in terms of accessing our CAL.

If I can I'll spend some time on this in the near future and try to make a proper Flowcode compatible component.

What do you know about ROS/ROS2 and is there any control software or other third party software you can recommend to help drive the robot or other things we could look at to improve our offering both on embedded and app/web developer.
Hi Ben.

Flowcode is my go-to for all projects that I engage with, though I'm now working on a robotics project that needs to integrate Micro-ROS to the MCU.

Encouraged by your comment regarding STM32 (STM32F407IG in my case), I just need to ask if there's anything on the cards in this regard?

Many thanks,
Brendan

Post Reply