These are chat archives for SmingHub/Sming

16th
Nov 2015
alon24
@alon24
Nov 16 2015 07:14
make rebuild 
OC out/build/libmain2.a
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C /Users/iklein/docker/sming-docker/workspace/Sming/Sming/rboot
CC rboot-stage2a.c
LD /Users/iklein/docker/sming-docker/workspace/SmartCarWithOTA/out/build/rboot-stage2a.elf
E2 /Users/iklein/docker/sming-docker/workspace/SmartCarWithOTA/out/build/rboot-hex2a.h
CC rboot.c
LD /Users/iklein/docker/sming-docker/workspace/SmartCarWithOTA/out/build/rboot.elf
E2 /Users/iklein/docker/sming-docker/workspace/SmartCarWithOTA/out/firmware/rboot.bin
C+ app/CarCommand.cpp
C+ app/application.cpp
C+ app/configuration.cpp
CC /Users/iklein/docker/sming-docker/workspace/Sming/Sming/rboot/appcode/rboot-api.c
In file included from /Users/iklein/docker/sming-docker/workspace/Sming/Sming/rboot/appcode/rboot-api.c:16:0:
/opt/esp-open-sdk-1.4.0/sdk/include/mem.h:5:0: error: "os_free" redefined [-Werror]
 #define os_free(s)        vPortFree(s, "", 0)
 ^
In file included from /Users/iklein/docker/sming-docker/workspace/Sming/Sming/system/include/rboot-integration.h:11:0,
                 from /Users/iklein/docker/sming-docker/workspace/Sming/Sming/rboot/appcode/rboot-api.c:10:
/Users/iklein/docker/sming-docker/workspace/Sming/Sming/system/include/esp_systemapi.h:79:0: note: this is the location of the previous definition
 #define os_free     vPortFree
 ^
In file included from /Users/iklein/docker/sming-docker/workspace/Sming/Sming/rboot/appcode/rboot-api.c:16:0:
/opt/esp-open-sdk-1.4.0/sdk/include/mem.h:6:0: error: "os_malloc" redefined [-Werror]
 #define os_malloc(s)      pvPortMalloc(s, "", 0)
 ^
In file included from /Users/iklein/docker/sming-docker/workspace/Sming/Sming/system/include/rboot-integration.h:11:0,
                 from /Users/iklein/docker/sming-docker/workspace/Sming/Sming/rboot/appcode/rboot-api.c:10:
/Users/iklein/docker/sming-docker/workspace/Sming/Sming/system/include/esp_systemapi.h:78:0: note: this is the location of the previous definition
 #define os_malloc   pvPortMalloc
 ^
In file included from /Users/iklein/docker/sming-docker/workspace/Sming/Sming/rboot/appcode/rboot-api.c:16:0:
/opt/esp-open-sdk-1.4.0/sdk/include/mem.h:9:0: error: "os_zalloc" redefined [-Werror]
 #define os_zalloc(s)      pvPortZalloc(s, "", 0)
 ^
In file included from /Users/iklein/docker/sming-docker/workspace/Sming/Sming/system/include/rboot-integration.h:11:0,
                 from /Users/iklein/docker/sming-docker/workspace/Sming/Sming/rboot/appcode/rboot-api.c:10:
/Users/iklein/docker/sming-docker/workspace/Sming/Sming/system/include/esp_systemapi.h:80:0: note: this is the location of the previous definition
 #define os_zalloc   pvPortZalloc
 ^
/Users/iklein/docker/sming-docker/workspace/Sming/Sming/rboot/appcode/rboot-api.c: In function 'rboot_set_config':
/Users/iklein/docker/sming-docker/workspace/Sming/Sming/rboot/appcode/rboot-api.c:43:2: error: too many arguments to function 'pvPortMalloc'
  buffer = (uint8*)os_malloc(SECTOR_SIZE);
  ^
In file included from /Users/iklein/docker/sming-docker/workspace/Sming/Sming/system/include/rboot-integration.h:11:0,
                 from /Users/iklein/docker/sming-docker/workspace/Sming/Sming/rboot/appcode/rboot-api.c:10:
/Users/iklein/docker/sming-docker/workspace/Sming/Sming/system/include/esp_systemapi.h:71:14: note: declared here
 extern void *pvPortMalloc(size_t xWantedSize);
              ^
/Users/iklein/docker/sming-docker/workspace/Sming/Sming/rboot/appcode/rboot-api.c:62:2: error: too many arguments to function 'vPortFree'
  os_free(buffer);
  ^
In file included from /Users/iklein/docker/sming-docker/workspace/Sming/Sming/system/include/rboot-integration.h:11:0,
                 from /Users/iklein/docker/sming-docker/workspace/Sming/Sming/rboot/appcode/rboot-api.c:10:
/Users/iklein/docker/sming-docker/workspace/Sming/Sming/system/include/esp_systemapi.h:74:13: note: declared here
 extern void vPortFree(void *ptr);
             ^
/Users/iklein/docker/sming-docker/workspace/Sming/Sming/rboot/appcode/rboot-api.c: In function 'rboot_write_flash':
/Users/iklein/docker/sming-docker/workspace/Sming
this is in development, and sdk 1.4
how can i fix this?
alon24
@alon24
Nov 16 2015 07:26
this is on mac
hreintke
@hreintke
Nov 16 2015 07:33
@alon24 :
Develop has no SDK1.4.0 support yet. Fixing by either :
  • Use SDK 1.3.0
  • Add PR #389 to your environment
alon24
@alon24
Nov 16 2015 07:40
1.30 works for this, but now with 1.3.0 httpServer_websocket has issue:
09:40:06 **** Build of configuration Sming for project HttpServer_WebSocket ****
make rebuild 
C+ app/application.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         00000350  3ffe8000  3ffe8000  000000e0  2**4
                  CONTENTS, ALLOC, LOAD, DATA
  1 .rodata       00001b94  3ffe8350  3ffe8350  00000430  2**3
                  CONTENTS, ALLOC, LOAD, DATA
  2 .bss          000074c8  3ffe9ee8  3ffe9ee8  00001fc8  2**4
                  ALLOC
  3 .irom0.text   000367ca  40209000  40209000  000076b0  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  4 .text         000056df  40100000  40100000  00001fc4  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
------------------------------------------------------------------------------
# Generating image...
Traceback (most recent call last):
  File "/opt/esp-open-sdk-1.3.0/esptool/esptool.py", line 647, in <module>
    image.add_segment(e.get_symbol_addr(start), data)
  File "/opt/esp-open-sdk-1.3.0/esptool/esptool.py", line 384, in get_symbol_addr
    self._fetch_symbols()
  File "/opt/esp-open-sdk-1.3.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
(on a mac)
Dmitry Kireev
@kireevco
Nov 16 2015 07:43
I don’t think esptool.py is supported
@hreintke ?
hreintke
@hreintke
Nov 16 2015 07:48
We have seen an issue with version of esptool (up till now only on windows).
Solution there was upgrade to UDK208 which includes the new version of esptool (date 21-7-15)
I don't know about version content of esp-open-sdk
alon24
@alon24
Nov 16 2015 08:06
this is ofcourse on mac, so there is no UDK here (thats only on windwos)
Dmitry Kireev
@kireevco
Nov 16 2015 08:07
@alon24 you could download esptool from it’s repo
Now with downloaded esptool.py from site i get
10:11:07 **** Build of configuration Sming for project HttpServer_WebSocket ****
make rebuild 
C+ app/application.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         00000350  3ffe8000  3ffe8000  000000e0  2**4
                  CONTENTS, ALLOC, LOAD, DATA
  1 .rodata       00001bac  3ffe8350  3ffe8350  00000430  2**3
                  CONTENTS, ALLOC, LOAD, DATA
  2 .bss          000074c0  3ffe9f00  3ffe9f00  00001fe0  2**4
                  ALLOC
  3 .irom0.text   000369d2  40209000  40209000  000076c0  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  4 .text         000056df  40100000  40100000  00001fdc  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

10:11:08 Build Finished (took 1s.187ms)
Dmitry Kireev
@kireevco
Nov 16 2015 08:12
there you go. experiments complications :-D
time to lock external tools versions
@alon24 what did you do to break it?
how was it working before?
alon24
@alon24
Nov 16 2015 08:14
before I did not check on mac :)
(not this project)
hreintke
@hreintke
Nov 16 2015 08:47
@alon24 :
didyou use the esptool.py I just attached ?
Isn'tpyhon supposed to work on multiple environments ?
alon24
@alon24
Nov 16 2015 08:47
I tried both
both had issues with that project (which is NOT rboot)
now i returned to original esptool, and made the project rboot - and it compiles
#### overridable rBoot options ####
## use rboot build mode
RBOOT_ENABLED ?= 1
## enable big flash support (for multiple roms, each in separate 1mb block of flash)
RBOOT_BIG_FLASH ?= 1
## two rom mode (where two roms sit in the same 1mb block of flash)
#RBOOT_TWO_ROMS  ?= 1
## size of the flash chip
SPI_SIZE        ?= 4M
## output file for first rom (.bin will be appended)
#RBOOT_ROM_0     ?= rom0
## input linker file for first rom
#RBOOT_LD_0      ?= rom0.ld
## these next options only needed when using two rom mode
#RBOOT_ROM_1     ?= rom1
#RBOOT_LD_1      ?= rom1.ld
## size of the spiffs to create
SPIFF_SIZE      ?= 65536
## option to completely disable spiffs
#DISABLE_SPIFFS  = 1
## flash offsets for spiffs, set if using two rom mode or not on a 4mb flash
## (spiffs location defaults to the mb after the rom slot on 4mb flash)
#RBOOT_SPIFFS_0  ?= 0x100000
#RBOOT_SPIFFS_1  ?= 0x300000
## esptool2 path
#ESPTOOL2        ?= esptool2
10:48:59 **** Build of configuration Sming for project HttpServer_WebSocket ****
make rebuild 
OC out/build/libmain2.a
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C /Users/iklein/docker/sming-docker/workspace/Sming/Sming/rboot
CC rboot-stage2a.c
LD /Users/iklein/docker/sming-docker/workspace/Sming/HttpServer_WebSockets/out/build/rboot-stage2a.elf
E2 /Users/iklein/docker/sming-docker/workspace/Sming/HttpServer_WebSockets/out/build/rboot-hex2a.h
CC rboot.c
LD /Users/iklein/docker/sming-docker/workspace/Sming/HttpServer_WebSockets/out/build/rboot.elf
E2 /Users/iklein/docker/sming-docker/workspace/Sming/HttpServer_WebSockets/out/firmware/rboot.bin
C+ app/application.cpp
CC /Users/iklein/docker/sming-docker/workspace/Sming/Sming/rboot/appcode/rboot-api.c
CC /Users/iklein/docker/sming-docker/workspace/Sming/Sming/rboot/appcode/rboot-bigflash.c
AR out/build/app_app.a
LD out/build/app_0.out
E2 out/firmware/rom0.bin
Checking for spiffs files
files directory exists. Creating out/firmware/spiff_rom.bin
Creating rom 'out/firmware/spiff_rom.bin' of size 0x10000 (65536) bytes.
Adding files in directory 'files'.
Added 'index.html' to spiffs (1637 bytes).

10:49:00 Build Finished (took 1s.88ms)
its ok to say projects need to be rboot, rboot is great, lets just give suggested value to put in the make file
alon24
@alon24
Nov 16 2015 09:55
I am having issues with JUST AccessPoint mode (esp sdk 1.3) can someone say that JUST AP mode (not statiaion+ap) works ok (for more than 5 mins), I do not have access to a regular network here, and it is not working with just ap mode
it resets connection after a few mis
resets tcp connection after a few minutes, so that I cannot see my index.html
alonewolfx2
@alonewolfx2
Nov 16 2015 11:25
@alon24 I will test it tonight
alon24
@alon24
Nov 16 2015 11:28
yes ok, nothing (no project works ok in just AP mode, run through a few now
tried HttpServer_Config too
alon24
@alon24
Nov 16 2015 12:16
opened SmingHub/Sming#430