Skip to main content
Associate III
Jun 10, 2026 4:49 PM UTC
Solved

Cannot debug JTAG device with address 45,10

Hi,

I have a system with 11 STM32 in a single JTAG chain. I’m trying to debug device with JTAG address 10,45 (JTAG device position 10, IR -pre-length of 45) and I’m getting this error message when running my launch configuration:

This is my entry in launch.json, my probe is a J-link:

{
            "type": "jlinkgdbtarget",
            "request": "launch",
            "name": "JTAG Launch Dev 10",
            "origin": "snippet",
            "cwd": "${workspaceFolder}",
            "preBuild": "${command:st-stm32-ide-debug-launch.build}",
            "runEntry": "main",
            "serverInterface": "JTAG",
            "serverJtagCfg": "45,10",
            "imagesAndSymbols": [
                {
                    "imageFileName": "${command:st-stm32-ide-debug-launch.get-projects-binary-from-context1}"
                }
               
            ]
        },
 
Debugging device 0,0 on the same chain works (has similar firmware written on STM32Cube extension for VSCode) from STM32CubeIDE extension for VSCode.
 
With the exception of 0,0 and 10,45, all other devices have been programmed and debugged from STM32CubeIDE 1.18 and they work. J-link commander can also correctly connect to all devices. This makes me suspect that the problem is within the STM32CubeIDE extension (maybe just limiting the numbers too much?).
 
Maybe I’m doing something wrong? I’ll be happy to provide extra information.
 
Thanks
Florent V
Florent VBest answer
ST Employee
Jun 11, 2026 8:19 AM UTC

Hi ​@Visques,

 

Indeed, the error is on our side.

Our step for validating the attributes is too aggressive and does not allow values above 10.

In the meantime, the simplest workaround is to launch J-Link from the command line and use the "attach" request to connect to the server.
Sorry for the inconvenience.

 

The attach debug configuration should look like this :

        {
"type": "jlinkgdbtarget",
"request": "attach",
"name": "STM32Cube: Launch JLink GDB Server",
"origin": "snippet",
"cwd": "${workspaceFolder}",
"preBuild": "${command:st-stm32-ide-debug-launch.build}",
"runEntry": "main",
"imagesAndSymbols": [
{
"imageFileName": "${command:st-stm32-ide-debug-launch.get-projects-binary-from-context1}"
}
],
"serverHost": "localhost",
"serverPort": "2331"
},

 Kind Regards,

/Flo

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

6 replies

Florent V
Florent VBest answer
ST Employee
Jun 11, 2026 8:19 AM UTC

Hi ​@Visques,

 

Indeed, the error is on our side.

Our step for validating the attributes is too aggressive and does not allow values above 10.

In the meantime, the simplest workaround is to launch J-Link from the command line and use the "attach" request to connect to the server.
Sorry for the inconvenience.

 

The attach debug configuration should look like this :

        {
"type": "jlinkgdbtarget",
"request": "attach",
"name": "STM32Cube: Launch JLink GDB Server",
"origin": "snippet",
"cwd": "${workspaceFolder}",
"preBuild": "${command:st-stm32-ide-debug-launch.build}",
"runEntry": "main",
"imagesAndSymbols": [
{
"imageFileName": "${command:st-stm32-ide-debug-launch.get-projects-binary-from-context1}"
}
],
"serverHost": "localhost",
"serverPort": "2331"
},

 Kind Regards,

/Flo

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
VisquesAuthor
Associate III
Jun 11, 2026 4:07 PM UTC

Thanks a lot for the quick reply. In the end I found a hardware workaround with minimal rework. Would this be fixed in a future update?

Florent V
ST Employee
Jun 12, 2026 8:24 AM UTC

Yes,
an internal ticket has been created, the fix is in progress and will be available in the next release.

BR,
/Flo

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
VisquesAuthor
Associate III
Jun 12, 2026 3:58 PM UTC

Great, thanks so much!

ST Employee
Jul 21, 2026 6:10 AM UTC

​@Visques 
The July update of STM32CubeIDE for Microsoft Visual Studio Code resolves this issue. Update the local setup to benefit from this improvement.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
VisquesAuthor
Associate III
Jul 21, 2026 10:33 PM UTC

Working great, thanks so much for the quick turnaround.