Impossible to start the Debugger

General discussion on mikroBasic PRO for ARM.
Post Reply
Author
Message
Alessandro Fulignani
Posts: 101
Joined: 04 Nov 2016 13:09

Impossible to start the Debugger

#1 Post by Alessandro Fulignani » 18 Mar 2022 13:07

Hi Mikroe,

We are starting a new project with an STM32L021D4. This STM micro it is available in your compatibility list.
You can download and write software, but as soon as you try to debug it, you get the message "ReadDHCSR Fail"

The mkrobasic version it is the latest available. 6.2.0 under W10 with last updates.

Connection SWD at 1Mhz under HW reset. Codegrip for ARM with the latest firmware.

The test software it's very simple:

While 1
nop
nop
wend

No library selected.

Hope to get a fast answer,

Regards,

Alex

User avatar
darko.ilijevski
Posts: 581
Joined: 21 Mar 2017 16:57

Re: Impossible to start the Debugger

#2 Post by darko.ilijevski » 21 Mar 2022 18:41

Hello,
Have you tried switching the connection back to "Normal" instead of "Under Reset"?
The "Under Reset" option is used to hold the MCU in the reset state while it is connected so the programming pins (SWD/JTAG) fall back to their default settings when forced by the firmware to GPIO mode.
BR,
Darko

Alessandro Fulignani
Posts: 101
Joined: 04 Nov 2016 13:09

Re: Impossible to start the Debugger

#3 Post by Alessandro Fulignani » 22 Mar 2022 11:10

Dear Filip and Darko,

The Boot pin in my application was not connected properly so the prog counter was pointing to the wrong address.

Once connected the Boot Pin to ground, everything worked fine.

Really apologize to have wasted your time.

Thank you.

Alessandro

Post Reply

Return to “mikroBasic PRO for ARM General”