Sming - Open Source framework for high efficiency native ESP8266 development

User avatar
By xlh1460
#20286
alonewolfx2 wrote:propably your sdk version different. sming working correctly on sdk 1.0.1 for now.


You are exactly right.

I had forgotten that last time I installed this, I needed to "downgrade" the SDK to version esp_iot_sdk_v1.0.1_b1_15_04_02 before I could get the examples to work.

What was strange was that before downgrading, I didn't have any issues with compilation, just with the examples functioning on the device.

I took a closer look at the SDK that was included with the UDK (version 2.0.5) and saw that although it appeared to be the same version as that I downloaded from Espressif, esp_iot_sdk_v1.0.1_15_04_24, a couple of the libraries, including the one causing the error were different. I don't know why the same SDK contains different files. At least I have it compiling OK now.

Code: Select allC:\Espressif>dir ESP8266_SDK\lib
 Volume in drive C is Acer
 Volume Serial Number is 1664-C64B

 Directory of C:\Espressif\ESP8266_SDK\lib

08/06/2015  03:33 PM    <DIR>          .
08/06/2015  03:33 PM    <DIR>          ..
21/05/2015  09:52 PM           205,224 libat.a
24/04/2015  04:45 PM            12,714 libjson.a
21/05/2015  09:52 PM           299,764 liblwip.a
21/05/2015  09:52 PM           119,530 libmain.a
21/05/2015  09:52 PM           186,122 libnet80211.a
24/04/2015  04:45 PM           145,068 libphy.a
24/04/2015  04:45 PM           180,144 libpp.a
24/04/2015  04:45 PM            93,184 libsmartconfig.a
24/04/2015  04:45 PM            10,640 libssc.a
24/04/2015  04:45 PM           164,570 libssl.a
24/04/2015  04:45 PM            16,212 libupgrade.a
21/05/2015  09:52 PM           124,580 libwpa.a
              12 File(s)      1,557,752 bytes
               2 Dir(s)  806,960,488,448 bytes free

C:\Espressif>dir esp_iot_sdk_v1.0.1_15_04_24\lib
 Volume in drive C is Acer
 Volume Serial Number is 1664-C64B

 Directory of C:\Espressif\esp_iot_sdk_v1.0.1_15_04_24\lib

09/06/2015  09:23 PM    <DIR>          .
09/06/2015  09:23 PM    <DIR>          ..
24/04/2015  07:23 AM           205,224 libat.a
24/04/2015  05:45 AM            12,714 libjson.a
24/04/2015  05:45 AM           299,544 liblwip.a
24/04/2015  05:45 AM           109,456 libmain.a
24/04/2015  05:45 AM           185,970 libnet80211.a
24/04/2015  05:45 AM           145,068 libphy.a
24/04/2015  05:45 AM           180,144 libpp.a
24/04/2015  05:45 AM            93,184 libsmartconfig.a
24/04/2015  05:45 AM            10,640 libssc.a
24/04/2015  05:45 AM           164,570 libssl.a
24/04/2015  05:45 AM            16,212 libupgrade.a
24/04/2015  05:45 AM           124,464 libwpa.a
              12 File(s)      1,547,190 bytes
               2 Dir(s)  806,959,681,536 bytes free
User avatar
By anakod
#20539
propably your sdk version different. sming working correctly on sdk 1.0.1 for now.

Sming can work on different version, but SDK 1.0.1 with Sming is completely tested and really stable for end users.

I'm trying to read a slave (an arduino, with the Slave Sender template) from an esp8266...

Did you try read real I2C devices? If it will work ok, you should check your pul-ups resistors. I think 2.4 KOm should be good but better test different values. Arduino have different voltage, so resistors should be bigger resistance.
User avatar
By thehans
#20665 Hello, I'm unable to install sming on windows via chocolatey

Looks like a timeout for installing mingw-get? Is the url perhaps wrong or outdated, I don't really know how chocolatey works. Any help is appreciated.
Code: Select all2015-06-16 17:12:49,646 [INFO ] - ============================================================
2015-06-16 17:12:49,676 [INFO ] - Chocolatey v0.9.9.6
2015-06-16 17:12:49,886 [INFO ] - Chocolatey is unpacking required files for use. Overwriting? True
2015-06-16 17:13:36,769 [INFO ] - ============================================================
2015-06-16 17:13:36,799 [INFO ] - Chocolatey v0.9.9.6
2015-06-16 17:13:36,889 [INFO ] - Added kireevco - https://www.myget.org/F/kireevco-chocolatey/
2015-06-16 17:13:55,027 [INFO ] - ============================================================
2015-06-16 17:13:55,057 [INFO ] - Chocolatey v0.9.9.6
2015-06-16 17:13:55,127 [INFO ] - Installing the following packages:
2015-06-16 17:13:55,137 [INFO ] - sming
2015-06-16 17:13:55,137 [INFO ] - By installing you accept licenses for the packages.
2015-06-16 17:14:06,721 [INFO ] -
jre8 v8.0.45
2015-06-16 17:14:24,370 [INFO ] -  Java Runtime Environment 8.0.45 (32-bit) is already installed. Skipping downloa
2015-06-16 17:14:24,400 [INFO ] -  d and installation
2015-06-16 17:14:24,732 [INFO ] -  Downloading jre8 64 bit
2015-06-16 17:14:24,732 [INFO ] -    from 'http://javadl.sun.com/webapps/download/AutoDL?BundleId=106248'
2015-06-16 17:14:28,211 [INFO ] -  Installing jre8...
2015-06-16 17:14:44,688 [INFO ] -  jre8 has been installed.
2015-06-16 17:14:44,742 [INFO ] -  PATH environment variable does not have C:\Program Files\Java\jre1.8.0_45\bin in it. Adding...
2015-06-16 17:14:51,466 [INFO ] -  The install of jre8 was successful.
2015-06-16 17:14:51,476 [INFO ] -
eclipse-cpp v4.4.2
2015-06-16 17:14:52,314 [INFO ] -  Downloading eclipse-cpp 64 bit
2015-06-16 17:14:52,314 [INFO ] -    from 'http://ftp.halifax.rwth-aachen.de/eclipse//technology/epp/downloads/release/luna/SR2/eclipse-cpp-luna-SR2-win32-x86_64.zip'
2015-06-16 17:15:19,932 [INFO ] -  Extracting C:\Users\hans\AppData\Local\Temp\chocolatey\eclipse-cpp\eclipse-cppInstall.zip to C:\Program Files\Eclipse Foundation\4.4.2...
2015-06-16 17:15:19,949 [INFO ] -  Mode                LastWriteTime     Length Name                             
2015-06-16 17:15:19,953 [INFO ] -  ----                -------------     ------ ----                             
2015-06-16 17:15:19,957 [INFO ] -  d----        06/16/2015     17:15            4.4.2                             
2015-06-16 17:15:36,592 [INFO ] -  C:\Program Files\Eclipse Foundation\4.4.2
2015-06-16 17:15:36,612 [INFO ] -  Desktop Shortcut created pointing at 'C:\Program Files\Eclipse Foundation\4.4.2\eclipse\eclipse.exe'.
2015-06-16 17:15:36,852 [INFO ] -  'C:\Program Files\Eclipse Foundation\4.4.2\eclipse\eclipse.exe' has been pinned to the task bar on your desktop
2015-06-16 17:15:36,883 [INFO ] -  The install of eclipse-cpp was successful.
2015-06-16 17:15:36,903 [INFO ] -
esp8266-udk v2.0.1
2015-06-16 17:15:38,085 [INFO ] -  Downloading esp8266-udk 32 bit
2015-06-16 17:15:38,085 [INFO ] -    from 'http://programs74.ru/get.php?file=EspressifESP8266DevKit'
2015-06-16 17:15:49,240 [INFO ] -  Installing esp8266-udk...
2015-06-16 17:16:19,031 [INFO ] -  esp8266-udk has been installed.
2015-06-16 17:16:19,061 [INFO ] -  The install of esp8266-udk was successful.
2015-06-16 17:16:19,071 [INFO ] -
mingw v4.8.3.20141208
2015-06-16 17:16:19,349 [INFO ] -  Get-BinRoot is going to be deprecated by v1. Many packages no longer require it since the folders no longer have versions on them.
2015-06-16 17:16:19,841 [INFO ] -  Downloading mingw 64 bit
2015-06-16 17:16:19,841 [INFO ] -    from 'http://downloads.sourceforge.net/mingw-w64/x86_64-4.8.3-release-posix-seh-rt_v3-rev0.7z'
2015-06-16 17:17:07,853 [INFO ] -  Extracting C:\Users\hans\AppData\Local\Temp\chocolatey\mingw\mingwInstall.zip to C:\tools...
2015-06-16 17:17:07,870 [INFO ] -  Mode                LastWriteTime     Length Name                             
2015-06-16 17:17:07,874 [INFO ] -  ----                -------------     ------ ----                             
2015-06-16 17:17:07,877 [INFO ] -  d----        06/16/2015     17:17            tools                             
2015-06-16 17:18:22,403 [INFO ] -  C:\tools
2015-06-16 17:18:22,403 [INFO ] -  Adding 'C:\tools\mingw64' to the path and the current shell path
2015-06-16 17:18:22,423 [INFO ] -  PATH environment variable does not have C:\tools\mingw64\bin in it. Adding...
2015-06-16 17:18:22,513 [INFO ] -  The install of mingw was successful.
2015-06-16 17:18:22,533 [INFO ] -
mingw-get v1.0.3
2015-06-16 17:18:22,773 [INFO ] -  Get-BinRoot is going to be deprecated by v1. Many packages no longer require it since the folders no longer have versions on them.
2015-06-16 17:19:04,957 [ERROR] -  Exception calling "GetResponse" with "0" argument(s): "The operation has timed
2015-06-16 17:19:04,957 [ERROR] -  out"
2015-06-16 17:19:04,967 [ERROR] -  At C:\ProgramData\chocolatey\helpers\functions\Get-WebHeaders.ps1:77 char:37
2015-06-16 17:19:04,967 [ERROR] -  +     $response = $request.GetResponse <<<< ();
2015-06-16 17:19:04,977 [ERROR] -      + CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordE
2015-06-16 17:19:04,997 [ERROR] - The install of mingw-get was NOT successful.
2015-06-16 17:19:04,997 [ERROR] -     xception
2015-06-16 17:19:04,997 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\mingw-get\tools\chocolateyInstall.ps1'.
 See log for details.
2015-06-16 17:19:05,007 [ERROR] -      + FullyQualifiedErrorId : DotNetMethodException
2015-06-16 17:19:07,056 [INFO ] -
sming.core v0.0.4
2015-06-16 17:19:07,417 [INFO ] -  Get-BinRoot is going to be deprecated by v1. Many packages no longer require it since the folders no longer have versions on them.
2015-06-16 17:19:08,279 [INFO ] -  Downloading sming 32 bit
2015-06-16 17:19:08,279 [INFO ] -    from 'https://github.com/anakod/Sming/archive/master.zip'
2015-06-16 17:19:10,973 [INFO ] -  Extracting C:\Users\hans\AppData\Local\Temp\chocolatey\sming\smingInstall.zip to C:\tools\sming...
2015-06-16 17:19:10,983 [INFO ] -  Mode                LastWriteTime     Length Name                             
2015-06-16 17:19:10,993 [INFO ] -  ----                -------------     ------ ----                             
2015-06-16 17:19:10,993 [INFO ] -  d----        06/16/2015     17:19            sming                             
2015-06-16 17:19:14,482 [INFO ] -  C:\tools\sming
2015-06-16 17:19:15,935 [INFO ] -  The install of sming.core was successful.
2015-06-16 17:19:15,945 [INFO ] -
bc v1.06
2015-06-16 17:19:16,386 [INFO ] -  Get-BinRoot is going to be deprecated by v1. Many packages no longer require it since the folders no longer have versions on them.
2015-06-16 17:19:16,820 [INFO ] -  Downloading bc 32 bit
2015-06-16 17:19:16,820 [INFO ] -    from 'http://downloads.sourceforge.net/project/gnuwin32/bc/1.06-2/bc-1.06-2.exe'
2015-06-16 17:19:20,396 [INFO ] -  Installing bc...
2015-06-16 17:19:21,144 [INFO ] -  bc has been installed.
2015-06-16 17:19:21,184 [INFO ] -  The install of bc was successful.
2015-06-16 17:19:21,204 [INFO ] -
srecord v1.64
2015-06-16 17:19:21,584 [INFO ] -  Get-BinRoot is going to be deprecated by v1. Many packages no longer require it since the folders no longer have versions on them.
2015-06-16 17:19:22,037 [INFO ] -  Downloading srecord 32 bit
2015-06-16 17:19:22,037 [INFO ] -    from 'http://downloads.sourceforge.net/project/srecord/srecord-win32/1.64/srecord-1.64-win32.zip'
2015-06-16 17:19:27,087 [INFO ] -  Extracting C:\Users\hans\AppData\Local\Temp\chocolatey\srecord\srecordInstall.zip to C:\tools\mingw64\bin...
2015-06-16 17:19:27,500 [INFO ] -  C:\tools\mingw64\bin
2015-06-16 17:19:27,540 [INFO ] -  The install of srecord was successful.
2015-06-16 17:19:27,550 [INFO ] -
spiffy v1.0.3.05112015
2015-06-16 17:19:27,920 [INFO ] -  Get-BinRoot is going to be deprecated by v1. Many packages no longer require it since the folders no longer have versions on them.
2015-06-16 17:19:28,480 [INFO ] -  Downloading spiffy 32 bit
2015-06-16 17:19:28,480 [INFO ] -    from 'https://bintray.com/artifact/download/kireevco/generic/spiffy-1.0.3-win32-x86_64.zip'
2015-06-16 17:19:30,857 [INFO ] -  Extracting C:\Users\hans\AppData\Local\Temp\chocolatey\spiffy\spiffyInstall.zip to C:\tools\mingw64\bin...
2015-06-16 17:19:30,987 [INFO ] -  C:\tools\mingw64\bin
2015-06-16 17:19:31,027 [INFO ] -  The install of spiffy was successful.
2015-06-16 17:19:31,037 [INFO ] -
sming v1.0.5.20150507
2015-06-16 17:19:31,419 [INFO ] -  Get-BinRoot is going to be deprecated by v1. Many packages no longer require it since the folders no longer have versions on them.
2015-06-16 17:19:31,469 [INFO ] -  PATH environment variable does not have C:\tools\mingw64\bin;C:\tools\mingw64\msys\1.0\bin in it. Adding...
2015-06-16 17:19:31,579 [INFO ] -  Installing / updading required mingw packages
2015-06-16 17:19:31,609 [ERROR] -  Exception calling "Start" with "1" argument(s): "The system cannot find the fil
2015-06-16 17:19:31,609 [ERROR] -  e specified"
2015-06-16 17:19:31,609 [ERROR] -  At C:\ProgramData\chocolatey\helpers\functions\Start-ChocolateyProcessAsAdmin.p
2015-06-16 17:19:31,619 [ERROR] -  s1:76 char:43
2015-06-16 17:19:31,619 [ERROR] -  +   $s = [System.Diagnostics.Process]::Start <<<< ($psi)
2015-06-16 17:19:31,619 [ERROR] -      + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
2015-06-16 17:19:31,629 [ERROR] -      + FullyQualifiedErrorId : DotNetMethodException
2015-06-16 17:19:31,629 [ERROR] -  You cannot call a method on a null-valued expression.
2015-06-16 17:19:31,629 [ERROR] -  At C:\ProgramData\chocolatey\helpers\functions\Start-ChocolateyProcessAsAdmin.p
2015-06-16 17:19:31,639 [ERROR] -  s1:81 char:29
2015-06-16 17:19:31,639 [ERROR] -  +   $s.StandardError.ReadToEnd <<<< () | Out-File $errorFile
2015-06-16 17:19:31,639 [ERROR] -      + CategoryInfo          : InvalidOperation: (ReadToEnd:String) [], Runtime
2015-06-16 17:19:31,649 [ERROR] -     Exception
2015-06-16 17:19:31,649 [ERROR] -      + FullyQualifiedErrorId : InvokeMethodOnNull
2015-06-16 17:19:31,649 [ERROR] -  You cannot call a method on a null-valued expression.
2015-06-16 17:19:31,659 [ERROR] -  At C:\ProgramData\chocolatey\helpers\functions\Start-ChocolateyProcessAsAdmin.p
2015-06-16 17:19:31,659 [ERROR] -  s1:82 char:17
2015-06-16 17:19:31,669 [ERROR] -  +   $s.WaitForExit <<<< ()
2015-06-16 17:19:31,669 [ERROR] -      + CategoryInfo          : InvalidOperation: (WaitForExit:String) [], Runti
2015-06-16 17:19:31,679 [ERROR] -     meException
2015-06-16 17:19:31,679 [ERROR] -      + FullyQualifiedErrorId : InvokeMethodOnNull
2015-06-16 17:19:31,679 [ERROR] -  Get-Content : Cannot find path 'C:\Users\hans\AppData\Local\Temp\chocolatey\-er
2015-06-16 17:19:31,689 [ERROR] -  ror.stream' because it does not exist.
2015-06-16 17:19:31,689 [ERROR] -  At C:\ProgramData\chocolatey\helpers\functions\Start-ChocolateyProcessAsAdmin.p
2015-06-16 17:19:31,689 [ERROR] - The install of sming was NOT successful.
2015-06-16 17:19:31,689 [ERROR] -  s1:88 char:32
2015-06-16 17:19:31,699 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\sming\tools\chocolateyInstall.ps1'.
 See log for details.
2015-06-16 17:19:31,699 [ERROR] -  +       $innerError = Get-Content <<<<  $errorFile | Out-String
2015-06-16 17:19:31,709 [ERROR] -      + CategoryInfo          : ObjectNotFound: (C:\Users\hans\A...y\-error.stre
2015-06-16 17:19:31,709 [ERROR] -     am:String) [Get-Content], ItemNotFoundException
2015-06-16 17:19:31,709 [ERROR] -      + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetCo
2015-06-16 17:19:31,719 [ERROR] -     ntentCommand
2015-06-16 17:19:31,719 [ERROR] -  [ERROR] Running C:\tools\mingw64\bin\mingw-get.exe with install mingw32-base --
2015-06-16 17:19:31,719 [ERROR] -  reinstall --recursive was not successful. Exit code was '' Error Message: .
2015-06-16 17:19:31,729 [ERROR] -  At C:\ProgramData\chocolatey\helpers\functions\Start-ChocolateyProcessAsAdmin.p
2015-06-16 17:19:31,729 [ERROR] -  s1:92 char:10
2015-06-16 17:19:31,729 [ERROR] -  +     throw <<<<  $errorMessage
2015-06-16 17:19:31,739 [ERROR] -      + CategoryInfo          : OperationStopped: ([ERROR] Running...rror Messag
2015-06-16 17:19:31,739 [ERROR] -     e: .:String) [], RuntimeException
2015-06-16 17:19:31,739 [ERROR] -      + FullyQualifiedErrorId : [ERROR] Running C:\tools\mingw64\bin\mingw-get.e
2015-06-16 17:19:31,739 [ERROR] -     xe with install mingw32-base --reinstall --recursive was not successful. E 
2015-06-16 17:19:31,749 [ERROR] -    xit code was '' Error Message: .
2015-06-16 17:19:33,719 [WARN ] -
Chocolatey installed 8/10 package(s). 2 package(s) failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2015-06-16 17:19:33,729 [ERROR] - Failures:
2015-06-16 17:19:33,729 [ERROR] -  - mingw-get
2015-06-16 17:19:33,729 [ERROR] -  - sming