Hello,
We are working on a project using STM32745 and we are able to successfully flash both cores (m7 and m4) using Keil and ULINK2 and run it.
But now we are at a stage where we need to debug some of the code. So far I have not found any document on how to debug dual core using Keil and ULINK2.
Can you please point us to the right direction.
Moved to the Keil forum
See: Multi-Core Debugging with MDK (arm.com)
That link also confirms
"The ULINKpro and ULINKplus adapters provide the best performance and support interrupt handling and timing display."
Related:
STM32H7x5/x7 dual-core microcontroller debugging - Application note
Thanks for the prompt response.
So does that means ULINK2 is not the right tool for our purpose?
And also there is one more query on this matter:
We have got license for an old Keil Ide (Version 5.24).
Will this version support multiple core debugging if we buy ULINKpro?
Keil MDK 5.24 got released in 2017; according to ST's datasheet, the STM32H745 was released in 2019.
But feel free to test your setup with your ULINK2 selected.
- - -
My recommendation is the selection of the ULINKpro Debug Adapter in combination with the latest Keil MDK release:
http://www2.keil.com/mdk5
You can register this MDK release - free of charge - as MDK Professional edition, limited for 30 days:
Licensing User's Guide (arm.com)
Please also see our application note 338 step 6 on page 8:
https://developer.arm.com/documentation/kan338/1-0/?lang=en
The most important sentence for you in this chapter is:
----------------------------------------------This application note uses the ST-Link as debug interface. All the Keil debug adapters like ULINKpro, ULINKplus and ULINK2 can be used the same way. Only when using ULINK2 to debug both applications at the same time (see step 6c), you need to select the driver ‘CMSIS-DAP Debugger’ instead of ‘ULINK2/ME Cortex Debugger’.----------------------------------------------
This application note was written for MDK 5.35 and later. I don't know if you can use version 5.24. Please also note that the procedure to generate two projects for this device (one for each core) has changed with newer STM32H7 device family packs. So please ignore step 1 - 5 of this application note.
Hello Hans,
Many thanks for the response. The key was "Only when using ULINK2 to debug both applications at the same time (see step 6c), you need to select the driver ‘CMSIS-DAP Debugger’"
I can also confirm that I can debug dual core with Keil MDK 5.24 and ULINK 2. There is one minor issue that the debugger doesn't stop at breakpoints on Cortex M7 unless I stop code execution on M7 and run it again. But I can live with it.
Again many thanks Hans Schneebauer and @rkopsch for all the guidance.