I have updated the Arduino IDE to 1.8.5 and updated to the latest stm32arduino from github for compatibility with the Wire library (Wire.setClock). I was using quite an old installation before. A simple blinky uploads and works ok.
However there are now some warning messages that i don’t recall seeing before when I upload. What is the significance of these please ?
“””
Resetting USB to switch back to runtime mode
‘ping’ is not recognized as an internal or external command,
operable program or batch file.
‘mode’ is not recognized as an internal or external command,
operable program or batch file.
“””
Thanks
If this is till correct:
OS: Win10 Pro64
Arduino IDE: 1.6.5.r5
Arduino_STM32: Arduino_STM-master.zip 1-Feb-16
Board: BAITE blue pcb BTE14-07
CPU: STM32F103CBT6 (128k flash)
It sounds like the batch program that is attempting to upload the binary is not getting the OS tools path. Open a CMD and type set to view the environmental variables. The type “ping” and then type “mode” … both commands should resolve. If not, the issue is with CMD not properly picking up the system directory.
Upload scripts are defined here: https://github.com/rogerclarkmelbourne/ … .bat&type= and ARE OS-Centric.
Ray
‘ping’ is not recognised as an internal command …
‘mode’ is not recognised as an internal command …
So perhaps this is the origin of the warning messages in the IDE, though I don’t understand why uploading needs to use ping.
Microsoft intoduced something called WindowsPowerShell a while ago, and it seems ‘degraded’ the Command Prompt shell, in something ironically called the Creator update. Perhaps this is the root cause. I belive the ping and mode executables are still there, but are not in the path.
Perhaps I can add them to the path in the IDE/stm32duino .bat files. What .bat files do I need to look at, do you know ?
[IPA – Wed Mar 14, 2018 8:50 pm] –
…
Perhaps I can add them to the path in the IDE/stm32duino .bat files. What .bat files do I need to look at, do you know ?
Ummm…
Upload scripts are defined here: https://github.com/rogerclarkmelbourne/ … .bat&type= ARE OS-Centric.
I once, in a deep, dark corporate world, carried the title of MCSE. I have not seriously used Windows in years after hacking Win8.1 to my satisfaction, there was no way in hades that I was going to do the same with Win10. So, I’m Linux everywhere except one PC running Windows 10 Pro. I tried a command windows on my installation and both PING and MODE resolve. My PC is fully patched (just did the USA taxes.) Something is flaky. Did you try typing “set” as I requested to dump your PATH variable?
Ray
UPDATED … from my Win10 notebook (gosh, I feel so dirty … a bath after this post.)
Microsoft Windows [Version 10.0.16299.248]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\Users\Ray>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\Ray\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=DV2000
ComSpec=C:\WINDOWS\system32\cmd.exe
FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer
FPS_BROWSER_USER_PROFILE_STRING=Default
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\Ray
LOCALAPPDATA=C:\Users\Ray\AppData\Local
LOGONSERVER=\\DV2000
NUMBER_OF_PROCESSORS=2
OneDrive=C:\Users\Ray\OneDrive
OS=Windows_NT
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Users\Ray\AppData\Local\Microsoft\WindowsApps;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 13, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0f0d
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\Users\Ray\AppData\Local\Temp
TMP=C:\Users\Ray\AppData\Local\Temp
USERDOMAIN=DV2000
USERDOMAIN_ROAMINGPROFILE=DV2000
USERNAME=Ray
USERPROFILE=C:\Users\Ray
windir=C:\WINDOWS
C:\Users\Ray>
so in Linux,
stephen@i71:~/sketchbook/hardware/Arduino_STM32/tools$ grep -R -i ping linux*
does give pings in text like stopping
stephen@i71:~/sketchbook/hardware/Arduino_STM32/tools$ grep -R -i ping win/
Binary file win/libusb0.dll matches
Binary file win/texane-stlink/libusb-1.0.dll matches
win/maple_upload.bat: ping -w 50 -n 1 192.0.2.1 > nul
after this just text sub-strings
so what is 192.0.2.1? not on my network 192.168.1 based
is 192.0.2.* an ignored address ?
quick google and https://en.wikipedia.org/wiki/Private_n … ess_spaces says not
certainly not routed here
stephen@i71:~/sketchbook/hardware/Arduino_STM32/tools$ ping 192.0.2.1
PING 192.0.2.1 (192.0.2.1) 56(84) bytes of data.
^C
— 192.0.2.1 ping statistics —
37 packets transmitted, 0 received, 100% packet loss, time 36853ms
ps the win scripts have never ever been run on this system to the best of my knowledge
stephen
stephen
I noticed a warning “‘ping’ is not recognized as an internal or external command…” in the Arduino console window when uploading.
The stm32duino script ‘maple_upload.bat’ uses the OS ping and mode commands. On my Win10 Pro64 computer, Command Prompt no longer has access to ping or mode and gives ‘not recognised’ error. So when the Arduino IDE runs maple_upload.bat, the ‘not recognised’ error is shown in the console window. By comparison the Administrator Command Prompt, does have access to ping & mode. So running Arduino as Administrator gets around the issue, although to me it feels this shouldn’t be necessary.
I think this has come about due to a change made in a windows update a while back, and comming back to stm32duino programming after a break I have encountered the issue.
It does raise the question why is ping 192.0.2.1 being used in maple_upload.bat. To me it looks as though it is just used as a delay between successive use of the mode command. ARIN says 192.0.2.1 is unroutable, but perhaps 127.0.0.1 would be a better choice.
On a seperate note a few people on here have advocated using Linux for Arduino/stm32duino programming. I was put off by the unusual version number packaged in Mint, i.e. 2:1.0.5+dfsg2-4, what does that all mean ? So can someone share with me what Linux configuration they use for Arduino/stm32duino programming ? Then perhaps I will give it a try. Or is there a PPA that provides something similar to the current 1.8.5 provided for windows ?
Thanks again.
I believe there may be an official Ubuntu package, but I simply install the Linux 64bit version of the Arduino IDE (1.8.5) from -> https://www.arduino.cc/en/Main/Software
This appears to be sufficiently generic to work on your Linux Mint machine.
Obviously if you are using a 32bit machine, chose the 32bit version.
Simply download, and follow the instructions here -> https://www.arduino.cc/en/Guide/HomePage
I have also used the nightly builds in the past.
You could also use the portable version and transfer between ‘Doze and Linux with the same pen drive.
Instructions here -> https://www.arduino.cc/en/Guide/PortableIDE
as i understand, Mint ultimately derives from Debian, dfsg is something that appears frequently in debian package names.
according to friend G dfsg is Debian Free Software Guidelines
https://en.wikipedia.org/wiki/Debian_Fr … Guidelines
stephen
I love Linux and have been running it since Mint 17 and I’m on 18.3 now. But I also was a UNIX System Admin at one time and trained by at&t. So, I do not think I am the usual convert.
Essentially, your can run https://www.ubuntu.com/ or select from many distributions, all with some differences. I elected Mint because it gave me what I wanted without being too restrictive. https://linuxmint.com/
The above being said, I see absolutely no reason why you should jump OS simply because of a malfunctioning installation. As stated earlier, I installed Windows 10 back in January and upgraded with all patches so I could do my TurboTax without having to build out a Linux virtual machine. On that recently installed machine, ArduinoIDE + STM32duino runs perfectly.
For whatever reason your PC went bonkers, I suggest just correcting the installation. I am not giving Windows advice, but this post is very interesting: https://social.technet.microsoft.com/Fo … networking You may be able to create a new userID and give it the authority to properly execute utility software. Or maybe even just modify your default permissions: https://www.windowscentral.com/how-chan … windows-10
Ray
I should explain I am familiar with Linux, but I have never tried Arduino on Linux. That’s because the windows App has worked tolerably well, and because I am quite conservative when it comes to Apps.
I’ve used Unix since the early 80’s, Ubuntu since ~8.04 and switched to Mint when I couldn’t stand the Unity desktop any longer. Over the years I’ve wasted too much time building installs that have dependencies that are tedious or impossible to resolve, so I tend to stick to Packaged Apps, or PPA’s that are known to work or Installs that are known to work.
So thanks, I will give the Arduino Install a try. That being said I won’t be ditching Windows, there is a place for both in my view.
Incidentally the problem with the Win10 Pro64 command prompt seems to have affected a number of people, there are several posts on Youtube and elsewhere. Interestingly I have tried a Win10 Pro32 machine that has current updates, and that doesn’t have the command prompt problem.
So thanks again all for your help.
[IPA – Fri Mar 23, 2018 11:16 pm] –
…
Incidentally the problem with the Win10 Pro64 command prompt seems to have affected a number of people, there are several posts on Youtube and elsewhere. Interestingly I have tried a Win10 Pro32 machine that has current updates, and that doesn’t have the command prompt problem.
…
Microsoft apparently “feels” that W10-64 bit is their premier product, so tightening security is probable. As I do not “windows” anymore, I cannot comment between 32-bit and 64-bit operational difference.
Ray


