-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NHC-Link042: Convert Keil to Cmake Makefile with tool from https://github.com/phodina/ProjectConverter #251
Conversation
I should add a small doc on how to build the firmware: zoobab@chonche /home/zoobab/soft/ch32v003fun/attic/NHC-Link042 [13]$ cmake . [...] [100%] Linking C executable bin/NHC-Link042.elf |
Please just use makefiles for this. CMake has been such a pain to maintain across builds. Or is there some other reason to use CMake over Make? |
I could only found that tool (I tried keil2gcc but I did not manage to compile it), and was happy to find this other python tool, but which only supports cmake as output. Let's see if I find another converter cmake->makefiles. |
@cnlohr if you succeed in compiling this tool (I have added g++ -IPersistanceLibrary/Source/BasicTypes -IPersistanceLibrary/Source/Math), I am still failing to build a working binary, maybe it can generate a simpler Makefile. |
I urge you to just write what you need to to make it work. Don't be afraid of makefiles, just figure out what needs to be passed into the compiler to make it work. |
I asked Openchat LLM to convert the cmake to a makefile, it gave me some output Makefile, now I just need to make it work... |
It is not hard to write a makefile. It's just
Everything else is just sugar. |
I am looking to port this firmware to an STM32F103, does anybody has a link to the similar V1.0.0 library for it? |
NHC-Link042: Convert Keil to Cmake Makefile with tool from https://github.com/phodina/ProjectConverter