Skip to main content
Neolithic
Associate III
December 9, 2024
Question

OpenOCD Raspberry pi Bit Bang SWD Error connecting DP cannot read IDR

  • December 9, 2024
  • 1 reply
  • 1317 views

Hi,

I am posting this question, same as I have posted on the stackoverflow to find some clues into my problem.

I had been programming my STM32F407 MCU for almost 6 years using OpenOCD's GPIO Bit bang driver over Raspberry-pi for Serial Wire Debug for almost all kinds of projects. Yesterday, I started developing for the USB device driver on my MCU and after the first flash, I am no longer able to connect to it via OpenOCD GPIO Bit Bang driver.

I am successfully able to do everything using OpenOCD with STLink; however, I am not able to connect to DP, using bit band SWD driver of openocd, even if I mass erase the flash and reset everything using stm32cube programmer first. All the option bytes show that everything is as it should be to allow connecting and writing to flash memory.

Does USB development cause any side effects which I am not aware of ? Did anyone face a similar issue before? My physical connections are not a problem. Sometimes I see messages like Wrong Parity Error. I am not sure why that would appear.

I will be looking forward to some relevant guidelines or pointers to understand this problem.

Regards,
Junaid

1 reply

Andrew Neil
Super User
December 9, 2024

@Neolithic wrote:

I am posting this question here along with stack overflow


Please give a link to the other thread - so that all contributors can see the whole story.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Neolithic
NeolithicAuthor
Associate III
December 9, 2024

I have put the exact same question there. This is just in case if someone is not available on this forum and has the knowledge.

Andrew Neil
Super User
December 9, 2024

So please give a link to that post - so people here don't end up repeating here what's already been said there.

And vice-versa.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.