Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) Error: No STM32 target found (Read 7433 times)
RichardK
Junior Member
**
Offline


Posts: 47
Joined: Jul 11th, 2023
Error: No STM32 target found
Jul 29th, 2023 at 12:53pm
Print Post  
I have a vMicro project for the two STM board STM32 H7 using Visual Micro Release 2023.0507.14 - 26th July 2023.

These project is created using

   Generic STM32H7 series

After trying to upload, I get

   Uploading 'STM32-Nucleo-H7' to 'Generic STM32H7 Series (STMicroelectronics_GenH7)' using 'COM8'
   --------------------------------------------------------
   The uploader returned an error
   -------------------------------------------------------
                       STM32CubeProgrammer v2.13.0                  
   -------------------------------------------------------
   ST-LINK SN  : 0032004D3331510B33323639
   ST-LINK FW  : V3J5M2
   Board       : NUCLEO-H745ZI-Q
   Voltage     : 3.28V
   Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication
   2nd connect tentative with frequency (8MHz)
   ST-LINK SN  : 0032004D3331510B33323639
   ST-LINK FW  : V3J5M2
   Board       : NUCLEO-H745ZI-Q
   Voltage     : 3.28V

What do I have to do that the upload works?

Thanks 
Richard
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12166
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error: No STM32 target found
Reply #1 - Jul 29th, 2023 at 1:03pm
Print Post  
Provide the information requested in yellow above
  
Back to top
IP Logged
 
RichardK
Junior Member
**
Offline


Posts: 47
Joined: Jul 11th, 2023
Re: Error: No STM32 target found
Reply #2 - Jul 29th, 2023 at 1:24pm
Print Post  
Hi Tim,

attached are the requested Compiler Build Properties.

Thanks
Richard
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12166
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error: No STM32 target found
Reply #3 - Jul 29th, 2023 at 8:52pm
Print Post  
It shuld not normally need it but did you try holding the reset then uploading and letting the reset go just as upload is attempted?

Was this working for you in a previous version of visual micro?
  
Back to top
IP Logged
 
RichardK
Junior Member
**
Offline


Posts: 47
Joined: Jul 11th, 2023
Re: Error: No STM32 target found
Reply #4 - Jul 30th, 2023 at 12:26am
Print Post  
Sorry, but pressing the reset key didn't help.

I didn't try with a previous version.

Thanks
Richard
  
Back to top
 
IP Logged
 
RichardK
Junior Member
**
Offline


Posts: 47
Joined: Jul 11th, 2023
Re: Error: No STM32 target found
Reply #5 - Jul 30th, 2023 at 10:56am
Print Post  
I also tried a Arduino IDE 2.1.1 project. I get the same error messages:
Sketch uses 21620 bytes (16%) of program storage space. Maximum is 131072 bytes.
Global variables use 1248 bytes (0%) of dynamic memory, leaving 523040 bytes for local variables. Maximum is 524288 bytes.
      -------------------------------------------------------------------
                       STM32CubeProgrammer v2.13.0                  
      -------------------------------------------------------------------

ST-LINK SN  : 0032004D3331510B33323639
ST-LINK FW  : V3J5M2
Board       : NUCLEO-H745ZI-Q
Voltage     : 3.28V
Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication
2nd connect tentative with frequency (8MHz)
ST-LINK SN  : 0032004D3331510B33323639
ST-LINK FW  : V3J5M2
Board       : NUCLEO-H745ZI-Q
Voltage     : 3.28V
Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication
Failed uploading: uploading error: exit status 1

Richard
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Online


Posts: 2500
Joined: Feb 13th, 2019
Re: Error: No STM32 target found
Reply #6 - Jul 31st, 2023 at 9:36am
Print Post  
Can you try changing the board options below to see if this helps?

1) USB Support (if available): CDC (generic 'Serial' supersede U(S)ART)
2) Upload Method: STM32CubeProgrammer (DFU)
  
Back to top
IP Logged
 
RichardK
Junior Member
**
Offline


Posts: 47
Joined: Jul 11th, 2023
Re: Error: No STM32 target found
Reply #7 - Jul 31st, 2023 at 12:14pm
Print Post  
Where do I find these board options:

   Can you try changing the board options below to see if this helps?

     1) USB Support (if available): CDC (generic 'Serial' supersede U(S)ART)
     2) Upload Method: STM32CubeProgrammer (DFU) 

I see no "USB support" option. 

I see only a "option 6" with the optiions
   Upload Method: STM32CubeProgrammer (SWD)
   Upload Method: STM32CubeProgrammer (Serial)

Richard
  
Back to top
 
IP Logged
 
RichardK
Junior Member
**
Offline


Posts: 47
Joined: Jul 11th, 2023
Re: Error: No STM32 target found
Reply #8 - Jul 31st, 2023 at 12:15pm
Print Post  
Where do I find these board options:

   Can you try changing the board options below to see if this helps?

     1) USB Support (if available): CDC (generic 'Serial' supersede U(S)ART)
     2) Upload Method: STM32CubeProgrammer (DFU) 

I see no "USB support" option. 

I see only a "option 6" with the optiions
   Upload Method: STM32CubeProgrammer (SWD)
   Upload Method: STM32CubeProgrammer (Serial)

Richard
  
Back to top
 
IP Logged
 
RichardK
Junior Member
**
Offline


Posts: 47
Joined: Jul 11th, 2023
Re: Error: No STM32 target found
Reply #9 - Jul 31st, 2023 at 12:15pm
Print Post  
Please ignore my last mail. I confused the boards.

Sorry
Richard
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Online


Posts: 2500
Joined: Feb 13th, 2019
Re: Error: No STM32 target found
Reply #10 - Jul 31st, 2023 at 12:17pm
Print Post  
Thanks for the update, do you still have the same board package installed, and the same board selected?

  

Please Register or Login to the Forum to see File Attachments
Back to top
IP Logged
 
RichardK
Junior Member
**
Offline


Posts: 47
Joined: Jul 11th, 2023
Re: Error: No STM32 target found
Reply #11 - Jul 31st, 2023 at 4:52pm
Print Post  
yes, I still have the same boards installed and selected.

For my H7-Board, I have the option 3:

    USB Support (if available): None 

I changed option 8 to 

    Upload Method: STM32CubeProgrammer (DFU) 

I still get an error message:

   Program STM32-Nucleo-H7 size: 21604 bytes (used 16% of a 131072 byte maximum) (1,33 secs)
   Minimum Memory Usage: 1248 bytes (0% of a 524288 byte maximum)
 
   Uploading 'STM32-Nucleo-H7' to 'Generic STM32H7 Series  (STMicroelectronics_GenH7)' using 'COM8'
   Uploader started for board Generic STM32H7 Series (STMicroelectronics_GenH7)
   Upload method will be: bootloader
   Uploading via Bootloader 
   ls\2.2.1\win\busybox.exe sh ols\2.2.1/stm32CubeProg.sh" 2 nH7\Release/STM32-Nucleo-H7.ino.bin" 0x0
         ------------------------------------------------------------

   The uploader returned an error   
        ------------------------------------------------------------
                       STM32CubeProgrammer v2.13.0                  
      -------------------------------------------------------------
   Error: Target device not found
   Establishing connection with the device failed



Richard
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Online


Posts: 2500
Joined: Feb 13th, 2019
Re: Error: No STM32 target found
Reply #12 - Jul 31st, 2023 at 5:02pm
Print Post  
Does it change if you change Option 3 as requested then build and upload?

Also can you confirm you do have the Electrosmith Daisy Seed Board specifically? (or if it is some other variant with the STM32H7 chip on please confirm with a link which board it is)
  
Back to top
IP Logged
 
RichardK
Junior Member
**
Offline


Posts: 47
Joined: Jul 11th, 2023
Re: Error: No STM32 target found
Reply #13 - Jul 31st, 2023 at 5:20pm
Print Post  
The error message 

  with option 8: Upload Method STMCubeProgrammer (DFU)

is

   Program STM32-Nucleo-H7 size: 21604 bytes (used 16% of a 131072 byte maximum) (1,33 secs)
   Minimum Memory Usage: 1248 bytes (0% of a 524288 byte maximum)
 
   Uploading 'STM32-Nucleo-H7' to 'Generic STM32H7 Series (STMicroelectronics_GenH7)' using 'COM8'
   Uploader started for board Generic STM32H7 Series (STMicroelectronics_GenH7)
   Upload method will be: bootloader
   Uploading via Bootloader 
   ls\2.2.1\win\busybox.exe sh ols\2.2.1/stm32CubeProg.sh" 2 nH7\Release/STM32-Nucleo-H7.ino.bin" 0x0
      -------------------------------------------------------------

   The uploader returned an error
      -------------------------------------------------------------
                       STM32CubeProgrammer v2.13.0                  
     -------------------------------------------------------------
   Error: Target device not found
   Establishing connection with the device failed



My H7 Board is a

   Nucleo-H745ZI-Q NuH745ZIQ$AT3

However, this board is not offered in the option 1 list of board part numbers.

Richard
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Online


Posts: 2500
Joined: Feb 13th, 2019
Re: Error: No STM32 target found
Reply #14 - Jul 31st, 2023 at 5:51pm
Print Post  
Thanks for the update.

As the board does not seem to be supported by the board package, it is best to log this issue with the package creators on their GitHub page as they will be able to offer much more detailed and specific feedback as the developers of the package:
https://github.com/stm32duino/Arduino_Core_STM32/issues

They do have instructions on adding your own variant but this requires detailed understanding of the board and chip to do sucesfully:
https://github.com/stm32duino/Arduino_Core_STM32/wiki/Add-a-new-variant-(board)
  
Back to top
IP Logged
 
RichardK
Junior Member
**
Offline


Posts: 47
Joined: Jul 11th, 2023
Re: Error: No STM32 target found
Reply #15 - Aug 1st, 2023 at 12:30am
Print Post  
Thanks Simon,

I have seen on the github site that a request for H7 boards is pending.

Thank you very much for your immediate and helpful responses.
Richard
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint