Skip to main content
RaphyLoulou
Associate
July 7, 2020
Question

What is BRG_NO_STLINK error on Cube Programmer?

  • July 7, 2020
  • 3 replies
  • 1548 views

Hello, I try flashing an STM32L451 MCU through bootloader with CAN port (proprietary board without other external access). I'm using Cube Programmer v2.4.0 with STLinkV3set used as CAN bridge, together with an external CAN transceiver (TCAN332). Despite many attemps with different settings, it's not possible to connect with MCU with CAN port. I don't even see any CAN frame on C_TX/C_RX signal. Cube Programmer always displays following message: "Error: ST-LINK error (BRG_NO_STLINK)". Does anyone knows the meaning of this error?

By the way I updated the STlinkV3 prior to try connecting (version is now V3J5M2B3S1) and the STlinkV3 works perfectly when using direct SWD access.

This topic has been closed for replies.

3 replies

Uwe Bonnes
Chief
July 8, 2020

STLINK-V3-BRIDGE> grep -r BRG_NO_STLINK

src/bridge/bridge.cpp:         return BRG_NO_STLINK;

src/bridge/bridge.cpp: * @retval #BRG_NO_STLINK If Brg::OpenStlink() not called before

Did you call Brg::OpenStlink() before?

RaphyLoulou
Associate
July 8, 2020

Hello Uwe,

Thanks for your answer. I already seen this piece of code somewhere on a GitHub project on the Web, but I'm not sure it belongs to Cube Programmer application.

On Cube Programmer we have no access to the function calls, only to a "Connect" button...

Marc1
Associate III
November 19, 2020

Could you solve your problem? I've the same problem.