These are chat archives for SmingHub/Sming

4th
Apr 2016
Patrick Jahns
@patrickjahns
Apr 04 2016 01:41

@hreintke

I found the evil culprit: ArduinoJson as you have implied before - #679 provides a fix - I am also open for different suggestions to future proof this

hreintke
@hreintke
Apr 04 2016 06:51
@patrickjahns : Great. Always takes a lot of energy from "nice activities" when you are searching for something like this.
Still strange that it happens to you and not to me/others. Will nee to keep it in the back of our minds to get to the difference between our environments.
Will look into your fix.
Patrick Jahns
@patrickjahns
Apr 04 2016 08:59

@hreintke
Don't tell me - these little things always takes lots of time - that's why I am still working on the file upload part. Came up with a couple of issues and needed to wrap my head around them.

Anyhow - the fix is quite simple - it seems that ArduinoJson 5.1 doesn`t use a class to provide String as fallback if Arduino is not defined, but a typedef. While this is acceptable behaviour for the compiler/linker - eclipse seems to have a problem with it :neutral_face:

The switch must have caused this little unforseen "problem"
Patrick Jahns
@patrickjahns
Apr 04 2016 16:27
Busy day - added a couple of other httpserver related features to Sming - will have another look at Multipart/Upload this week if I can
alonewolfx2
@alonewolfx2
Apr 04 2016 17:12
@patrickjahns multipart upload can be good for uploadig spiffy over web interface.
thanks for a couple PR
Patrick Jahns
@patrickjahns
Apr 04 2016 17:39
@alonewolfx2
that was one of the ideas - also instead of relying on a server for OTA, it would be possible to directly upload a new rom and a new filesystem
alonewolfx2
@alonewolfx2
Apr 04 2016 17:40
@patrickjahns yes its possible too
@patrickjahns also can be usable for arducam example for uploading picture to ftp or something like other services
Patrick Jahns
@patrickjahns
Apr 04 2016 17:53
@alonewolfx2
Actually I am not looking for a client implementation - just the server implementation currently - but when this is done, might have a look to enhance the client
?
But generally it would be good to have ftpclient and httpclient to be able to also upload files
to other servers
Different thought I had these days: It would be great to create a list with projects utilizing the Sming framework - that way people might find interesting projects and codebase to orientate themselves on
Yegor
@Bravo13
Apr 04 2016 18:45
Maybe someone can help to build my fw with rBoot. So, without rBoot I've got next size
This message was deleted

```#Memory / Section info:

Section| Description| Start (hex)| End (hex)|Used space

  data|        Initialized Data (RAM)|    FFE8000|    FFE8374|     884
rodata|           ReadOnly Data (RAM)|    FFE8378|    FFEABD4|   10332
   bss|      Uninitialized Data (RAM)|    FFEABD8|    FFF2088|   29872
  text|            Cached Code (IRAM)|    40100000|    0105C56|   23638
irom0_text| Uncached Code (SPI)| 40209000| 40249CB2| 265394
Total Used RAM : 41088
Free RAM : 40832
Free IRam : 9148```
with rBoot I've got error c:/espressif/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/5.1.0/../../../../xtensa-lx106-elf/bin/ld.exe: out/build/app_0.out section .irom0.text' will not fit in regionirom0_0_seg'
c:/espressif/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/5.1.0/../../../../xtensa-lx106-elf/bin/ld.exe: region `irom0_0_seg' overflowed by 130 bytes
collect2.exe: error: ld returned 1 exit status
make: * [out/build/app_0.out] Error 1
alonewolfx2
@alonewolfx2
Apr 04 2016 19:07
@patrickjahns ok ı will try when you done your work
Elmar
@elamre
Apr 04 2016 20:22
Hello all! :)
I'm very new to this "Sming" world
Just to get it straight, I need what exactly to flash my applications on the ESP? Ive got esptool, can't find esptool2
Dmitry Kireev
@kireevco
Apr 04 2016 20:22
@alonewolfx2 you areound?
Elmar
@elamre
Apr 04 2016 20:22
Followed the windows quickstart
Dmitry Kireev
@kireevco
Apr 04 2016 20:22
@alonewolfx2 Hi :)
Elmar
@elamre
Apr 04 2016 20:23
But I can't really find the way to get it actually on my device. It seems to build and all :)
for win,mac,linux
Elmar
@elamre
Apr 04 2016 20:23
Just the last step is somewhat vague to me
Riley
@ril3y
Apr 04 2016 20:23
@elamre welcome. Its usually more helpful if you post a specific question, list what errors you are getting etc.
@elamre I am newer to Sming too but just in general more details will be needed to help you out.
Elmar
@elamre
Apr 04 2016 20:24
Hi @ril3y !
I don't have any errors
Riley
@ril3y
Apr 04 2016 20:24
"the last step"
Elmar
@elamre
Apr 04 2016 20:24
I just dont know how to get the app.out on to my device
Riley
@ril3y
Apr 04 2016 20:24
Which is that?
Elmar
@elamre
Apr 04 2016 20:24
The step which is not described in the quickstart :D
Riley
@ril3y
Apr 04 2016 20:25
your make file should do it if you have it all configured for windows.
make flash
Dmitry Kireev
@kireevco
Apr 04 2016 20:25
need some testing for the toolchain
Riley
@ril3y
Apr 04 2016 20:25
if you are programming mode.
Elmar
@elamre
Apr 04 2016 20:25
I'm using eclipse, the building goes great
Riley
@ril3y
Apr 04 2016 20:26
@kireevco sweet.
@kireevco I just grabbed the mac version. I have never used gdb with the esp do you have some links to a getting started guide? What JTAG programmer do you use to debug? I have a J-LINK might this work?
robotiko
@robotiko
Apr 04 2016 20:26
@elamre in eclipse you should have a build option that is flash
@ril3y gdb is pure software no need to use ajtag
it works on serial
Riley
@ril3y
Apr 04 2016 20:27
oh for some reason i was thinkin openocd
duh!
robotiko
@robotiko
Apr 04 2016 20:28
there isa nice step by step tutorial
alonewolfx2
@alonewolfx2
Apr 04 2016 20:28
@kireevco hi man i am here now
:)
Elmar
@elamre
Apr 04 2016 20:28
Ah, I see the flash option! Grand :)
Its failing to connect now, I mightve broken the whole module. I accidentally lost power while flashing nodeMCU firmware
robotiko
@robotiko
Apr 04 2016 20:29
@elamre nodemcu?
Elmar
@elamre
Apr 04 2016 20:29
Well
No
Wait
robotiko
@robotiko
Apr 04 2016 20:29
it is usually much more robust than that
Elmar
@elamre
Apr 04 2016 20:29
I flashed something
Riley
@ril3y
Apr 04 2016 20:29
@elamre Its in programming mode I assume?
robotiko
@robotiko
Apr 04 2016 20:29
windows can get hung
Elmar
@elamre
Apr 04 2016 20:29
I got some shady tool from somewhere, let me find it
robotiko
@robotiko
Apr 04 2016 20:30
serial port sometimes get frozen
Elmar
@elamre
Apr 04 2016 20:30
Nothing detects it anymore
It is in programming mode
Riley
@ril3y
Apr 04 2016 20:30
k
Elmar
@elamre
Apr 04 2016 20:30
pin grounded and all
I flashed some AT firmware
thats it
Riley
@ril3y
Apr 04 2016 20:30
try a different usb port
Elmar
@elamre
Apr 04 2016 20:30
ESP_8266_BIN0.92
Thats the one
Then at 99%
It said:
Unable to release flash
Riley
@ril3y
Apr 04 2016 20:30
my mac goes a bit wonky and i have to do that.
Has anyone made HTTPS calls out from the ESP to a REST server?
Elmar
@elamre
Apr 04 2016 20:31
I'[ll try a different usb port
robotiko
@robotiko
Apr 04 2016 20:32
@ril3y yes ssl works
in sming nonos
Riley
@ril3y
Apr 04 2016 20:33
nonos?
sorry if that is obvious :)
robotiko
@robotiko
Apr 04 2016 20:34
non os sdk .. sming
then there is smingRTOS version
and ssl is not ported there yet
you have an ssl example
that connects to github api
Elmar
@elamre
Apr 04 2016 20:37
Getting closer by the day :D
By the second even
Or well
It doesnt find my bin file anymore now
SO i guess there is something else wrong :)
Riley
@ril3y
Apr 04 2016 20:38
@robotiko Perhaps I am looking in the wrong spot?
https://github.com/sming-framework/sming-examples ?
robotiko
@robotiko
Apr 04 2016 20:38
@elamre in some weird cases.. under windows .. USB gets so messup.. that just reboot fixes it
Elmar
@elamre
Apr 04 2016 20:38
So I just build all, then build flash init?
flash*
IOError: [Errno 2] No such file or directory: 'out/firmware/0x00000.bin'
make: * [flash] Error 255
robotiko
@robotiko
Apr 04 2016 20:38
@elamre flash init is to "format flash"
Elmar
@elamre
Apr 04 2016 20:38
Yeah sorry, i got confused for a second
Im using flash :)
Riley
@ril3y
Apr 04 2016 20:39
@elamre thats a path issue. I don't use eclipse so I can't really help on that one.
I dont mean system path
Elmar
@elamre
Apr 04 2016 20:40
I mean, Its not generating any .bin files
only .out.a and the map
robotiko
@robotiko
Apr 04 2016 20:40
@ril3y that is not offical repo
@ril3y hum...
the ssl code works
I tested..
Riley
@ril3y
Apr 04 2016 20:42
haha ok
robotiko
@robotiko
Apr 04 2016 20:42
SmingHub/Sming#596
but it is still in a PR
Riley
@ril3y
Apr 04 2016 20:42
I thought I was losing it cause i cannot find the example.
robotiko
@robotiko
Apr 04 2016 20:43
sorry I got confused with GDB
Riley
@ril3y
Apr 04 2016 20:43
haha
robotiko
@robotiko
Apr 04 2016 20:43
gdb tutorial
Riley
@ril3y
Apr 04 2016 20:44
Elmar
@elamre
Apr 04 2016 20:45
Anybody familiar with eclipse and esp? :) I can't really find why this error
Its not making the bin file
robotiko
@robotiko
Apr 04 2016 20:46
@elamre I have to leave
Elmar
@elamre
Apr 04 2016 20:46
Ah thats a bummer
THanks for your help :)
robotiko
@robotiko
Apr 04 2016 20:46
check the teh windows project mk paths
Elmar
@elamre
Apr 04 2016 20:47
And i have to build all?
Rebuild?
Or is the
flash, everyuthing?
robotiko
@robotiko
Apr 04 2016 20:48
if you change /update sming.. you need to rebuild it before building your project
Elmar
@elamre
Apr 04 2016 20:48
My sming is fine, and built. I just dont know how to get the .bin file generated
from my
Basic_blink
project
robotiko
@robotiko
Apr 04 2016 20:48
but if it is simply a tool path wthat is wrong.. should not be necessary to rebuild msing
so you build basic_blink and the error is ?
Elmar
@elamre
Apr 04 2016 20:49
Well
there is no eror building it
robotiko
@robotiko
Apr 04 2016 20:49
ok
Elmar
@elamre
Apr 04 2016 20:49
It acts as everything goes fine
But as soon as i hit the flash build option
robotiko
@robotiko
Apr 04 2016 20:49
so it completes
Elmar
@elamre
Apr 04 2016 20:49
Yes
Curtis Pope
@piperpilot
Apr 04 2016 20:49
can you paste the output of your project build?
Elmar
@elamre
Apr 04 2016 20:49
Its just not generating the bin to flash
robotiko
@robotiko
Apr 04 2016 20:50
if build completes without error..
Elmar
@elamre
Apr 04 2016 20:50

22:50:10 Incremental Build of configuration Sming for project Basic_Blink
make all
(!) Spiffs support disabled. Remove 'DISABLE_SPIFFS' make argument to enable spiffs.

22:50:10 Build Finished (took 126ms)

robotiko
@robotiko
Apr 04 2016 20:50
teh bin should be there
Elmar
@elamre
Apr 04 2016 20:50
Wait let me clean
robotiko
@robotiko
Apr 04 2016 20:50
eclipse caches teh folder
Elmar
@elamre
Apr 04 2016 20:50
Ahh
here we go
make: esptool2: Command not found
make: * [out/build/app.out] Error 127
Curtis Pope
@piperpilot
Apr 04 2016 20:50
you need esptool2
Elmar
@elamre
Apr 04 2016 20:50
I don't have esptool2, only esptool
robotiko
@robotiko
Apr 04 2016 20:50
wont show unless you force refresh
windows ?
Elmar
@elamre
Apr 04 2016 20:50
windows! :)
robotiko
@robotiko
Apr 04 2016 20:51
you should build it from raburton project
Yegor
@Bravo13
Apr 04 2016 20:51
@elamre do in cmd git clone https://github.com/raburton/esptool2.git
robotiko
@robotiko
Apr 04 2016 20:51
but as you will want to see soemthing flashed before :D
Yegor
@Bravo13
Apr 04 2016 20:51
cd to dir
and run make
robotiko
@robotiko
Apr 04 2016 20:52
and add the esptool path to the windows project mk in sming folder
I'm out now
Elmar
@elamre
Apr 04 2016 20:52
Thyanks so much for your help @robotiko !
Enjoy your evening
That solved it! Led is not so much blinking yet, but at least it flashes
:)\
hreintke
@hreintke
Apr 04 2016 20:58
@kireevco :
Are you still in ?
Elmar
@elamre
Apr 04 2016 21:16
Is there an accesspoint example?
Dmitry Kireev
@kireevco
Apr 04 2016 23:20
ok, I finished building 3 versions of sdk
so, 9 total
@hreintke yeah
This message was deleted
anyone else would be willing to test gcc 5.3 and gdb
just built it, hot off the stove