Skip to main content
Luca1
Associate III
July 3, 2020
Question

Using firmware examples

  • July 3, 2020
  • 6 replies
  • 2129 views

Hi to all!

There is a way for using the firmware examples without broke nothing?

I want to use and modify some examples, but it's not seem an easy task..

If I use "import existing project into workspace", if i use copy project into workspace, the imported project don't compile (some file miss).. If I don't use the copy option, the example run, but i can't modify it, also some files aren't in the project folders.

So how i can use the examples firmware for having a working template for custom use?

This topic has been closed for replies.

6 replies

Tesla DeLorean
Guru
July 3, 2020

Use better tools where you can simply dupe the directory the project is in?

#!Eclipse

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Cartu38 OpenDev
Graduate II
July 4, 2020

@clive1 Do you know a tool able to do better? I've some interest to ...

According my experience MDK-ARM and EWARM are suffering same ...

Luca1
Luca1Author
Associate III
July 4, 2020

Hi clive1, many thanks for the reply!

Can you be more precise please? What tool do you refer?

After reading your answer, I have used the "Eclipse IDE for C/C++ Developers" Version: 2020-03 (4.15.0), I did the same steps as I described above, but eclipse copy only the folders, I don't see any .c or .h files in the imported project.

PS

Now I have noticed the ! in front of Eclipse...

Piranha
Principal III
July 4, 2020

From a free IDEs on Windows I can suggest EmBitz, but that is useful only for actually developing software, not clicking and sticking together non-working bloatware.

Luca1
Luca1Author
Associate III
July 4, 2020

I found a (dirty) way to do this job... Copy all files manually.. :)

Cartu38 OpenDev
Graduate II
July 29, 2020

Fresh (releases done on wk31.1) STM32CubeIDE 1.4.0 & STM32CubeMX 6.0.0 are promoting some example import features !

Pavel A.
Super User
July 29, 2020

Can't find anything on import improvement in the 1.4 release notes

https://www.st.com/resource/en/release_note/dm00603738-stm32cubeide-release-v140-stmicroelectronics.pdf

IMHO they just need to explain how the import works in the documentation.

The example projects in Cube packages refer to common library and BSP files in the same package.

These references bind the projects to the Cube package tree structure and they won't work if copied out of the tree (if you select "copy into workspace" when importing).

When you create a new project, CubeIDE offers to either copy or link the library files, but in the example projects this choice has been already made.

If you carefully copy the example at the same level in the tree, chances are it will work, as all relative references are preserved.

On Windows, make sure that neither the project path, Eclipse workspace and Cube package paths have spaces and funny characters.

-- pa

Cartu38 OpenDev
Graduate II
July 30, 2020

Just get a look at target finder extra tab !

0693W000003BgdoQAC.jpg