- This topic has 5 replies, 2 voices, and was last updated 8 years, 8 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
Home › Forums › Mastering STM32 book support forum › How to import Cube example project
Tagged: clean, compilation, eclipse, gcc, open.audio
greetings from France,
I bought your book a week ago and I did not regret it. It helped me to get started.
I am trying to go further and compile some cube’s project example provided here.
However when I import the SW4STM32 folder. Eclipse display the error
“make: *** No rule to make target ‘clean’. Stop.”
and also some error mentioning that he can not find some constant.
It feels like the makefile is wrong and some library are missing.
In the long term, I would like to run some open.audio examples”
Regards
Hi,
Glad to listen that my book is useful for you 😉
About your question. Are you importing the project using the CubeMXImporter tool or by hand? Take in account that actually CubeMXImporter isn’t able to import projects shipped with the CubeHALs. You have to import them manually.
If you place the project somewhere (dropbox, etc) I can try to give it a look to understand the problem. It’s hard to say what’s going wrong.
Regards,
Carmine
I did not use STM32CubeMX for this example. I have just imported the example by doing file->import->existing project into workspace.
I can send you my eclipse project. Do you prefer one made for NUCLEO L476RG or one for NUCLEO F070RB?
No, unfortunately you can’t import a SW4STM32 project directly inside an Eclipse IDE with the GNU ARM Eclipse plugins. You need the AC6 toolchain.
So what is the best alternative? I saw that it is possible to import an Atollic project but ST does not always provide attolic samples.
If you are using the toolchain described in my book, the only alternative is to import the projects by hand. With a little bit of experience it’s not so difficult.
Otherwise, you may consider to download and install also the AC6 toolchain to work with ST examples.