Open fabiencomte opened 4 years ago
I met the same problem as you. Have you solved it?
Joining the club
A similar problem. Who can decide? Ready to donate
Same problem!
+1
Please note that Mbed Studio uses a customised installation of pyocd. Although I'm perfectly happy to help with general pyocd usage, I can't support Mbed Studio's integration. So you really need to raise support requests like this with the Mbed Studio folks.
The DBGMCU.CR
register must be configured to enable all clocks and set low power debug modes. In particular, TRACECLKEN
, D1DBGCKEN
, and D3DBGCKEN
need to be set, plus the DBG{SLEEP,STOP,STBY}_*
bits.
This can be done with a user script, or you can do it in your firmware and use drag and drop flash programming to get the initial firmware loaded.
Another option is to test a branch where I'm implementing CMSIS-Pack debug sequences support, which allows for automatic configuration of DBGMCU
on STM32 devices. Install with this command:
pip install git+https://github.com/flit/pyOCD.git@feature/debug_sequences
Hello, When I try to debug a STM32H743ZI CPU with Mbed Studio, it fails.
If I do basic checks outside, it looks correct:
Configuration: Windows 10 x64, Mbed Studio 1.0.0, xpack-openocd-0.10.0-13-win32-x64