These are chat archives for SmingHub/Sming

21st
Oct 2015
Richard Antony Burton
@raburton
Oct 21 2015 15:33
are we all moving here then?
Dmitry Kireev
@kireevco
Oct 21 2015 15:33
yaaaay
welcome @hreintke
@raburton was gitter badge changed?
hreintke
@hreintke
Oct 21 2015 15:36
hi, in here too
Richard Antony Burton
@raburton
Oct 21 2015 15:36
not by me, i didn't even know this room existed till I gitter suggested it to me
Dmitry Kireev
@kireevco
Oct 21 2015 15:37
well, it probably did not exits
:-D
Richard Antony Burton
@raburton
Oct 21 2015 15:38
i wondered if i'd created it by being the first person to join it, but there are a load of peoples icons in the top right already
hreintke
@hreintke
Oct 21 2015 15:40
I think also that that will be the one. At least I will name the Release 1.4.0
Dmitry Kireev
@kireevco
Oct 21 2015 15:45
give me 30 min
I need to get to my build environmetn
hreintke
@hreintke
Oct 21 2015 15:45
the link to alonewolfx2 gitter is also in the readme on sming main page.
@kireevco : can you update that too and and add a link to esp8266 sming forum ?
Dmitry Kireev
@kireevco
Oct 21 2015 15:46
Currently not that much time any more. I’ll do choco as it is important, and later readme.
Richard Antony Burton
@raburton
Oct 21 2015 15:47
i can fix the readme, it'll only take a min
Dmitry Kireev
@kireevco
Oct 21 2015 15:47
yea
use a link from «share this chat room»
Richard Antony Burton
@raburton
Oct 21 2015 15:47
k
hreintke
@hreintke
Oct 21 2015 15:47
but do you update also linux and mac quick install
Dmitry Kireev
@kireevco
Oct 21 2015 15:47
no, not now.
also: I will need an expected install flow that you guys planned
@alon24 I don’t know (yet) what’s wrong
alon24
@alon24
Oct 21 2015 15:49
HI
hreintke
@hreintke
Oct 21 2015 15:49
dont understand what install flow you mean ?
alon24
@alon24
Oct 21 2015 15:50
so i followed the install flow in sming wiki
Dmitry Kireev
@kireevco
Oct 21 2015 15:50
@hreintke well, users are supposed to run make spiffy and other commands, right?
or how?
cd /opt/
sudo git clone https://github.com/anakod/Sming.git
Dmitry Kireev
@kireevco
Oct 21 2015 15:51
@alon24 I was talking to @hreintke about something else
alon24
@alon24
Oct 21 2015 15:51
and when u put sming in opt it does not allow to do make on it
sorry
Dmitry Kireev
@kireevco
Oct 21 2015 15:51
@alon24 I will need to test esp-open-sdk
I was hoping it will work just lie that
also, can you please check files in the old 1.2 tgz and new 1.2.0 tgz? is there same amount or they looks the same?
hreintke
@hreintke
Oct 21 2015 15:55
according to MacOS quickstart you download https://bintray.com/artifact/download/kireevco/generic/esp-open-sdk-1.2-macos-x86_64.tar.. Is the 1.2.0 the same as the espressif sdk.1.2.0?
Dmitry Kireev
@kireevco
Oct 21 2015 15:55
tha’ts the last known sdk that works
yes,versioning is from espressif
same
hreintke
@hreintke
Oct 21 2015 15:56
afak we are already on espressif 1.3.0
Dmitry Kireev
@kireevco
Oct 21 2015 15:56
I’m not sure if you’re following, but I configured a ci job to build esp-open-sdk, and I’ve rebuilt 1.2.0,1.3.0, 1.4.0
yeah
so, that is the point, to build 1.3.0
for mac and linux
and @alon24 was testing my recent built
hreintke
@hreintke
Oct 21 2015 15:57
are you saying that all linux and mac users only used 1.2.0 up till now ?
Dmitry Kireev
@kireevco
Oct 21 2015 15:58
yep
well
no, some of them were building
hreintke
@hreintke
Oct 21 2015 16:02
we have to careful then. Most windows users are on 1.3.0 since early august.
Dmitry Kireev
@kireevco
Oct 21 2015 16:02
I know. IT’s hard to build it for macos, that’s why I’ve created a build cluster
that’s the missing part
CHERTS doesn’t care about linux or mac
:)
ok, chocolatey updated. ALL new installations will fail until the zip file is out
(i can disable them for now) -when will it be available?
@hreintke
I also removed spiffy dependency
spiffy binary dependency
@raburton @hreintke can you guys please provide me full expected installation procedure for a new user?
at least «on words» so I can make a quick start out of it
hreintke
@hreintke
Oct 21 2015 16:07
you mean here or a short doc ?
Dmitry Kireev
@kireevco
Oct 21 2015 16:07
any form
like steps
  • clone repo
  • do this
    do this
just for me, so I can understand
Richard Antony Burton
@raburton
Oct 21 2015 16:09
do you mean from a completely clean linux machine, or assuming esp-open-sdk installed and just getting sming itself going?
Dmitry Kireev
@kireevco
Oct 21 2015 16:09
well, lest’s skip open sdk
that part I know
Richard Antony Burton
@raburton
Oct 21 2015 16:10
cd Sming
hreintke
@hreintke
Oct 21 2015 16:10
In general terms
  • clone repo
  • cd SMING_HOME
  • make
    that creates libsming
    If spiffy needed
  • make spiffy
Richard Antony Burton
@raburton
Oct 21 2015 16:10
make
make spiffy
Dmitry Kireev
@kireevco
Oct 21 2015 16:10
where?
sorry, missed
ok
that’s for dev?
or stable too?
Richard Antony Burton
@raburton
Oct 21 2015 16:10
that's for master
Dmitry Kireev
@kireevco
Oct 21 2015 16:10
ok
hreintke
@hreintke
Oct 21 2015 16:10
parallel communication :smile:
Richard Antony Burton
@raburton
Oct 21 2015 16:10
for dev you add in git checkout develop before the make
Dmitry Kireev
@kireevco
Oct 21 2015 16:11
yeah, tha’t’s fine.
ok, so make and make spiffy is the things that are missing
ok, cool
and for windows? how do you see that?
hreintke
@hreintke
Oct 21 2015 16:11
same
Dmitry Kireev
@kireevco
Oct 21 2015 16:12
command lien?
*line
hreintke
@hreintke
Oct 21 2015 16:12
for "non commandline" we have make in eclipse for libsming.
I can add make spiffy to that
Dmitry Kireev
@kireevco
Oct 21 2015 16:14
not everyone is using eclipse, and you’ll have to update all project files
hreintke
@hreintke
Oct 21 2015 16:15
no not all projrct files, just "sming core" project
Dmitry Kireev
@kireevco
Oct 21 2015 16:16
ah
true, that’s a good idea then
hreintke
@hreintke
Oct 21 2015 16:16
we only have eclipse files in repo and that is what I use, no idea how others build (sorry)
Dmitry Kireev
@kireevco
Oct 21 2015 16:16
maybe something make init or similar would be a good idea
hreintke
@hreintke
Oct 21 2015 16:17
what would make init do ?
Dmitry Kireev
@kireevco
Oct 21 2015 16:17
make && make spiffy
&& make esptool2 ?
and anything else
IF that’s the way it goes
OR it will download binaries
later
hreintke
@hreintke
Oct 21 2015 16:18
there is no make esptool2, that is (not yet??) included
Dmitry Kireev
@kireevco
Oct 21 2015 16:18
(later later)
it will include ALL preparation steps
hreintke
@hreintke
Oct 21 2015 16:18
spiffy is only needed when you want spiffs
Dmitry Kireev
@kireevco
Oct 21 2015 16:18
true, but it doesn’t really hurt to be built
Richard Antony Burton
@raburton
Oct 21 2015 16:19
except it add an extra dependancy
alon24
@alon24
Oct 21 2015 16:19
@kireevco update - i put sming in a directory which i can build in (not/opt...) built sming, built spiffy from within sming , and all compiles ok\
Dmitry Kireev
@kireevco
Oct 21 2015 16:19
anyway, I don’t care right now, just advicate for lazy usesrs
Richard Antony Burton
@raburton
Oct 21 2015 16:19
to build spiffy requires gcc for the host system, not just gcc for the esp
Dmitry Kireev
@kireevco
Oct 21 2015 16:19
ahhh
@raburton good point
makes sense.
alon24
@alon24
Oct 21 2015 16:20
1.3 seems to work ok, did not flash yet (on mac)
hreintke
@hreintke
Oct 21 2015 16:20
PS not now, not needed for release just FYI
Dmitry Kireev
@kireevco
Oct 21 2015 16:21
YEah, I saw this, looks like the same as for arduino IDE, and I was wondering how they build their toolchains
if anyone finds any info - let me know, I’m still stuck with esp-open-sdk and windows
but as you see, they use binaries
hreintke
@hreintke
Oct 21 2015 16:22
The toolchains are in that repo. For windows, linux, mac
Dmitry Kireev
@kireevco
Oct 21 2015 16:22
which repo?
alon24
@alon24
Oct 21 2015 16:23
u can just ask the guy, i asked on the youtube video, and he is responsive
Dmitry Kireev
@kireevco
Oct 21 2015 16:23
I mean source
which guy
iggr?
Dmitry Kireev
@kireevco
Oct 21 2015 16:24
@hreintke I need source
alon24
@alon24
Oct 21 2015 16:24
no this is a different guy, i meant the one who wrote the eclipse plugin
Dmitry Kireev
@kireevco
Oct 21 2015 16:24
@hreintke how does he produce that toolchain?
Dmitry Kireev
@kireevco
Oct 21 2015 16:24
(although, of course, we could use that binary)
hreintke
@hreintke
Oct 21 2015 16:25
He is in the eclipse cdt development, managing
Dmitry Kireev
@kireevco
Oct 21 2015 16:26
I need to build toolchains same way as they did for arduino ide
alon24
@alon24
Oct 21 2015 16:26
never mind then!
hreintke
@hreintke
Oct 21 2015 16:27
are there licence issue on using theirs ?
Dmitry Kireev
@kireevco
Oct 21 2015 16:27
I don’t know, very likely. but it’s impossible to track changes in their archive
hreintke
@hreintke
Oct 21 2015 16:27
They are going to use them in eclipse arduino support -> maintained
Dmitry Kireev
@kireevco
Oct 21 2015 16:27
let’s say they change archive structure or something
or anything else.
if there is source, we can do everythign ourselves the way we want it
package, etc
but I might try using stuff from the archive
hreintke
@hreintke
Oct 21 2015 16:28
but doing ourself means support and effort
Dmitry Kireev
@kireevco
Oct 21 2015 16:29
doing ourselves = taking their build script and building
hreintke
@hreintke
Oct 21 2015 16:29
if the archive works, we can contact them on usage
not only, you will always have the discussion on issues when you use local build
not only... is remark on doing ourself...
Dmitry Kireev
@kireevco
Oct 21 2015 16:31
well, right now I’m trying to make esp-open-sdk work on windows. it is maintained by another guy, and it is an open build process
he maintains this project
hreintke
@hreintke
Oct 21 2015 16:32
maintaining what parts /
Dmitry Kireev
@kireevco
Oct 21 2015 16:33
the actual build part, crosstool-ng is separate, esptool is seaprate
@hreintke maybe you’re right from the effort standpoint, but from licensing Ardiono ESP is not good
hreintke
@hreintke
Oct 21 2015 16:34
he maintains build part for esp-ope-sdk based on "self supplied" crosstool ?
Dmitry Kireev
@kireevco
Oct 21 2015 16:34
crosstool is crosstool-ng
yep
but there is no sdk itself
Dmitry Kireev
@kireevco
Oct 21 2015 16:40
which I guess is just downloaded and extracted
hreintke
@hreintke
Oct 21 2015 16:40
sdk is espressif sdk. that's the one "included" in cherts
Richard Antony Burton
@raburton
Oct 21 2015 16:41
does sming use hardware timers?
Dmitry Kireev
@kireevco
Oct 21 2015 16:41
@hreintke yeah, so the only thing is missing in espressif sdk is xtensa toolchain
@hreintke right?
for sming we can bundle esptool2, spiffy and other tools if needed
hreintke
@hreintke
Oct 21 2015 16:42
@raburton not direct but HW_PWM uses, so HW_PWM cannot run together with hwtimers
Dmitry Kireev
@kireevco
Oct 21 2015 16:42
interesting, I might be able to build a nice package
Richard Antony Burton
@raburton
Oct 21 2015 16:43
hmm, i can't get hw_pwm to work
thought maybe there was a conflict with hardware pwm and sming
hreintke
@hreintke
Oct 21 2015 16:43
are you on open sdk 1.2.0 or espressif 1.3.0
Richard Antony Burton
@raburton
Oct 21 2015 16:43
This message was deleted
@hreintke me?
hreintke
@hreintke
Oct 21 2015 16:44
@raburton Yes
Richard Antony Burton
@raburton
Oct 21 2015 16:44
esp-open-sdk, with espressif sdk 1.3 and 1.4 (both fail in same way)
if i write a simple app in c i can use hw pwn just fine, when used with sming it hangs and resets as soon as you call pwm_init
hreintke
@hreintke
Oct 21 2015 16:47
I can give it a quick try tomorrow, just thought I remembered something from 1.2.0 -> 1.3.0 thats why the question
Dmitry Kireev
@kireevco
Oct 21 2015 16:47
@hreintke when 1.4.0 zip will be ready? FYI choco install is not working right now
hreintke
@hreintke
Oct 21 2015 16:48
Once we decide on GO for release
Dmitry Kireev
@kireevco
Oct 21 2015 16:48
like today-tomorrow?
alon24
@alon24
Oct 21 2015 16:49
what are the steps needed now in dev branch to build with rboot
Dmitry Kireev
@kireevco
Oct 21 2015 16:49
@alon24 good question
hreintke
@hreintke
Oct 21 2015 16:49
today no, I have to leave, tomorrow is OK if Richard can merge develop into master
Richard Antony Burton
@raburton
Oct 21 2015 16:49
same as in master, rBoot was integrated at the last release
Dmitry Kireev
@kireevco
Oct 21 2015 16:50
@raburton @hreintke can anyone please add something to Wiki?
Richard Antony Burton
@raburton
Oct 21 2015 16:50
yeah, if you want i can merge them now
@alon24 best option is to look at the Basic_rBoot sample
but basically to switch a non-spiffs app to rboot you just copy rom0.ld to your project and add the variables to Makefile-user.mk
with spiffs you need to decide where your spiffs will be on the rom and add a couple of lines to init to mount the correct one at boot
hreintke
@hreintke
Oct 21 2015 16:52
If Richard merges to masterer, I will update wiki for that and create release (tomorrow CET)
I am out. Talk later.
alon24
@alon24
Oct 21 2015 17:02
@raburton there used to be a step 0 - about disable spiffy in basic_rboot
thats gone now?
Richard Antony Burton
@raburton
Oct 21 2015 17:02
yep
alon24
@alon24
Oct 21 2015 17:03
also is there a way to add a make scheam for spiffy in smingframework in eclipse (like clean, build, and such)
Richard Antony Burton
@raburton
Oct 21 2015 17:03
@kireevco @hreintke ok it's merged, v1.4.0 is in master, and develop has been rebased on master so at the moment they are identical
from now on stuff goes into develop, to later be merged into master
unless there needs to be any emergency fixes for a dot dot release
alon24
@alon24
Oct 21 2015 17:10
@raburton where on mac is the def location rboot looks for esptool2?
meaning where to place it?
because I see # esptool2 path
ESPTOOL2 ?= esptool2
and it is in /usr/bin/esptool2
Richard Antony Burton
@raburton
Oct 21 2015 17:12
by default it will look in your path (because the esptool2 command is not qualified with a location)
but you can put it anywhere and set the ESPTOOL2 env var to point to it
alon24
@alon24
Oct 21 2015 17:13
I am asking because when I build I do not see the message I used to see on my win machine when building with rboot (my project)
20:12:53 **** Build of configuration Sming for project Basic_rBoot ****
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
xtensa-lx106-elf-gcc -Os -O3 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals  -D__ets__ -DICACHE_FLASH -DBOOT_BIG_FLASH  -c rboot-stage2a.c -o /Users/iklein/docker/sming-docker/workspace/Sming/Basic_rBoot/out/build/rboot-stage2a.o
LD /Users/iklein/docker/sming-docker/workspace/Sming/Basic_rBoot/out/build/rboot-stage2a.elf
FW /Users/iklein/docker/sming-docker/workspace/Sming/Basic_rBoot/out/build/rboot-hex2a.h
CC rboot.c
LD /Users/iklein/docker/sming-docker/workspace/Sming/Basic_rBoot/out/build/rboot.elf
FW /Users/iklein/docker/sming-docker/workspace/Sming/Basic_rBoot/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 'testfile.txt' to spiffs (40 bytes).

20:12:53 Build Finished (took 883ms)
Dmitry Kireev
@kireevco
Oct 21 2015 17:38
@hreintke cu
Richard Antony Burton
@raburton
Oct 21 2015 18:22
@alon24 the rBoot build is being used because it's adding the rBoot modules
but i don't see rBoot itself being built
is there a rom produced?
Richard Antony Burton
@raburton
Oct 21 2015 18:28
oh wait, yes I do see it
sorry, the huge paths confused me
what messages are you missing?
alon24
@alon24
Oct 21 2015 18:29
rboot.bin, rom0.bin, spiff_rom.bin
it used to display, using esptool2 .... in the build 1 time, after clean
Richard Antony Burton
@raburton
Oct 21 2015 18:30
i must have changed the labels to make them 2 chars, think tht was quite a while ago though
they show up as FW now in rBoot, E2 in sming rBoot build (not entirely consistent but never mind)
alon24
@alon24
Oct 21 2015 18:31
i do not understand "
they show up as FW now in rBoot, E2 in sming rBoot build (not entirely consistent but never mind)
"
Richard Antony Burton
@raburton
Oct 21 2015 18:32
at the start of the line
of the message
alon24
@alon24
Oct 21 2015 18:32
oh FW
k
I do not know what those letters mean
Richard Antony Burton
@raburton
Oct 21 2015 18:33
i'll change them to E2 at some point, not worth a commit just for that though
alon24
@alon24
Oct 21 2015 18:33
what does e2 mean?
Richard Antony Burton
@raburton
Oct 21 2015 18:34
it's short for esptool2
alon24
@alon24
Oct 21 2015 18:34
k
@raburton i just noticed that if I do clean on smingframework, it deltes spiffy and when I do rebuild on smingfRAMEWORK IT DOES NOT MAKE SPIFFY
so i need to go to cli to make spiffy, because there is no make shortcut in eclipse. so should it not just build spifffy when make on sming framework?
Richard Antony Burton
@raburton
Oct 21 2015 18:47
no, because you may not want to build spiffy
someone was going to add an eclipse target to build spiffy, can't remember who it was but probably @hreintke, if you can add one that would be appreciated
if you can do that and submit a pr quick against develop we can squeeze it into v1.4.0
alon24
@alon24
Oct 21 2015 18:50
I do not know how, but will try to look at it a bit later
Richard Antony Burton
@raburton
Oct 21 2015 18:52
have a look at the .project file, it's probably just a matter of copying one of the build target blocks at the bottom and changing the target from all to spiffy
if i commit something like that to develop can you test if for me in a minute?
alon24
@alon24
Oct 21 2015 18:54
k
tell me when
Richard Antony Burton
@raburton
Oct 21 2015 18:56
@alon24 done
alon24
@alon24
Oct 21 2015 18:57
takeing develop now
yes it workd, good job!
@raburton thanks
Richard Antony Burton
@raburton
Oct 21 2015 19:03
np