No ST-LINK/V2 debug probe found connected to the USB port
I am using stm32CudeMX to generate a FW on a NUCLEO-G431RB board with the IAR workbench for ARM. IAR workbench version is 9.10.1.36323. The code was built without error, but the download failed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-01-14 10:47 AM
Step1: Start My project from ST Board:
Step 2: Selected the board and Start Project:
Step 3: In Project Manager, chose EWARM as Toolchain/IDE:
Step 4: Generate Code and Open Project:
Step 5: Built the code without errors:
Step 6: Downloaded the code and got Fatal error:
IAR product info:
- Labels:
-
IAR
-
STM32CubeMX
-
STM32G4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-01-14 11:55 AM
G431 is relative new, you need new stlink fw and tools to flash. I have similar troubles with first use this nucleo with IDE . Need upgrade stlink GDBserver and fw onboard stlink too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-01-14 12:11 PM
Thanks for the reply, very appreciated! I am really new to the STM32 family. Could you please be a bit more specific on how to upgrade stlink GDBserver and fw onboard stlink exactly?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-01-14 1:36 PM
Can you connect with STM32CubeProgrammer? Does it show up in device manager?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-01-14 11:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-01-17 8:27 AM
The STM32CubeProgammer download OK, but still getting the "No ST-LINK detected" problem:
The ST link show up in the device manager OK:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-01-17 9:10 AM
Download install and run STM32CubeProgammer after build in IAR
and try load with STM32CubeProgammer. When you done reconfig IAR to use external cmd flash and try STM32CubeProgammer_CLI
And your IDE screenshot have download success displayed, then your stlink is disconected by code run maybe you use SWD in code , then no debuger will work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-01-17 9:22 AM
Hi @CZhen.1​ ,
What you are sharing in the first picture is STM32CubeIDE interface, not STM32CubeProgrammer.
As far as IAR is concerned, check the options of your project (go to "Project" tab then "Options").
You need to make sure that ST-Link is selected at Debugger tab. Then, at Debugger>ST-Link, check the values set there.
Another way to make sure about the correct setup is to compare:
- the options of the project generated with STM32CubeMX
- the options of a ready to use example like STM32Cube_FW_G4\Projects\NUCLEO-G431RB\Examples\GPIO\GPIO_IOToggle\EWARM.
-Amel
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.
