These are chat archives for SmingHub/Sming

20th
Jul 2016
johndoe8967
@johndoe8967
Jul 20 2016 15:41
is there any warning if my project is to big and it doesn't fit into my small 512kb flash?
or how can I debug a problem?
at the moment I've a perfectly running project, but if I add an ftpserver to access my 64kb spiffs there is only garbage at the serial debug port
robotiko
@robotiko
Jul 20 2016 15:41
@johndoe8967 garbage on boot?
set the serial to the default boot speed 77400
to see what is going on
johndoe8967
@johndoe8967
Jul 20 2016 15:45
ok will try, but I thought it should be 76800
robotiko
@robotiko
Jul 20 2016 15:46
I had similar issue.. I recall there is some warning when spiffs doesnt fit..
but not 100% sure
however when I had oversized compiled program..
johndoe8967
@johndoe8967
Jul 20 2016 15:46
I already reduced the spiffy to 64k (default is 131k)
robotiko
@robotiko
Jul 20 2016 15:47
it simply started to reset when reached parts of code..
rtos?
johndoe8967
@johndoe8967
Jul 20 2016 15:47
nonrtos
robotiko
@robotiko
Jul 20 2016 15:47
ok
johndoe8967
@johndoe8967
Jul 20 2016 15:47
but I think there is no difference because I just don't know all the limits...
robotiko
@robotiko
Jul 20 2016 15:49
did you adjusted the irom0_0_seg : ??
default config is very low in size
johndoe8967
@johndoe8967
Jul 20 2016 15:49
no, I thought they are calculated
robotiko
@robotiko
Jul 20 2016 15:49
NO
:)
johndoe8967
@johndoe8967
Jul 20 2016 15:49
irom0_0_seg : org = 0x40209000, len = 0x78000
is not that bad, my application is about .irom0.text 0004a3a2 40209000 40209000 000092b0 2**4
robotiko
@robotiko
Jul 20 2016 15:50
ok that is increased size
johndoe8967
@johndoe8967
Jul 20 2016 15:50
so 0x78000 > 0x04a3a2
johndoe8967
@johndoe8967
Jul 20 2016 15:56
ok, difficult to debug, my eclipse ide with fdti doesn't work with my mac miniterm so I do not see anything, and my raspberry pi programming setup doesn't support 76800 baudrate
I will have to build a programmer with flash / run switch on my fdti
robotiko
@robotiko
Jul 20 2016 15:57
simply open a term .. without eclipse
the thing is that if you have a boot issue
it is the only way to catch it
and if you run over memory .. usually create boot issues
johndoe8967
@johndoe8967
Jul 20 2016 16:00
yep, I thought I don't need the switch, but next step will be to add one
robotiko
@robotiko
Jul 20 2016 16:01
if you flash it ..
then you can forget about the flashing stage..
and simply reset and see in normal terminal
johndoe8967
@johndoe8967
Jul 20 2016 16:02
yes I'm aware of it
ok got it,
looks like a sum err :-(
chksum 0xb4
csum 0xb4
csum err
ets_main.c
robotiko
@robotiko
Jul 20 2016 16:07
hum
looks like flash stuff
liek running out
johndoe8967
@johndoe8967
Jul 20 2016 16:11
yep, completely undebugable
even with boot message
robotiko
@robotiko
Jul 20 2016 16:11
the thing is that
if you have an error in teh boot sequence
then the program is not running
at all
do you see the whole boot process or just that?
johndoe8967
@johndoe8967
Jul 20 2016 16:12
I see everything
robotiko
@robotiko
Jul 20 2016 16:12
can paste it here?
johndoe8967
@johndoe8967
Jul 20 2016 16:12

ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 26620, room 16
tail 12
chksum 0xca
ho 0 tail 12 room 4
load 0x3ffe8000, len 908, room 12
tail 0
chksum 0x32
load 0x3ffe8390, len 9784, room 8
tail 0
chksum 0xb4
csum 0xb4
csum err
ets_main.c

robotiko
@robotiko
Jul 20 2016 16:12
or it is confidencial
ok
johndoe8967
@johndoe8967
Jul 20 2016 16:12
no :-)
even the source is online so no problem
robotiko
@robotiko
Jul 20 2016 16:13
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x40100000, len 26620, room 16
that is the thing
taht is hwo to locate the issue
johndoe8967
@johndoe8967
Jul 20 2016 16:13
? the first one is the reset button
ok
robotiko
@robotiko
Jul 20 2016 16:13
I'm a little bit rusted how to do it
last tiem was 5 months ago
but on the compiling you can see the funcion on each line
to see where it is failing
johndoe8967
@johndoe8967
Jul 20 2016 16:14

hmm for me it looks great, because if I flash the smaller project without ftp I get this output
ets Jan 8 2013,rst cause:2, boot mode:(3,7)

load 0x40100000, len 26620, room 16
tail 12
chksum 0x0e
ho 0 tail 12 room 4
load 0x3ffe8000, len 908, room 12
tail 0
chksum 0x46
load 0x3ffe8390, len 8812, room 8
tail 4
chksum 0xcd
csum 0xcd
rf[112] : 03
rf[113] : 00
rf[114] : 01

robotiko
@robotiko
Jul 20 2016 16:15
what sdk are you using?
there is a lot of shit being logged
johndoe8967
@johndoe8967
Jul 20 2016 16:15
good question, sdk is V1.5.4
I try an older one
johndoe8967
@johndoe8967
Jul 20 2016 16:21
ok, it is working with V1.5.0, so I will stay with that again :-)
thanks for your time
robotiko
@robotiko
Jul 20 2016 16:21
sooo
it was a sdk issue?
johndoe8967
@johndoe8967
Jul 20 2016 16:21
maybe, or the old one is just a little smaller
robotiko
@robotiko
Jul 20 2016 16:22
sdk lately was growing quite a bit
so if that is the thing ..
you know how it will come again
hreintke and raburton seem to be out
lately ..
johndoe8967
@johndoe8967
Jul 20 2016 16:23
yeah, I also haven't heard from them
robotiko
@robotiko
Jul 20 2016 16:24
but you will need to adjust the ld if there is still room
otherwise.. will need to slim the build..
but that is harder stuff
johndoe8967
@johndoe8967
Jul 20 2016 16:25
I would be perfectly ok with adjusting the ld, if I would understand what I'm doing :)
in fact I reduced the spiffy size more than the new function would add to the project, but still no success
so I think it is limited somewhere else
I think I will manage now, the idea was to add the ftp to speed up the html tests :-) but I was stuck in the boot problem now for some hour
johndoe8967
@johndoe8967
Jul 20 2016 16:32
one more question, the rtos and the nonos version share the same environment variables, is it possible to use both of them on one computer?
I tried, but it sucks to change all the variables, and some are very hard to find in the eclipse
zhivko
@zhivko
Jul 20 2016 17:07
Hi guys
Does anybody have feeling about new sdk integration with sming?
HappyCodingRobot
@HappyCodingRobot
Jul 20 2016 17:13
@johndoe8967 on linux it works with both for me. from he shell you can give env variables for a specific program.
For the RTOS version i use the env variables set in the bash profile, for nonOS i call he 'make' with different env settings
should also do on Mac, but don't know if it works on Win
robotiko
@robotiko
Jul 20 2016 17:35
@johndoe8967 @HappyCodingRobot under windows and eclipse
it is quite simpel too
using eclipse env vars
you only have to be careful in case that used chocolatey to install sming
removing the path vars definitions