When I try to debug with Keil Online Studio I get the following message:
Preparing to runParse debug description...Create system description...Connect to debug unit (ST-Link)...Configure debug unit (SWD @ 10000000 Hz)...Create device map...Connect ('haltOnConnect') to device STM32L152RETx...ERROR: Cannot open RDDI JTAG connectionERROR: JTAG_Connect exited with code 13ERROR: JTAG_TMS exited with code 48ERROR: JTAG_TMS exited with code 48: Atomic sequence error- failed to execute atomic sequenceDebugPortSetupItem #2: <control if="protType == 2">Item #0: <control if="isSWJ">Item #1: <control if="!hasDormant">RDDI-DSL ERROR: ERROR failed to connect to RDDI DAP targetRDDI Error Code 4107 : Connection to target failed.
Is debugging with Nucleo-L152re and ST Link V2 possible?
ST Link uses SWD.
Greetings Joerg Sturm
Hi Joerg,
There's some troubleshooting information available here: https://developer.arm.com/documentation/102497/1-5/Known-issues-and-troubleshooting/Troubleshooting. In particular, the information on connect mode "underReset" might help in this case.