Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STM32 Dual core support? #10

Open
dookei opened this issue Sep 6, 2022 · 3 comments
Open

STM32 Dual core support? #10

dookei opened this issue Sep 6, 2022 · 3 comments

Comments

@dookei
Copy link

dookei commented Sep 6, 2022

Hi @MaJerle ,
I would like to port a project to vcode from a STM32H745 (dual core M7 and M4). I am kinda of vscode fan
I have been looking now for some time, I read that it should be possible to debug both cores with the https://marketplace.visualstudio.com/items?itemName=marus25.cortex-debug extension. But so far no example on-line.
Do you believe with you method would be possible to make it work for a dual core system?
Did you came further with the python script for dual cores ?
My Project works fine under STM32CubeIDE for both cores (can flash and debug without much hassle).

@MaJerle
Copy link
Owner

MaJerle commented Sep 6, 2022

I did not work for dual-core as script is meant for simple porting.

Dual core project has to be compiled twice, once for each core. You can do it with single or dual cmakelists.txt file. I have never tested the dual-core tho.

@dookei
Copy link
Author

dookei commented Sep 7, 2022

HI @MaJerle ,
thanks for your fast reply. I will give it a go. will keep you posted once I got something .

@MaJerle
Copy link
Owner

MaJerle commented Sep 7, 2022

I took a look in the debug widget for dual-core. It says that every core has its own instance of debug interface. If you use ST-Link and STLINK-Server for debugging, then make sure you use the shared option. To allow multiple processes connecting to same instance of ST-Link for both cores.

I cannot verify if it works well but that's an option to consider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants