2024-01-12 12:45 AM - edited 2024-01-18 10:45 PM
Hi, after a lot of wasted time, I've created a demo for dual core with debug files:
Here is the project:
https://github.com/lonejack/stm32cubeide-demo-dualcore
To make the setup the guide:
https://www.youtube.com/watch?v=k3mXhPZSasw
has been followed.
I made some changes...
Import the project with option:
three projects..
Generate the code and build projects.
Then run the debug with "stm32cubeide-demo-dualcore"
Wait the download and main enter for both processors:
Run the CM4, it should go in this state:
Run the CM7, it should go in running:
Return in CM4, press run button, it should go in running:
Now both cores are running...
The given guide to me didn't work!
If someone has better solution please write here...
Thank you.
C.
2024-01-12 03:11 AM
Hello
> The given guide to me didn't work!
Could you please explain what is the problem? Are you aiming to multi core debug for example? If not, you can simply comment the boot sequences to run one core in debug.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-01-12 05:20 AM
Hi Mr. Belaid,
you're right, my target is to debug both cores contemporary.
In the guide for example it isn't described how to do this. Do I have to load the two debug launcher? Or just one single (cm7)?
Furthermore, it should be specified that, for syncro reasons, is necessary to run the CM4 and after the CM7.
In order to obtain this I made a "Launch Group" that run the two launcher.
All these info aren't present in the guide...
Anyway, if you have a better solution, write here.
C.
2024-01-12 06:21 AM
In CM7 debug configuration, you need to:
In CM4 debug configuration:
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-01-12 06:40 AM
About the CM4 configuration you have only to download the symbols not the code.
So, at this point, what we should do?
Now you can debug...
But these info, where are described in the video?
2024-01-12 07:15 AM
Reading my answer, I understand now that there's a mix of items here. I faced problems these during my first test on the NUCLEO board and the draft dual core project (form STM32CubeIDE) insert a semaphore for both cores synchronization.
So in my initial post I wrote "The given guide to me didn't work!". That statement is incorrect (it is not my intention to offend anyone). The guide explain how to make the two launchers but, after this, you need to make a launch group and start correctly the cores.
2024-01-12 07:31 AM
Exactly, this is an example. Do you still have issues to debug CM4 core?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-01-12 08:01 AM
No problems at moment.
Now I've the next step...
Do you know what is the best method to share or exchange data between cores?
Thank you
C.
2024-01-12 09:14 AM
Hi @lonejack
Here is an example STM32CubeH7/Projects/STM32H747I-EVAL/Applications/ResourcesManager/ResourcesManager_SharedResources at master · STMicroelectronics/STM32CubeH7 (github.com)
I hope this helps.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.