These are chat archives for SmingHub/Sming

13th
Jun 2017
slaff
@slaff
Jun 13 2017 07:32

error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Werror=literal-suffix]

@HappyCodingRobot Get the latest code from git. Then make sure that our build system patches the files. This can be done with the following sequence of commands under Linux (Windows should be similar)

cd $SMING_HOME
make dist-clean

Not you can start building the library or your sample projects.

Alexander V. Ribchansky
@avr39-ripe
Jun 13 2017 08:53
@slaff Can you please point me how to change files under .patches dir in third-party I need to change patch for lwip and cant figure out how to make diff then.. thanks!
HappyCodingRobot
@HappyCodingRobot
Jun 13 2017 08:58
@slaff thx :)
Alexander V. Ribchansky
@avr39-ripe
Jun 13 2017 11:55
@slaff Thanks! Create PR for sdk 2.1.0 compat #1153
slaff
@slaff
Jun 13 2017 12:00
@avr39-ripe Thanks for that. Please, make sure that the existing tests are passing.
Alexander V. Ribchansky
@avr39-ripe
Jun 13 2017 12:03
@slaff tests are NOT passing.. no sdk 2.1.0 on test env...
on my system :) it compiles.. FreeBSD + esp-open-sdk + esp skd 2.1.0 from git + recent Sming develop + my PR...
slaff
@slaff
Jun 13 2017 12:06

on my system :grinning: it compiles

That is good but it would be better if we keep the support for SDK 2.0 and SDK 1.5 :)

Alexander V. Ribchansky
@avr39-ripe
Jun 13 2017 12:08
hmm.. and how we can check sdk version? Or should we provide some compile time flag?
slaff
@slaff
Jun 13 2017 12:09
The SDK version can be checked during compile time.
This message was deleted
Alexander V. Ribchansky
@avr39-ripe
Jun 13 2017 12:25
@slaff could not found any @define in esp sdk which reflects sdk version. So to provide compatibility with esither 2.1.0 and 2.0 + 1,5,4 user must set used sdk version by hand and we should check this inside patches etc..
@slaff one more question, how to provide different esp-open-lwip patches based on sdk ver variable? :(
slaff
@slaff
Jun 13 2017 12:26
Hmm... I have to check too for the version
Alexander V. Ribchansky
@avr39-ripe
Jun 13 2017 12:26
in ordinary code we can #ifdef SDK_VER=210 ... #endif and how to deal with patches?? :(
slaff
@slaff
Jun 13 2017 12:27
For the patches - if #ifdef is required then it should be part of the patch.
Alexander V. Ribchansky
@avr39-ripe
Jun 13 2017 12:28
@slaff Oh! I get it.. too warm here :)) thanks! no 2 patches but 1 with #ifdef's..
@slaff so one thing to decide: HOW to check sdk ver automatically or just stay with manual sdk version specification.
slaff
@slaff
Jun 13 2017 12:38
I do not know if this is open-esp-sdk specific but in the include/esp_sdk_ver.h you can get the version of the SDK
example: #define ESP_SDK_VERSION 010504
and that can help us support 1.5, 2.0 and 2.1.
Alexander V. Ribchansky
@avr39-ripe
Jun 13 2017 12:40
@slaff can you provide full path to esp_sdk_ver.h file? where to get it? is it come from SDK or from where?
slaff
@slaff
Jun 13 2017 12:40
cat $ESP_HOME/sdk/include/esp_sdk_ver.h
Alexander V. Ribchansky
@avr39-ripe
Jun 13 2017 12:42
this comes with compiller.. not with SDK itself.. as far as I understand this we can't relay on such info..
in SDK itself there is NO version information available as #define :(
slaff
@slaff
Jun 13 2017 12:45
Nooo :) It should come with the SDK. I will download SDK 2.1.0 and check if such an include file is present there...
Alexander V. Ribchansky
@avr39-ripe
Jun 13 2017 12:45
@slaff it isnt there in git clone of sdk 2.1.0 from espressif...
Curtis Pope
@piperpilot
Jun 13 2017 14:10
Hey slaff or avr39-ripe, you guys around?
Alexander V. Ribchansky
@avr39-ripe
Jun 13 2017 14:11
@piperpilot me here ;) HI!
Curtis Pope
@piperpilot
Jun 13 2017 14:12
I'm trying to test the latest SMING develop and running into problems, issues with httpClient, reboots, etc. I'm trying to decode the stacktrace, but running into problems. Does the decode work with an rboot project?
I don't have an app.out in the specified location, but do have a app_0.out but getting a file not found error when trying to decode
new-host-8:Smobot_beta_WiFi_Firmware cpope$ python /Users/cpope/Development/Sming/tools/decode-stacktrace.py out/build/app_0.out stacktrace.log
Traceback (most recent call last):
File "/Users/cpope/Development/Sming/tools/decode-stacktrace.py", line 34, in <module>
pipe = subprocess.Popen(shlex.split(command), bufsize=1, stdin=subprocess.PIPE)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Alexander V. Ribchansky
@avr39-ripe
Jun 13 2017 14:12
@piperpilot sorry, cant help with this.. never try to decode stacktrace..
maybe rename or link to app.out ??
rename app_0.out to app.out
Curtis Pope
@piperpilot
Jun 13 2017 14:13
shouldn't matter if the filename is being passed in
Alexander V. Ribchansky
@avr39-ripe
Jun 13 2017 14:15
@piperpilot sorry, can't help.. try reach @slaff later..
slaff
@slaff
Jun 13 2017 14:17

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

Most probably the python script cannot find the path to the external xtensa-lx106-elf-addr2line. Make sure that you have it in your PATH.

Curtis Pope
@piperpilot
Jun 13 2017 14:18
ok, I'll check that. @slaff, running into serious problems with the latest httpclient. I rolled back about a month ago, but would really like to get the latest working well
trying to get you some good information so we can figure out what is going on
should I open a ticket?
slaff
@slaff
Jun 13 2017 14:19
Yes, please open a ticket and describe the problem that you have. The best will be with sample application.cpp.
Curtis Pope
@piperpilot
Jun 13 2017 14:20
ok...will be a lot of work to produce a sample that has the problem I think, but I will try...I'll start with getting the stacktrace decoded so we can see where the issue is
where is that xtensa file normally located?
found it
nevermind
Curtis Pope
@piperpilot
Jun 13 2017 14:27
OK, @slaff I opened up a new issue with as much detail as I have. hopefully you will see something
Curtis Pope
@piperpilot
Jun 13 2017 20:55
@slaff I have a strange one...my application reboots randomly for no apparent reason and there isn't any logging/stacktrace. I'm currently on the master branch and the last thing that is shown in the logs is -TCP connection...memory is OK...any suggestions on where I should look?