Skip to main content
MMitc
Associate III
November 16, 2019
Question

Regeneration creates duplicate link files.

  • November 16, 2019
  • 3 replies
  • 1011 views

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?

This topic has been closed for replies.

3 replies

Markus GIRDLAND
ST Employee
November 18, 2019

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
MMitcAuthor
Associate III
November 19, 2019

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
MMitcAuthor
Associate III
December 13, 2019

@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>