cancel
Showing results for 
Search instead for 
Did you mean: 

Regeneration creates duplicate link files.

MMitc
Associate II

Some setting in the .ioc file causes it to put many links into the project for files that are already in the source tree. This results in hundreds for duplicate symbols. They are in several directories

How can I stop it from doing that?

3 REPLIES 3
Markus GIRDLAND
ST Employee

Does this happen in every project or just a specific one?

Can you provide the steps to reproduce it? Also, what OS and version of CubeIDE is it?

MMitc
Associate II

STM32CubeIDE

Version: 1.1.0

Build: 4551_20191014-1140 (UTC)

It's the same project I;m having other issues like losing manually added directories. I'll send files privately.

MMitc
Associate II

@Markus GIRDLAND​ I have a clue when the links are erroneously created. Today I made 1 change to the IOC that triggered this mess,:

NVIC.EXTI4_IRQn=true\:5\:0\:false\:false\:true\:true\:true\:true

Then the .project had all these linked resources added:

  <linkedResources>

    <link>

      <name>Application/User/custom_bus.c</name>

      <type>1</type>

      <locationURI>$%7BPROJECT_LOC%7D/Core/Src/custom_bus.c</locationURI>

    </link>

    <link>

      <name>Application/User/freertos.c</name>

      <type>1</type>

      <locationURI>$%7BPROJECT_LOC%7D/Core/Src/freertos.c</locationURI>

    </link>

    <link>

      <name>Application/User/main.c</name>

      <type>1</type>

      <locationURI>$%7BPROJECT_LOC%7D/Core/Src/main.c</locationURI>

    </link>

    <link>

... TOO MANY TO LIST

  </linkedResources>