Hot answers tagged

8 votes
Accepted

SWDAP vs CMSIS-DAP vs DAPLink

CMSIS is the generic name for ARM-specified infrastructure around Cortex processors. The project we know today as DAPLink actually started as mbedmicro/CMSIS-DAP, we can find multiple references of ...
Nipo's user avatar
  • 1,543
5 votes

How to disable USB mass-storage in STLink on Nucleo?

In the recent STLinkUpgrade 3.3.0 I can see checkbox "Change Type" offering "Debug + Mass storage + VCP" or "Debug + VCP". Seems like the way to go. To download the latest and greatest version: https:...
Radek Šenfeld's user avatar
5 votes

Reverse engineering target chip to be used with OpenOCD

The JTAG specification (which is reasonably described on the wikipedia page) defines an IDCODE instruction as part of the mandatory implementation, and a scan chain intended for debug will typically ...
Sean Houlihane's user avatar
3 votes
Accepted

STM32 SWO & OpenOCD with Variable SysClock

It has been almost 3 years since I asked this question and, after some recent experimentation, I finally found something that works. This was made more difficult because the register used to make this ...
Colorado.Rob's user avatar
3 votes
Accepted

Is it possible to get ST-LINK's virtual COM port working without launching any program in Ubuntu?

There should be no real interaction between GDB or OpenOCD and the virtual serial port of an STM32 Discovery or Nucleo board, however the modemmanager package ...
Chris Stratton's user avatar
3 votes
Accepted

Salvaged STM32 programming with ST-Link V2 clone

It turns out the MCU is not an STM32F031C6T6 as I (incorrectly) assumed. After finding another MCU from the same manufacturer, and searching for it's datasheet, I found that the manufacturer is called ...
Stuyvenstein's user avatar
2 votes

How to disable USB mass-storage in STLink on Nucleo?

It works only for boards with ST-Link V2. Boards with ST-Link V3 do not have this 'type' option, e.g. NUCLEO-H743ZI (V2) is fine, NUCLEO-H743ZI2 (V3) does not.
Torsten Jaekel's user avatar
2 votes

SWDAP vs CMSIS-DAP vs DAPLink

DAPLink states that it uses the CMSIS-DAP protocol, which is supported by OpenOCD CMSIS-DAP, as the name suggests, is a protocol and firmware developed by ARM - the company which designes the ...
jaskij's user avatar
  • 1,223
2 votes

Flashing multi chips with JTAG using openocd

When you set a device's IR to BYPASS, it will map a one bit register with no CAPTURE and UPDATE actions to DR. The IR has a fixed length, let's assume two bit: ...
Simon Richter's user avatar
2 votes

Live variable view using openOCD and VScode

Change the IDE to something with better debugger - for example eclipse with set of plugins or use preconfigured IDE like atollic studio. The you can use tracing - to see live changes of the variable ...
0___________'s user avatar
  • 2,526
2 votes
Accepted

stm32f429 hardware development

NRST pin is hardwired directly to VDD so not all ways to reset the MCU core are available.
Justme's user avatar
  • 143k
2 votes
Accepted

Does ARM gdb not have TUI layout support?

The TUI feature is optional upon building GDB. So it probably depends who compiled your arm-none-eabi-gdb. There is a configuration option ...
Klas-Kenny's user avatar
  • 4,787
2 votes
Accepted

Flashing TI chips with OpenOCD

What I needed is a cJTAG programming mode. CC2652 uses that by default. (This mode doesn't need TDI and TDO). However, OpenOCD doesn't support cJTAG at the moment, and when it starts flashing the ...
Daniel's user avatar
  • 949
2 votes
Accepted

Can't program multiple chips using JTAG

The comments suggest you are trying to operate in 'star topology', but as far as I know, that isn't a well defined implementation. Please confirm you're using daisy chained topology, where the ...
Sean Houlihane's user avatar
2 votes
Accepted

ST-Link cannot software reset my STM32 MCUs over SWD

Direct connection of NRST to 3.3V VCC is wrong. Disconnect it.
Justme's user avatar
  • 143k
2 votes

OpenOCD: enabling SWD on STLINK-V3

Have you tried with the ST fork of openocd? They claim "STMicroelectronics is actively working at merging these modifications in the official OpenOCD". As of today, from my experience, you ...
Hugo Elbzh's user avatar
2 votes

How to upload image to flash of PSoC with openocd?

Look inside /usr/share/openocd. Words in italics refer to the subfolders of that: OpenOCD has so-called board scripts (TCL, of all languages!), which describe how to interface with some hardware. In ...
Marcus Müller's user avatar
2 votes

CJTAG Bit Banging - Just Erase the Flash

CJTAG CJTAG is defined in IEEE-Std-1149.7, an extension to JTAG. A TAP with .7 functionality is called a TAPC in the spec. Main idea behind 1149.7 is to provide alternate wire protocols for JTAG, ...
Nipo's user avatar
  • 1,543
1 vote
Accepted

OpenOCD throws "JTAG scan chain interrogation failed: all zeroes" error

This seems to have gotten rid of the errors for me Go to the config file for the raspberry pi interface, this is most likely located in: ...
Shandorius's user avatar
1 vote
Accepted

Openocd cannot find CMSIS-DAP device

Replugging the USB cable works. However, as flaky as USB generally is, this particular problem is not a USB issue. It is a bug in openocd that is addressed by a ...
personal_cloud's user avatar
1 vote

Debugging Cortex-M7 with data cache

The Cortex-M7 processor has internal flag that identifies debugger accesses as either cacheable, or non-cacheable. Non-cacheable is the default, and it causes all requests to bypass the data cache. ...
jpa's user avatar
  • 8,379
1 vote

Debugging STM32 with OpenOCD, STM32 for VSCODE won't work or flash, Configuration issue maybe?

Here its how i configured it (im able to debug step to step and place breakpoints with the SWD port & a stlink v2 usb on a STM32F103VE) on Windows 10 The important thing was to set the openocd ...
Tanguy's user avatar
  • 111
1 vote

Can't get Flyswatter2 probe to work with OpenOCD

The error message indicates that OpenOCD cannot connect to your debug probe. So as Chris Stratton already pointed out, the problem is related to the USB connection to the debug probe. The wiring ...
Codo's user avatar
  • 2,193
1 vote
Accepted

Live variable view using openOCD and VScode

I've tried using STM32CubeIDE and figured out that you can have Live Watch when using ST-link GDB server instead of OCD. Will test it on VScode and update.
eimvs's user avatar
  • 45
1 vote

Intermittent NVM programming error

Try increasing the adapter_nsrst_delay 100 to adapter_nsrst_delay 200 I had a similar problem on the RPi-3B and custom ...
brendanvanbreda's user avatar
1 vote

How to connect custom stm32 board to debugger

Check your board again, sometimes you can't image how funny u are. And Try this shell when use ST-LINK SWD mode: openocd_stlink.cfg:...
savent gate's user avatar
1 vote

How to connect custom stm32 board to debugger

I'd try the SVD file for STM32F429, as they are almost identical to the STM32F439, the only difference is that ...
followed Monica to Codidact's user avatar
1 vote

Programming a STM32F407 with a Raspberry PI: No answer on JTDO

First You need to connect all VDD pins on the MCU to 3.3V and all VSS pins to GND. The approach in general seems reasonable. If You are only starting I strongly suggest getting a Discovery oraz ...
jaskij's user avatar
  • 1,223
1 vote
Accepted

stm32f051 Overwritten reserved

I found a way to fix it. First I launched OpenOCD with some special flags: sudo openocd -f interface/stlink-v2.cfg -f target/stm32f0x.cfg -c init -c "reset halt" ...
A.Forbes's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible