These are chat archives for SmingHub/Sming

17th
Aug 2016
psychegr
@psychegr
Aug 17 2016 13:09
@hreintke well it looks like i was drinking the past few days. Having limited Internet access helped also. So i did some research today and ended up in the m_printf.cpp file where the setMPrintfPrinterCbc function is declared. Also in the HardwareSerial the same function is called and sets this to uart_tx_one_char. So my question is this. What if i implement the Telnet::systemDebugOutput(bool) and pass a function that sends a string maybe? Would i have a recursive loop again? Recursive loop is when a function calls it self again and again. Correct?
Andriy Petrynchyn
@petrynchyn
Aug 17 2016 14:16
Hi all, i updated Unofficial Development Kit for Espressif ESP8266 v2.1.0 from 17.08.2016 (chlog: +Update RTOS SDK v1.4.2 ) and SMING RTOS, when compiling projects writes: 15:36:35 Build of configuration Sming for project Basic_Blink
make all
C+ app/application.cpp
AR out/build/app_app.a
LD out/build/app.out
c:/Espressif/ESP8266_RTOS_SDK/lib\libmain.a(app_main.o): In function flash_data_check': (.irom0.text+0x54c): undefined reference touser_rf_cal_sector_set'
c:/Espressif/ESP8266_RTOS_SDK/lib\libmain.a(app_main.o): In function flash_data_check': (.irom0.text+0x62d): undefined reference touser_rf_cal_sector_set'
collect2.exe: error: ld returned 1 exit status
make: * [out/build/app.out] Error 1
psychegr
@psychegr
Aug 17 2016 14:25
There must be a way to redirect both os_printf and debugf.
hreintke
@hreintke
Aug 17 2016 17:42
@petrynchyn :
SmingRTOA is not yet compatible with Espressif RTOS SDK.
The error you get is related to that.
hreintke
@hreintke
Aug 17 2016 18:25

@psychegr :
Once more : NO it cannot, but if you want to try just do it.
The recursion is as I already stated above :

  • There is a debugf statement
  • That is sent to the tcp/telnet/udp -> network connection.
  • The sending of that debugf output triggers debugf statements
  • Those are sent to the tcp/telnet/udp -> network connection
  • The sending of that debugf output triggers debugf statements
  • .......

You can see in the debug & telnet class how I implemented those.