2022-03-15 05:11 PM
Hi,
I recently updated:
I am having trouble with the Programmer not connecting to the targets either the Nucleo F411RE or the H7B3Li-DK. I have not tries any other types of boards.
Pushing the refresh button with ST_LINK Selected produces:
10:46:41 : ST-LINK error (DEV_CONNECT_ERR)
However the drop down control shows both the devices that are connected viz:
Pushing the Connect button for the Nucleo produces an error:
10:46:41 : ST-LINK error (DEV_CONNECT_ERR)
10:49:58 : ST-LINK SN : 066EFF535149756687093505
10:49:58 : ST-LINK FW : V2J39M27
10:49:58 : Board : NUCLEO-F411RE
10:49:58 : Voltage : 3.26V
10:49:59 : Error: No STM32 target found!
Doing this for the Discovery does the same:
10:51:30 : ST-LINK SN : 004D002A3438510634313939
10:51:30 : ST-LINK FW : V3J9M3
10:51:30 : Board : STM32H7B3I-DK
10:51:30 : Voltage : 3.29V
10:51:31 : No STM32 target found!
10:51:31 : ST-LINK SN : 004D002A3438510634313939
10:51:31 : ST-LINK FW : V3J9M3
10:51:31 : Board : STM32H7B3I-DK
10:51:31 : Voltage : 3.29V
10:51:31 : Error: No STM32 target found!
However I can update the ST-Link Firmware and on completion the USB notifies the virtual com port and windows file explorer opens.
The driver details are:
I have done the following in an attempt to rectify the situation:
This did not work so I uninstalled 1.9.0 and went back to 1.10.0.
Cube IDE is able to connect to both the Nucleo and Discovery and appears to work OK. SSTMSudio also works OK.
I have tried different US cables which all worked with CubeIDE, but not with the programmer. In any event the upgrade function works so if there was a problem with the USB port or cables the upgrade would also fail.
Could someone help me solve this.
There is also a problem with multiple connections (more than two), but I have already reported this.
Regards
Rob
Solved! Go to Solution.
2022-03-18 05:53 PM
Hi Mike,
I got it working by disconnecting STMStudio which I had running on another board.
Anyway here's the full story.
I tried setting it to 0, but I still get the same error. I then tried it on 1 and 2 but got the same result:
I thought that maybe my anti-virus programs had quarantined a .dll file or something so I turned the anti-virus programs off then uninstalled Programmer then reinstalled it.
I kept the antivirus programs off throughout the test.
I ran it as Admin and tried it on a Nucleo F411RE and the Discovery board STM32H7B3LI-DK. Didn't work.
I have made a video of my connection to the Discovery board including the firmware upgrade - attached.
What does the access port number do?
Are there any log files or other diagnostic info I could look for to help provide an answer?
I installed Programmer on my HP Netbook I7 and it works fine, so there is something with my desktop that is preventing Programmer running correctly. The Netbook has the same anti-virus programs, Norton 360 and Cylance.
Here is a screenshot of my desktop device manager showing the various ST Drivers. Two are shown, one is for STMStudio monitoring another project and the other is the Disco I'm testing Programmer on. I also ran Deployment Imaging service and SFC also shown below.
SFC picked up some errors so to ensure SFC had repaired them I ran it again and it found no issues.
I then tried it with the STMStudio usb removed so that on the test board was connected and et voila it works. I connected two disco's up ant that worked to, so it looks like STMStudio isn't behaving correctly.
Now I know that STMStudio is a legacy product and is probably no longer supported, but I have tried the new Monitor program, but I find it cumbersome to set up and the graphs are too limited to meet my needs. It will have to improve a lot before it comes anywhere near STMStudio which was a great product. It was simple to use, you had great control over graph scaling and number of points and the output file was easy to import into Matlab, Excel etc.
Best regards
Rob
Microsoft Windows [Version 10.0.19044.1586]
(c) Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>DISM.exe /Online /Cleanup-image /Restorehealth
Deployment Image Servicing and Management tool
Version: 10.0.19041.844
Image Version: 10.0.19044.1586
[==========================100.0%==========================] The restore operation completed successfully.
The operation completed successfully.
C:\WINDOWS\system32>SFC /scannow
Beginning system scan. This process will take some time.
Beginning verification phase of system scan.
Verification 100% complete.
Windows Resource Protection found corrupt files and successfully repaired them.
For online repairs, details are included in the CBS log file located at
windir\Logs\CBS\CBS.log. For example C:\Windows\Logs\CBS\CBS.log. For offline
repairs, details are included in the log file provided by the /OFFLOGFILE flag.
C:\WINDOWS\system32>SFC /scannow
Beginning system scan. This process will take some time.
Beginning verification phase of system scan.
Verification 100% complete.
Windows Resource Protection did not find any integrity violations.
C:\WINDOWS\system32>
2022-03-16 04:42 AM
Hello,
You've got a blank value for the Access Port.
Please set it to 0.
2022-03-18 05:53 PM
Hi Mike,
I got it working by disconnecting STMStudio which I had running on another board.
Anyway here's the full story.
I tried setting it to 0, but I still get the same error. I then tried it on 1 and 2 but got the same result:
I thought that maybe my anti-virus programs had quarantined a .dll file or something so I turned the anti-virus programs off then uninstalled Programmer then reinstalled it.
I kept the antivirus programs off throughout the test.
I ran it as Admin and tried it on a Nucleo F411RE and the Discovery board STM32H7B3LI-DK. Didn't work.
I have made a video of my connection to the Discovery board including the firmware upgrade - attached.
What does the access port number do?
Are there any log files or other diagnostic info I could look for to help provide an answer?
I installed Programmer on my HP Netbook I7 and it works fine, so there is something with my desktop that is preventing Programmer running correctly. The Netbook has the same anti-virus programs, Norton 360 and Cylance.
Here is a screenshot of my desktop device manager showing the various ST Drivers. Two are shown, one is for STMStudio monitoring another project and the other is the Disco I'm testing Programmer on. I also ran Deployment Imaging service and SFC also shown below.
SFC picked up some errors so to ensure SFC had repaired them I ran it again and it found no issues.
I then tried it with the STMStudio usb removed so that on the test board was connected and et voila it works. I connected two disco's up ant that worked to, so it looks like STMStudio isn't behaving correctly.
Now I know that STMStudio is a legacy product and is probably no longer supported, but I have tried the new Monitor program, but I find it cumbersome to set up and the graphs are too limited to meet my needs. It will have to improve a lot before it comes anywhere near STMStudio which was a great product. It was simple to use, you had great control over graph scaling and number of points and the output file was easy to import into Matlab, Excel etc.
Best regards
Rob
Microsoft Windows [Version 10.0.19044.1586]
(c) Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>DISM.exe /Online /Cleanup-image /Restorehealth
Deployment Image Servicing and Management tool
Version: 10.0.19041.844
Image Version: 10.0.19044.1586
[==========================100.0%==========================] The restore operation completed successfully.
The operation completed successfully.
C:\WINDOWS\system32>SFC /scannow
Beginning system scan. This process will take some time.
Beginning verification phase of system scan.
Verification 100% complete.
Windows Resource Protection found corrupt files and successfully repaired them.
For online repairs, details are included in the CBS log file located at
windir\Logs\CBS\CBS.log. For example C:\Windows\Logs\CBS\CBS.log. For offline
repairs, details are included in the log file provided by the /OFFLOGFILE flag.
C:\WINDOWS\system32>SFC /scannow
Beginning system scan. This process will take some time.
Beginning verification phase of system scan.
Verification 100% complete.
Windows Resource Protection did not find any integrity violations.
C:\WINDOWS\system32>