These are chat archives for SmingHub/Sming

28th
Feb 2016
zhivko
@zhivko
Feb 28 2016 13:24
@alonewolfx2 I just took latest sming rtos and it compiles OK - I was able also to upload firmware and for my sample it works OK.
but with RTOS SDK 1.3.0
alonewolfx2
@alonewolfx2
Feb 28 2016 13:58
@zhivko on windows?
alonewolfx2
@alonewolfx2
Feb 28 2016 14:21
blob
zhivko
@zhivko
Feb 28 2016 14:32
no - on linux
@alonewolfx2: you are testing sming rtos with rtos sdk 1.4 ?
HappyCodingRobot
@HappyCodingRobot
Feb 28 2016 14:39
A question on streams.. i want use a file input stream as jsonstream. Can some give me some hints?
*someone ..
hreintke
@hreintke
Feb 28 2016 14:40
@alonewolfx2 :
If you just commented out those lines, you will not be able to have debugf disabled
zhivko
@zhivko
Feb 28 2016 14:41
@hreintke: what is your opinion on slaffs gdb - is the plan to pull that in Sming rtos ? ENABLE_GDB... etc...?
alonewolfx2
@alonewolfx2
Feb 28 2016 14:44
@zhivko both. i tested 1.3 and 1.4. error is same
@hreintke i didnt disabled. that screenshot on old version that i have
i tried comment that line on new lastest repo but it didnt copiled
something wrong but i didnt figure that out
zhivko
@zhivko
Feb 28 2016 14:47
@alonewolfx2 : If I press F3 (declaration) in eclipse on setMPrintfPrinterCbc function in brings me to: m_printf.cpp
hreintke
@hreintke
Feb 28 2016 14:48
Yes, On early version that was commented out. Since 25 days it is in.
The patch to include the debugf behavior.
@zhivko :
That is the correct location.
alonewolfx2
@alonewolfx2
Feb 28 2016 14:49
@zhivko yes i saw same location on my system
zhivko
@zhivko
Feb 28 2016 14:50
It compiles on linux
you have imported this project Paths and symbols ?
I got this file from @hreintke actually ;)
@hreintke: is debugging works on rtos? I mean I could try following @slaff instructions from https://blog.attachix.com/live-debugging-with-open-source-tools-programming-for-esp8266-part-4/ ? Do you think it could work ?
hreintke
@hreintke
Feb 28 2016 14:52
The paths and symbols don't have effect on compiles, just eclipse "red lines"
alonewolfx2
@alonewolfx2
Feb 28 2016 14:53
i tried to include mprintf but same result
#include "../system/m_printf.h"
hreintke
@hreintke
Feb 28 2016 14:54
@zhivko : That needs the gdb stub patch from @slaff.
As soon as he PR's to SingRTOS I can merge that in.
alonewolfx2
@alonewolfx2
Feb 28 2016 15:00
@hreintke are you in windows or linux
hreintke
@hreintke
Feb 28 2016 15:01
windows
alonewolfx2
@alonewolfx2
Feb 28 2016 15:01
and lastest code compiling on you?
hreintke
@hreintke
Feb 28 2016 15:01
Yes
alonewolfx2
@alonewolfx2
Feb 28 2016 15:01
i am going to crazy :)
hreintke
@hreintke
Feb 28 2016 15:01
Sure you set SMING_HOME correct ?
alonewolfx2
@alonewolfx2
Feb 28 2016 15:03
yes
can you send your sming framework folder
zhivko
@zhivko
Feb 28 2016 15:08
I added:
USER_CFLAGS += -ggdb
USER_CFLAGS += -Og
to Makefile-user.mk
zhivko
@zhivko
Feb 28 2016 15:09
@hreintke: which exact gdb stub?
/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gdb ?
which file is it ?
hreintke
@hreintke
Feb 28 2016 15:09
I don't know, just look at the gdb PR from @slaff in the NONOS version
So there should be some code running on esp to make gdb connection to eclipse gdb...
alonewolfx2
@alonewolfx2
Feb 28 2016 15:13
@hreintke not compiling too
so its my own system environment issue right?
hreintke
@hreintke
Feb 28 2016 15:14
No I mean #350 and I don't know how it works :smile:
zhivko
@zhivko
Feb 28 2016 15:14
So probably we need to copy: https://github.com/SmingHub/Sming/tree/develop/Sming/gdbstub and integrate in sming rtos ?
hreintke
@hreintke
Feb 28 2016 15:15
see #350 what needs to be done, and that probably needs adaption for RTOS.
@alonewolfx2 :
That is most likely. Several people using SingRTOS and no-one has these or other compile issues.
alonewolfx2
@alonewolfx2
Feb 28 2016 15:20
@hreintke what is your udk version
hreintke
@hreintke
Feb 28 2016 15:22
209
Already a long time, no updates lately
alonewolfx2
@alonewolfx2
Feb 28 2016 15:23
i still have 206 i think
maybe this is problem
hreintke
@hreintke
Feb 28 2016 15:24
Would be surprised if that causes these kind of errors
alonewolfx2
@alonewolfx2
Feb 28 2016 15:25
i am trying lastest one
hreintke
@hreintke
Feb 28 2016 15:27
206 has a old version of g++
alonewolfx2
@alonewolfx2
Feb 28 2016 15:30
it isnt udk related
zhivko
@zhivko
Feb 28 2016 15:37
After reading PR350 gdb is too hard topic for me ... I will try play with external analog sensor LTC2400 :)
alonewolfx2
@alonewolfx2
Feb 28 2016 17:29
C+ libraries/Nextion/NexCrop.cpp
libraries/Nextion/NexCrop.cpp: In member function 'bool NexCrop::setPic(uint32_t)':
libraries/Nextion/NexCrop.cpp:37:25: error: 'utoa' was not declared in this scope
     utoa(number, buf, 10);
                         ^
make: *** [build/libraries/Nextion//NexCrop.o] Error 1

18:15:55 Build Finished (took 3s.257ms)
alonewolfx2
@alonewolfx2
Feb 28 2016 19:48
finally Nextion Hmi screen library ported into the smingRTOS
@hreintke did you remember our conversation about serial swap function ?
zhivko
@zhivko
Feb 28 2016 21:02
Hi guys! I am trying: SPISoft in rtos sming, but i don get CLK signals out...
I am using:
#define PIN_DO 5    /* Master In Slave Out */
#define PIN_DI 4    /* Master Out Slave In */
#define PIN_CK 15    /* Serial Clock */
#define PIN_SS 12    /* Slave Select */
        Ltc2400Spi = new SPISoft(PIN_DO, PIN_DI, PIN_CK, PIN_SS);
does anybody have idea what could be wrong...
I mean at least clk should be present...
zhivko
@zhivko
Feb 28 2016 21:35
Ugh.. forgot begin() ;)
zhivko
@zhivko
Feb 28 2016 22:13
OK ltc2400 reading works :)