I'm facing with a problem regarding debug session.
When I start debug session, after the configuration of USART2 the debug session is closed.
The shutdown occur with this instruction:
Cannot access target. Shutting down debug session
This is my configuration:
- IDE Keil
- Keil project created with STM32Cube MX
- Debug Serial Wire with SWCLK, SWDIO, NRST.
- UART2 only TX and RX
Without debug the board works well, but I need the debug to solve some bug.