These are chat archives for SmingHub/Sming

13th
Dec 2015
laurentppol
@laurentppol
Dec 13 2015 00:23
Hi there, have You been thinking about adding support for FT800 LCD/touch/audio controller? Quick look at FTDI site shows it has Arduino support. And displays based on in are cheap (~50USD in Poland Allegro for 5").
Murli Shenoy
@hmms
Dec 13 2015 06:06
had a quick question, sorry to sound noobish. I'm adding developing a epaper display driver, for testing i was dropping the .c and the .h in the include directory, do i need to modify the makefile? it seems that it uses the wildcard function in the main makefile in the Sming directory. please help. thanks
laurentppol
@laurentppol
Dec 13 2015 07:00
In my IMHFYOF You needn to djust Makefie, to include all
Murli Shenoy
@hmms
Dec 13 2015 07:04
do i need to modify the makefile-user.mk then?
laurentppol
@laurentppol
Dec 13 2015 07:11
how??
BTW I Hhe 128x64 GLCD,with HD like interface, would You share Eagle files?
hreintke
@hreintke
Dec 13 2015 08:14
@hmms : you need to put the files in a source directory in order to compile them without updating makefile
aright
Richard Antony Burton
@raburton
Dec 13 2015 16:51
@kireevco i recently split out esptool2 and rboot into separate repos, so you'll probably want to update your sub module link for esptool2
Dmitry Kireev
@kireevco
Dec 13 2015 16:52
ah
crap
:-D
Richard Antony Burton
@raburton
Dec 13 2015 16:52
existing should still work though, because it points to a specific revision where it was still in there
Dmitry Kireev
@kireevco
Dec 13 2015 16:52
ok, that;s actually good.
I 'm doing some workarounds to build it form the old path
question. NONOS SDK=IOT SDK?
@raburton I need someone to test my build. I haven't tested anyhting yet )
it was just built.
@alonewolfx2 are you around?
Dmitry Kireev
@kireevco
Dec 13 2015 16:57
@alon24 would you like to test mac 1.4.0/1.5.0 sdk?
robotiko
@robotiko
Dec 13 2015 16:57
@kireevco NONOS SDK=IOT SDK
Richard Antony Burton
@raburton
Dec 13 2015 16:58
i can have a look with linux
whats the deal, how does this compare / contrast with esp open sdk and cherts udk?
Dmitry Kireev
@kireevco
Dec 13 2015 16:58
sizes of final packages are so different, but the build process is the same
@raburton it is an open process to build
it is cross platform
esp-open-sdk doesn't work on windows.
Up-to-date binary builds
robotiko
@robotiko
Dec 13 2015 17:01
@kireevco does it includes teh gdb?
Dmitry Kireev
@kireevco
Dec 13 2015 17:01
no was able to provide this
@robotiko not yet.
that was the next step:)
Richard Antony Burton
@raburton
Dec 13 2015 17:02
the linux build script is missing
only osx and windows there
Dmitry Kireev
@kireevco
Dec 13 2015 17:02
what should be the path?
which version are you looking at?
Richard Antony Burton
@raburton
Dec 13 2015 17:02
./env/ubuntu_10.sh according to your instructions
Dmitry Kireev
@kireevco
Dec 13 2015 17:02
ah
yeah
-work-in-progress.. .binary build is the goal right now
ok, added ubuntu env script
Richard Antony Burton
@raburton
Dec 13 2015 17:05
can't download binary, need password
Dmitry Kireev
@kireevco
Dec 13 2015 17:05
it has just built, one sec
lemme publish
try now
Richard Antony Burton
@raburton
Dec 13 2015 17:06
```
-2015-12-13 17:05:23--  https://bintray.com/artifact/download/kireevco/generic/esp-alt-sdk-1.5.0-linux-x86_64.tar.gz
Resolving bintray.com (bintray.com)... 75.126.17.2, 108.168.243.152
Connecting to bintray.com (bintray.com)|75.126.17.2|:443... connected.
HTTP request sent, awaiting response... 401 Unauthorized

Username/Password Authentication Failed.
Dmitry Kireev
@kireevco
Dec 13 2015 17:06
let's give it a sec.
to publish
try now?
Richard Antony Burton
@raburton
Dec 13 2015 17:07
downloading now
Dmitry Kireev
@kireevco
Dec 13 2015 17:08
ok.
Richard Antony Burton
@raburton
Dec 13 2015 17:15
works for building sming, basic_serial, basic_rboot and a standard sdk app i've been working on for someone
Dmitry Kireev
@kireevco
Dec 13 2015 17:15
good news.
phew
:-D
Richard Antony Burton
@raburton
Dec 13 2015 17:16
i notice it's 64bit though, do you plan to make a 32bit version?
hreintke
@hreintke
Dec 13 2015 17:16
@kireevco : hoe dependent is this on NONOS SDK ?
What if me move to RTOS SDK ?
Dmitry Kireev
@kireevco
Dec 13 2015 17:17
doesn't matter.
it's a multi-step integration process.
I'll download rtos
toolchain, (some)sdk, tools.
hreintke
@hreintke
Dec 13 2015 17:19
Still think we should make a separation between toolchain and sdk
Why rebuild toolchain every time you only get new sdk ?
Dmitry Kireev
@kireevco
Dec 13 2015 17:19
I don't see a problem
hreintke
@hreintke
Dec 13 2015 17:20
No problem in rebuilding or no problem in separation ?
Dmitry Kireev
@kireevco
Dec 13 2015 17:20
rebuilding
toolchain is also available separately
Richard Antony Burton
@raburton
Dec 13 2015 17:21
if it;s automatic and just generates a new download it doesn;t seem like a big deal to updte it each time
Dmitry Kireev
@kireevco
Dec 13 2015 17:22
it's fully automatic.
Richard Antony Burton
@raburton
Dec 13 2015 17:22
but rebuilding it yourself with takes half an hour if the only thing that has changed is the sdk would be annoying
i guess most users will download the binary though
so no problem
Dmitry Kireev
@kireevco
Dec 13 2015 17:22
I did huge work for making it build cross-platform
If needed, I can add a download step instead of building it. so partial build.
hreintke
@hreintke
Dec 13 2015 17:24
But are you preparing binary downloads for the toolchain ?
Richard Antony Burton
@raburton
Dec 13 2015 17:24
it's the windows bit that interests me, while i gave up on windows for esp a long time ago and i'm quite happy with esp-open-sdk, the mess of windows building and environments still causes me problems when other people use it
Dmitry Kireev
@kireevco
Dec 13 2015 17:24
yes.
@hreintke
it's the same project, just packaging smaller amount of files.
but it is just a side-build, that doens't run very often.
hreintke
@hreintke
Dec 13 2015 17:27
so downloading the binary toolchain and the sdk does the trick ?
Dmitry Kireev
@kireevco
Dec 13 2015 17:27
@hreintke just download full package.
there are some patches that are made on some versions
  • esptool2
+
hreintke
@hreintke
Dec 13 2015 17:27
what is more in the package than toolchain & sdk ?
that's the beauty. I don't do any magic beyond what's open
hreintke
@hreintke
Dec 13 2015 17:29
what patches are in NONOS SDK
Dmitry Kireev
@kireevco
Dec 13 2015 17:29
check the makefile, it's all different...
/c_types-c99.patch
libssl
it's pretty much same set of patches as in esp-open-sdk
in fact, It's @pfalcon's chunk of work
FRM_ERR_PATCH.rar:
    wget --content-disposition "http://bbs.espressif.com/download/file.php?id=10" --output-document $@
esp_iot_sdk_v0.9.3_14_11_21_patch1.zip:
    wget --content-disposition "http://bbs.espressif.com/download/file.php?id=73" --output-document $@
sdk095_patch1.zip:
    wget --content-disposition "http://bbs.espressif.com/download/file.php?id=190" --output-document $@
libssl.zip:
    wget --content-disposition "http://bbs.espressif.com/download/file.php?id=316" --output-document $@
libnet80211.zip:
    wget --content-disposition "http://bbs.espressif.com/download/file.php?id=361" --output-document $@
lib_patch_on_sdk_v1.1.0.zip:
    wget --content-disposition "http://bbs.espressif.com/download/file.php?id=432" --output-document $@
scan_issue_test.zip:
    wget --content-disposition "http://bbs.espressif.com/download/file.php?id=525" --output-document $@
1.1.2_patch_02.zip:
    wget --content-disposition "http://bbs.espressif.com/download/file.php?id=546" --output-document $@
libssl_patch_1.2.0-1.zip:
    wget --content-disposition "http://bbs.espressif.com/download/file.php?id=583" --output-document $@
libssl_patch_1.2.0-2.zip:
    wget --content-disposition "http://bbs.espressif.com/download/file.php?id=586" --output-document $@
libsmartconfig_2.4.2.zip:
    wget --content-disposition "http://bbs.espressif.com/download/file.php?id=585" --output-document $@
lib_mem_optimize_150714.zip:
    wget --content-disposition "http://bbs.espressif.com/download/file.php?id=594" --output-document $@
@robotiko which gdb is good for esp?
I'll add it to the build process.
hreintke
@hreintke
Dec 13 2015 17:36
Looks like just the sdk updates from espressif included in the "base sdk" correct ?
Dmitry Kireev
@kireevco
Dec 13 2015 17:37
what else could be included? some third-party you mean?
hreintke
@hreintke
Dec 13 2015 17:41
OK, when I read "Espressif NONOS SDK with patches" I get worried.
But if it is only espressif patches...
Dmitry Kireev
@kireevco
Dec 13 2015 17:41
just their. same as in esp-open-sdk
hreintke
@hreintke
Dec 13 2015 17:42
I have no experience with esp-open-sdk. I use UDK209
Dmitry Kireev
@kireevco
Dec 13 2015 17:43
@raburton which gdb source works with esp?
does that sound like any gdb on the dev machine and gdb stub on the esp/
?
isn't it just adding https://github.com/espressif/esp-gdbstub to your project and running gdb on your machine/
?
Dmitry Kireev
@kireevco
Dec 13 2015 17:58
or heard of it/
?
robotiko
@robotiko
Dec 13 2015 18:10
hi @kireevco sorry I was away for a while
about gdb
Dmitry Kireev
@kireevco
Dec 13 2015 18:10
no worries,
yeah
robotiko
@robotiko
Dec 13 2015 18:10
there gdbstub as been integrated in sming as PR
Dmitry Kireev
@kireevco
Dec 13 2015 18:11
ok,that's good.
what about xtensa-lx106-elf-gdb?
robotiko
@robotiko
Dec 13 2015 18:11
but gdbstub (espressif stuff) is missing the gdb bin from chip
Dmitry Kireev
@kireevco
Dec 13 2015 18:11
wait, what does it mean?
robotiko
@robotiko
Dec 13 2015 18:11
is not included in CHERTS either.. I just requested there
Dmitry Kireev
@kireevco
Dec 13 2015 18:11
so it is useless?
robotiko
@robotiko
Dec 13 2015 18:11
no
Dmitry Kireev
@kireevco
Dec 13 2015 18:11
ah
the binary, right?
for you dev
kk
robotiko
@robotiko
Dec 13 2015 18:12
In order to be useful the gdbstub has to be used in conjunction with an xtensa-lx106-elf-gdb, for example as generated by the esp-open-sdk project.
Dmitry Kireev
@kireevco
Dec 13 2015 18:12
that's what I'm asking, what's the binutils to build from?
esp-open-sdk uses crosstool-ng, and somehow produces the binary
robotiko
@robotiko
Dec 13 2015 18:12
that is taken from the gdbstub description
Dmitry Kireev
@kireevco
Dec 13 2015 18:13
(trying to build it right now
for ubuntu for now
robotiko
@robotiko
Dec 13 2015 18:13
no idea..
looks liek
Dmitry Kireev
@kireevco
Dec 13 2015 18:13
but it also look outdated. or not?
robotiko
@robotiko
Dec 13 2015 18:13
the Xtensa-gdb binary is available for linuc or mac or both
Dmitry Kireev
@kireevco
Dec 13 2015 18:13
hehe, windows is special.
robotiko
@robotiko
Dec 13 2015 18:14
I couldn't test becasue couldnt find windows one yet
Dmitry Kireev
@kireevco
Dec 13 2015 18:14
I want it to be built as a process
right now I'm building binutils from here https://github.com/fpoussin/esp-binutils.git
robotiko
@robotiko
Dec 13 2015 18:15
espressif points to esp-open-sdk project to obtain them ..
so I guess that is the one that these guys use
Dmitry Kireev
@kireevco
Dec 13 2015 18:16
eep-open-sdk is just integration. they use toolchain built by crosstool-ng
robotiko
@robotiko
Dec 13 2015 18:17
I'm quite lost here.. just followed your indications to install CHERTS .. months ago.. so far never needed anything else
:D
but I have everything ready .. to test the bin in Windows with sming..
just need the bin
so if you have it .. I can test it
Dmitry Kireev
@kireevco
Dec 13 2015 18:18
lol
robotiko
@robotiko
Dec 13 2015 18:20
lol
Dmitry Kireev
@kireevco
Dec 13 2015 18:38
Dmitry Kireev
@kireevco
Dec 13 2015 19:41
ok. gdb exe is there.
let's see
( @robotiko )
Dmitry Kireev
@kireevco
Dec 13 2015 19:47
uploading archive
for windows.
Dmitry Kireev
@kireevco
Dec 13 2015 19:54
extract it over your xtensa-lx106 directory
if that works, I'll add this to esp-alt-sdk
Dmitry Kireev
@kireevco
Dec 13 2015 20:09
someooone
:-D
ystrem
@ystrem
Dec 13 2015 20:12
hi
Dmitry Kireev
@kireevco
Dec 13 2015 20:12
what'supp
ystrem
@ystrem
Dec 13 2015 20:21
don't know :D
Dmitry Kireev
@kireevco
Dec 13 2015 20:21
are you on a mac
?
ystrem
@ystrem
Dec 13 2015 20:22
nope w10
robotiko
@robotiko
Dec 13 2015 20:22
@kireevco sorry.. didn't see it
I will try now
ystrem
@ystrem
Dec 13 2015 20:22
or ubuntu
robotiko
@robotiko
Dec 13 2015 20:22
thanks
Dmitry Kireev
@kireevco
Dec 13 2015 20:22
**gdb on windows?
@ystrem ok. do you want to try dgb?
(test)
ystrem
@ystrem
Dec 13 2015 20:23
sure
Dmitry Kireev
@kireevco
Dec 13 2015 20:29
@robotiko no idea if that gdb will work, so please try if you have a chance.
mingw binaries are so big... crazy
robotiko
@robotiko
Dec 13 2015 20:30
getting the test ready ..
seems that updated repo.. and the gdb is still in the separated PR
just need a few mins
Dmitry Kireev
@kireevco
Dec 13 2015 20:31
@alon24 building it for mac...
ystrem
@ystrem
Dec 13 2015 20:32
@kireevco ok, what should I do
Dmitry Kireev
@kireevco
Dec 13 2015 20:32
@ystrem see ^
download zip, extract
to xtensa-lx106
(make sure to make a backup first).
ystrem
@ystrem
Dec 13 2015 20:34
yeah ok , but I don't have working eclipse ...
Dmitry Kireev
@kireevco
Dec 13 2015 20:34
sorry, can't help with that part at all.
I'm just building it.
ystrem
@ystrem
Dec 13 2015 20:37
ok, I'll get it working and then write you
alon24
@alon24
Dec 13 2015 20:43
@kireevco I will tomorrow
robotiko
@robotiko
Dec 13 2015 20:53
@kireevco seems that the gdb exampel doesnt compile
@kireevco .. and this gdb is just for win 64
robotiko
@robotiko
Dec 13 2015 20:58
I'm in w32
Dmitry Kireev
@kireevco
Dec 13 2015 20:59
@robotiko ah... crap
so, compilation is notthing to do with the gdb, I guess,
Richard Antony Burton
@raburton
Dec 13 2015 21:08
@kireevco i've used your new sdk build to fix travis
thanks for doing that!
Dmitry Kireev
@kireevco
Dec 13 2015 21:19
@raburton alright, completely slipped out of the sight.
thank you :)
does it build? :-D lol
Richard Antony Burton
@raburton
Dec 13 2015 21:19
yep, working fine
hadn't been working for weeks
Dmitry Kireev
@kireevco
Dec 13 2015 21:19
@raburton awesome! @robotiko so I'm confused. toolchain worked and gdb.exe didnt?
same platform was used to build it
@robotiko
it is 32bit
or am I reading it wrong?
This message was deleted
robotiko
@robotiko
Dec 13 2015 21:43
?
I just added the gdb exe
Dmitry Kireev
@kireevco
Dec 13 2015 21:44
Oh, I thought you were initially testing full sdk
robotiko
@robotiko
Dec 13 2015 21:44
if I try to run the exe standalone (console shoudl work) It tells me that is not compatible with win32
full sdk or part .. is not win32
so wont run
robotiko
@robotiko
Dec 13 2015 21:51
@kireevco in your cluster there are win86 and win64 bins
Dmitry Kireev
@kireevco
Dec 13 2015 21:52
It is supposed to be i686
robotiko
@robotiko
Dec 13 2015 21:54
index at ci to see the available files?
Dmitry Kireev
@kireevco
Dec 13 2015 21:55
I'm away from pc now
So you've tried sdk binaries-same thing?
robotiko
@robotiko
Dec 13 2015 21:56
I have a nice popup from windows sayin gthat is not a valid exe for win32
Richard Antony Burton
@raburton
Dec 13 2015 21:58
@kireevco do you include make in your windows package?
i noticed it wasn't included in udk when I was testing it earlier today for someone, and i though how are you actually supposed to build anything without make?
robotiko
@robotiko
Dec 13 2015 22:00
@kireevco tried with soem other exes in bin .. all win64 incompatible
Dmitry Kireev
@kireevco
Dec 13 2015 22:40
@raburton you are supposed to have mingw)
robotiko
@robotiko
Dec 13 2015 22:40
@kireevco .. just found ..
Dmitry Kireev
@kireevco
Dec 13 2015 22:40
But I like that idea to make it self-consistent
robotiko
@robotiko
Dec 13 2015 22:40
thanks : jcmvbkbc, for providing an incompatible but interesting gdbstub for other Xtensa CPUs,
in the espressif gdbstub project
so i guess..
Dmitry Kireev
@kireevco
Dec 13 2015 22:40
@robotiko so just gdb? Interesting
It's about gdbsub, not gdb.exe
Richard Antony Burton
@raburton
Dec 13 2015 22:41
maybe it gets more than make from that then, not sure, i assume i'm picking up stuff from cygwin on my system
robotiko
@robotiko
Dec 13 2015 22:42
@kireevco what do you mean just gdb? the win32 incompatibility? no .. all package
what I just sent you is that expressif clearly states there that the gdbstub from jcmvbkbc wont work with esp12
esp
that is the one you were using, rigth?
Dmitry Kireev
@kireevco
Dec 13 2015 23:39
Gdbsub is the device side. I used binutils-xtensa-gdb
robotiko
@robotiko
Dec 13 2015 23:40
ok
just in case
so we will have to wait for win64 testing
as rigth now.. there is no build for win32
@kireevco BTW.. looks like CHERTS UDK is just build for x86
what makes sense
x86 will work on 64bits
but not the other way around
robotiko
@robotiko
Dec 13 2015 23:45
no real benefit of native 64 for this usage