cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE - procedure for cloning a project

BobWalance
Associate III

It was difficult to learn how clone an existing project for a dual-core STM32H747i-DISCO board. Here are the steps that I used (after much researching and trials and errors):

1) Copy the existing project folder called 'OLD' into a new folder called 'NEW'.

2) In the new folder, rename \OLD.ioc to \NEW.ioc

There are three folders with six associated files that need attention:
\.project
\NEW.ioc
\CM4\.project
\CM4\.cproject
\CM7\.project
\CM7\.cproject

3) In each of these six files text files, edit them and replace all occurrences of 'OLD' with 'NEW'.

4) Double click on \.project. This will cause CubeIDE to import this project.

5) Rebuild the Run and Debug configuration settings.

1 REPLY 1
AScha.3
Chief III

"My"  way to make a copy/clone is little more easy , i think:

1. in IDE , left, "project explorer" , mark the project and right click mouse : -> copy 

AScha3_13-1745946841518.png

2. right click (in free area) here: -> paste

3. it (adds a number, "2" here, and )  asks:

AScha3_0-1745944032827.png

-> Copy .

then you get the copy:

AScha3_1-1745944144100.png

- but still wrong names then:

AScha3_2-1745944257210.png

4. so correct the names, right click on : xx.ioc, -> rename : it asks..

AScha3_3-1745944386130.png

(we want it to update names inside xx.ioc , so ...add "2" :

AScha3_4-1745944485988.png

-> ok.

5: then we delete the old-named outputs:

AScha3_5-1745944592499.png

- but still debug wrong, so open menu -> debug configurations :

right click on the wrong copy : new configuration , then we get: xxx2.debug

AScha3_6-1745945027279.png

6. open the main.c , compile ...the hammer. :)

we get:  output with new names:

AScha3_7-1745945290379.png

7: but still debug is wrong :

AScha3_8-1745945397953.png

...so : click : browse, to give him its elf file:

AScha3_9-1745945505143.png

- and adjust the debug settings, as you like them:

with OCD and a cmsis daplink: just for fun...

AScha3_11-1745946591373.png

 

...or with st-link :

AScha3_10-1745945626384.png

8. try...debug now:

AScha3_12-1745946678178.png

... and here we are, with a working clone/copy .

btw the cmsis-dap is just like a "blue pill", but with an AIR32F103 , a F103 with 216MHz core:

AScha3_14-1745947330457.png

It has cmsis-dap software already , ready to use. :)

+ Target is a genuine STM32F103C6 , as STM IDE is for STM targets .

And with st-link also SWV working:

AScha3_15-1745949235406.png

 

If you feel a post has answered your question, please click "Accept as Solution".