Skip to content
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.

How To: Rename Eclipse Projects

Tyler Gamvrelis edited this page Jan 31, 2019 · 1 revision

Source for these steps (copy & pasted below because links sometimes break): http://www.openstm32.org/forumthread774

  1. Copy and paste the folder with the project in the desired location.
  2. Change the name of the folder to the new name of the project (optional).
  3. Delete the folders “Debug” and “Release” if they exist inside the project folder.
  4. If you are using Cube rename the Cube File (.ioc) to the new name of the project. This is highly important. Otherwise cube will not be able to modify the new project.
  5. Rename the CFG File which has the format “ProjectName Run”. Only replace the “ProjectName” with the new name. Keep the space character between both words.
  6. Open the CPROJECT-File (usually has not a name assigned) with a text editor. Replace all instances of the old name of the project with the new name. Save and close the file.
  7. Open the PROJECT-File (usually has not a name assigned) with a text editor. Replace all instances of the old name of the project with the new name. Save and close the file.
  8. Open the project and compile it.
  9. Flash the microcontroller.
  10. If any error appears try by making a full build of the project: right click to the name of the project in the project explorer, then “Build Configurations” and finally “Build All”. Try flashing again.

Additionally, any links outside of the project folder (e.g. files in the Common folder) need to be updated manually after the renaming.