Broken paths when creating projects
Using STM32CubeMX 4.13.0 I created a project from scratch for an STM32L053. To avoid redundant copies of library files I checked “Add necessary library files as references in the toolchain project conf…”. Among other (9) files, this created the file SW4STM32/${PROJ}/.project. ${PROJ} is the name of the project.
By default, STM32CubeMX sets up a repository at ${HOME}/STM32Cube/Repository, ${HOME} being the home directory of the user. Therefore, the absolute path of the repository should be taken for linking.
However, all links in the file SW4STM32/${PROJ}/.project are prefixed with PARENT-2-PROJECT_LOC. BTW, is there an official documentation for “PARENT-2-PROJECT_LOC”? Though this is reasoanble for project-local files, it is incorrect for the library files.
As a workaround I stripped off the incorrect prefixes for the library files and could import the project successfully as described in the wiki.