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:
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.
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?
2022-01-14 01:36 PM
Can you connect with STM32CubeProgrammer? Does it show up in device manager?
2022-01-14 11:50 PM
2022-01-17 08: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:
2022-01-17 09: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.
2022-01-17 09: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:
-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.