Hi,
I have arduino code written for GNSS U Blox ZED F9P module. This is in C++, I would like to convert it into C with HAL API functions in it. Is there a way to achieve that ?
I am grateful for any kind of support. Thank you.
Assuming that the arduino code is built for an STM32, at some level it is probably calling HAL functions or twiddling registers so realistically, all you have to do is find the source of all the functions that your high-level code is calling. But depending on how simple or complex your own code is, it may be faster to just rewrite it.
Thanks for your answer.
Yes I need to convert, this is my task because there are many libraries like this one written for Arduino however we need to convert into C.
I am looking forward seeing a way for that.
Is there any way to achieve ?
If you want someone to write code for you, post on the Jobs and Paid Consultancy forum section, and be prepared to pay for the effort. Or, use the flag button (lower right on post) to ask a moderator to move this thread to that section.
No, I just helped you to formulate your question, I've never programmed outside the arduino framework.. As I understand, the arduino core for stm32 is made with STM32 HAL, so it could be done.
I was only looking for methodology if there is any approach to follow in order to convert arduino code into C code. It doesnt have to be exact STM32 CUBE IDE code, because I can find the equivalent HAL API and write by myself.
Here the issue is to convert C++ code into C code.
Thanks for your answer, much appreciated.
I see. That's a completely different problem than I first understood.
No, there is no standard way to do that. It will depend entirely on how the code is structured.
This would be a good time to say why you need to do that though...