Skip to content

[Bug]: Files (startup files, linker files and other device specific files) in RTE are not updated when the compiler is changed in the csolution file. #584

Description

@karthikkbs05

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

After creating a project for any device (let's take microchip device PIC32CM-PL10) on CMSIS toolbox, a wizard pops up asking us to choose between AC6 or GCC compilers. As per the selection, let's say I selected AC6, corresponding startup file, linker files are loaded onto the RTE section of the project's folder structure.
Now, if I change the "-compiler :" in csolutions.yml to GCC, the new startup file corresponding to GCC must get loaded onto the RTE section replacing the older one. However, this action does not take place. This will lead to build error.

For now, we have a found a work around by firstly deleting the RTE files, changing the compiler to the new one and then reactivating the environment. These steps will reload the RTE section with the files belonging to the newly selected compiler.

Expected Behavior

Changing the compiler in csolution.yml file should trigger a RTE update to delete older files and later copy compiler specific files onto RTE.

Steps To Reproduce

  1. Load the project with default compiler selection
  2. Change the compiler tag "-compiler:" to a different compiler which uses different files
  3. Observe that the older compiler files are still in the RTE and was never removed.
  4. Files related to new compiler are also copied onto the RTE

Affected tools

  • cbridge
  • cbuild
  • cbuild2cmake
  • cpackget
  • csolution
  • packchk
  • svdconv
  • vidx2pidx

Affected operating systems

  • all
  • Windows amd64
  • Windows arm64
  • Linux amd64
  • Linux arm64
  • MacOS amd64
  • MacOS arm64

Environment

  • Windows 11

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions