These are chat archives for SmingHub/Sming

23rd
Nov 2015
crosofg
@crosofg
Nov 23 2015 06:31
@hreintke I am getting this error
c:\tools\sming\sming\smingcore\platform\station.h:36:25: error: 'SC_TYPE_ESPTOUCH_AIRKISS' was not declared in this scope
upon building sming . where to declare that
alon24
@alon24
Nov 23 2015 06:44
question: does development branch now support esp sdk 1.4?
(because sming would not compile now with 1.3 on my mac), so is this amandatory move (I am ok with that)
alon24
@alon24
Nov 23 2015 07:12
since now I need to use esp 1.4, my sample project which is not rboot would not compile on my mac (and I cannot goto back to esp-sdk 1.3) - we need a solution here
09:10:54 **** Build of configuration Sming for project InfoScreens ****
make rebuild 
C+ app/InfoScreens.cpp
C+ app/application.cpp
C+ app/drivers/SSD1306_Driver.cpp
AR out/build/app_app.a
LD out/build/app.out

#Memory / Section info:
------------------------------------------------------------------------------

out/build/app.out:     file format elf32-xtensa-le

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .data         00000784  3ffe8000  3ffe8000  000000e0  2**4
                  CONTENTS, ALLOC, LOAD, DATA
  1 .rodata       00000cc4  3ffe8788  3ffe8788  00000868  2**3
                  CONTENTS, ALLOC, LOAD, DATA
  2 .bss          00006f60  3ffe9450  3ffe9450  00001530  2**4
                  ALLOC
  3 .irom0.text   000330a8  40209000  40209000  00007010  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  4 .text         00005adf  40100000  40100000  0000152c  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
------------------------------------------------------------------------------
# Generating image...
Traceback (most recent call last):
  File "/opt/esp-open-sdk-1.4.0/esptool/esptool.py", line 647, in <module>
    image.add_segment(e.get_symbol_addr(start), data)
  File "/opt/esp-open-sdk-1.4.0/esptool/esptool.py", line 384, in get_symbol_addr
    self._fetch_symbols()
  File "/opt/esp-open-sdk-1.4.0/esptool/esptool.py", line 381, in _fetch_symbols
    self.symbols[fields[2]] = int(fields[0], 16)
ValueError: invalid literal for int() with base 16: 'U'
make: *** [out/build/app.out] Error 1

09:10:56 Build Finished (took 1s.942ms)
alonewolfx2
@alonewolfx2
Nov 23 2015 07:36
@alon24 your example compiling but esptool cant recognize some command. please update esptool
alon24
@alon24
Nov 23 2015 07:46
how on a mac
where to get the updated esptool
I tried a week ago, and could not make this work, so I am asking where to get the correct one from
alon24
@alon24
Nov 23 2015 07:54
when getting the esptool from https://github.com/themadinventor/esptool I now get:
09:54:06 **** Build of configuration Sming for project InfoScreens ****
make rebuild 
C+ app/InfoScreens.cpp
C+ app/application.cpp
C+ app/drivers/SSD1306_Driver.cpp
AR out/build/app_app.a
LD out/build/app.out

#Memory / Section info:
------------------------------------------------------------------------------

out/build/app.out:     file format elf32-xtensa-le

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .data         00000784  3ffe8000  3ffe8000  000000e0  2**4
                  CONTENTS, ALLOC, LOAD, DATA
  1 .rodata       00000cc4  3ffe8788  3ffe8788  00000868  2**3
                  CONTENTS, ALLOC, LOAD, DATA
  2 .bss          00006f60  3ffe9450  3ffe9450  00001530  2**4
                  ALLOC
  3 .irom0.text   000330a8  40209000  40209000  00007010  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  4 .text         00005adf  40100000  40100000  0000152c  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
------------------------------------------------------------------------------
# Generating image...

A fatal error occurred: ELF binary has undefined symbol __errno
make: *** [out/build/app.out] Error 2

09:54:08 Build Finished (took 1s.454ms)
I just replaced the esptool.py
also tried replacing the whole esptool dir
so anyone with mac +sming development + esp-open-sdk 1.4 + project NOT rboot - can help?
I now see I am not the only one http://www.esp8266.com/viewtopic.php?p=34640
alon24
@alon24
Nov 23 2015 08:03
but how do i get esptool.py from there (https://github.com/igrr/esptool-ck)
Richard Antony Burton
@raburton
Nov 23 2015 08:33
I've opened an issue on esptool asking what the significance of this error is
in the mean time you can use esptool2 to build the rom, look at the command line used in the Makefile-rboot.mk, but change the boot mode to boot0
alon24
@alon24
Nov 23 2015 08:38
@raburton can u explain just a tad more, I realy did not get what I need to do here to solve this.sorry for being thick
robotiko
@robotiko
Nov 23 2015 09:19
@hreintke .. about the basic servo comment
Sming HW timer
where is it?
looks like HW_PWM is directly loading pwm.h
hreintke
@hreintke
Nov 23 2015 11:26
@robotiko :
Sorry, I was indeed wrongly referring to HW_PWM (which is already included) instead of HW_Timer.
But still I would prefer of implementing HW_timer within sming instead of within a library.
robotiko
@robotiko
Nov 23 2015 11:27
I do agree on that
Alexander V. Ribchansky
@avr39-ripe
Nov 23 2015 11:57
Hello! So do someone came to Sming/develop + sdk 1.4 + esp-opensdk + esptool.py error solution? Or just revert to older sming + sdk 1.3 ?
alon24
@alon24
Nov 23 2015 12:00
@avr39-ripe I only found - move the project to rboot, @raburton said to do something else, but I did not manage to understand what he meant
Alexander V. Ribchansky
@avr39-ripe
Nov 23 2015 12:01
@alon24 In meantime I have only esp-07 module with really small flash for rboot :(
alon24
@alon24
Nov 23 2015 12:02
sorry :(
Alexander V. Ribchansky
@avr39-ripe
Nov 23 2015 12:03
@alon24 noproblem :) will investigate further solution... if found one - post it here :)
Richard Antony Burton
@raburton
Nov 23 2015 12:19
@alon24 esptool2 can be used to create the rom image, run it and look at the command line options, you need to call it twice, once to expert the irom section and once to export the rest.
Hw timer should be trivial to implement, I'd have done it myself but they don't work on any of my devices!
alonewolfx2
@alonewolfx2
Nov 23 2015 12:38
@avr39-ripe esp-07 has 512k flash and you can use with rboot but without spiffs. i am using like this.
robotiko
@robotiko
Nov 23 2015 12:52
@all anyone is using gpio9 as output without resets on esp-12e?
alon24
@alon24
Nov 23 2015 12:57
@alonewolfx2 did u get a chance to look at gpio9?
alonewolfx2
@alonewolfx2
Nov 23 2015 13:06
not yet due to shipping
alon24
@alon24
Nov 23 2015 13:07
:(
Alexander V. Ribchansky
@avr39-ripe
Nov 23 2015 13:08
@alonewolfx2 I need spiffs in my project..
alon24
@alon24
Nov 23 2015 13:56
@all @robotiko and I have been working on a new lib for displaying infoscreen on ssd1306 with button control, please take a look: https://github.com/alon24/InfoScreens
Alexander V. Ribchansky
@avr39-ripe
Nov 23 2015 14:04
@raburton can you please provede esptool.py compat example hot to use esptool2 to generate 0x0000.bin & 0x9000.bin with esptool2 ? thanks!
@raburton who is who? who is 0x0000.bin and who is 0x9000? in which file should I export irom?
Alexander V. Ribchansky
@avr39-ripe
Nov 23 2015 14:19
esptool2 -bin -boot0 ./app.out 0x00000.bin .text .data .rodata
esptool2 -lib ./app.out 0x09000.bin
Maximiliano Duarte
@domonetic
Nov 23 2015 17:01
Hi!. some help to start from scratch?
Alexander V. Ribchansky
@avr39-ripe
Nov 23 2015 17:37
@domonetic do you have hardware? can you connect it to PC? can you see something on terminal? if so, just try some sming examples as blynk, meteoconfig, networkconfig.. they are good starting point... then just pick some example and try to extend it..
Maximiliano Duarte
@domonetic
Nov 23 2015 17:43
@avr39-ripe i use with AT command, but need more complex use. I install sming but not see anythink in eclipse
Alexander V. Ribchansky
@avr39-ripe
Nov 23 2015 18:03
@domonetic do you install C development Tools for eclipse? if so try in Eclipse New - Makefile project with existing code and point it to some sming example
@domonetic in fact you do not need eclipse to start.. just go to some examples dir and type "make' and then "make flash"
what is your OS? if windows - sorry here.. I'm on freebsd :( cant help with win specific install
Maximiliano Duarte
@domonetic
Nov 23 2015 18:43
@avr39-ripe yes windows. thanks probe again and again......
hreintke
@hreintke
Nov 23 2015 19:33
@domonetic :
Did you import the sming projects into eclipse ?
Alex
@zdrc
Nov 23 2015 23:23
I have two different ESP-201 modules each loaded with the same user firmware. Within that code there is no call to establish the module as a soft AP. I only call WifiStation.enable(true). However it seems as if one of the modules is also establishing itself as a soft AP. Why is this happening and how can I stop it?