2023-10-11 11:55 AM
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.
2025-04-29 9:48 AM - edited 2025-04-29 10:54 AM
"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
2. right click (in free area) here: -> paste
3. it (adds a number, "2" here, and ) asks:
-> Copy .
then you get the copy:
- but still wrong names then:
4. so correct the names, right click on : xx.ioc, -> rename : it asks..
(we want it to update names inside xx.ioc , so ...add "2" :
-> ok.
5: then we delete the old-named outputs:
- but still debug wrong, so open menu -> debug configurations :
right click on the wrong copy : new configuration , then we get: xxx2.debug
6. open the main.c , compile ...the hammer. :)
we get: output with new names:
7: but still debug is wrong :
...so : click : browse, to give him its elf file:
- and adjust the debug settings, as you like them:
with OCD and a cmsis daplink: just for fun...
...or with st-link :
8. try...debug now:
... 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:
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: