New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update framework-arduinoespressif to 2.0.0 #345

Closed
celsworth opened this Issue Nov 30, 2015 · 25 comments

Comments

Projects
None yet
4 participants
@celsworth

celsworth commented Nov 30, 2015

@valeros .. esp8266/Arduino have released 2.0.0: https://github.com/esp8266/Arduino/releases/tag/2.0.0

Could we get the platformio package updated please :)

@valeros

This comment has been minimized.

Member

valeros commented Nov 30, 2015

Hi @celsworth thanks for your prompt!
Sure, the package will be updated tomorrow with new PlatformIO 2.4.0 release.

@celsworth

This comment has been minimized.

celsworth commented Nov 30, 2015

Thanks :)

One thing I wanted to ask, in the 2.0 changelog they have:

Fix placement of code into RAM, enable gc-sections

But from what I see, this project uses different ldscripts - will you integrate those changes as well? It should fix some out of space issues with iram1_0_seg.

@skorokithakis

This comment has been minimized.

skorokithakis commented Nov 30, 2015

+1, hopefully this will work fine for me. I can test #343 when this gets updated.

@valeros

This comment has been minimized.

Member

valeros commented Nov 30, 2015

We will use original ldscripts from Arduino framework with some minor modifications.

@valeros

This comment has been minimized.

Member

valeros commented Dec 1, 2015

Hi @skorokithakis @celsworth @krissfr!
I would like to ask you guys to test latest PlatformIO with new packages before the stable release.
Please install latest develop branch:
http://docs.platformio.org/en/latest/installation.html#d-development-version
Update packages in your PlatformIO home directory:
https://www.dropbox.com/s/5z67p6kb3lakcu4/ldscripts.zip?dl=0
https://www.dropbox.com/s/qy07ihoq16y7cdc/framework-arduinoespressif.zip?dl=0
Looking forward to your results!

@skorokithakis

This comment has been minimized.

skorokithakis commented Dec 1, 2015

Mine crashes because version_to_int can't handle a version that is 2.4.b1 somewhere.

@celsworth

This comment has been minimized.

celsworth commented Dec 1, 2015

Exactly the same here. I tried changing to 2.4.0b1 in appstate.json, but it must be elsewhere too as its still not happy:

ValueError: invalid literal for int() with base 10: '':
File "/usr/local/lib/python2.7/dist-packages/platformio/builder/main.py", line 162:
SConscript(env.subst("$BUILD_SCRIPT"))
File "/usr/local/lib/scons-2.3.6/SCons/Script/SConscript.py", line 614:
return method(*args, **kw)
File "/usr/local/lib/scons-2.3.6/SCons/Script/SConscript.py", line 551:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/local/lib/scons-2.3.6/SCons/Script/SConscript.py", line 260:
exec _file_ in call_stack[-1].globals
File "/usr/local/lib/python2.7/dist-packages/platformio/builder/scripts/espressif.py", line 192:
target_elf = env.BuildProgram()
File "/usr/local/lib/scons-2.3.6/SCons/Environment.py", line 224:
return self.method(*nargs, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/platformio/builder/tools/platformio.py", line 78:
*pioversion_to_intstr())]
File "/usr/local/lib/python2.7/dist-packages/platformio/util.py", line 137:
return [int(i) for i in vermatch.group(1).split(".")[:3]]
@skorokithakis

This comment has been minimized.

skorokithakis commented Dec 1, 2015

I grepped, it's getting it from the internet again and setting it in. I gutted half the upgrader script but still no luck.

@valeros

This comment has been minimized.

Member

valeros commented Dec 1, 2015

Sorry, fixed.
Please test it again.

@celsworth

This comment has been minimized.

celsworth commented Dec 1, 2015

Thats better! Builds now, thanks. Will have a play around and report back

@skorokithakis

This comment has been minimized.

skorokithakis commented Dec 1, 2015

Still the same problem here. I installed develop again but no luck. What else do I need to do?

@celsworth

This comment has been minimized.

celsworth commented Dec 1, 2015

I don't think I did anything special, just pip uninstall then pip reinstall. You might try blowing away your .platformio directory and starting again?

@valeros this looks real good. Everything I tried works so far, including OTA updating which didn't work on platformio last night, so good job :)

@skorokithakis

This comment has been minimized.

skorokithakis commented Dec 1, 2015

Alright, I deleted the entire dir and it's running now. Let's see...

@skorokithakis

This comment has been minimized.

skorokithakis commented Dec 1, 2015

So, the previous version didn't work with even a simple sketch that did nothing (it would dump core). This version works perfectly, OTA seems to work fine, although I'm having some hiccups where the ESP won't come back up after an OTA upgrade reset. I don't think it's a platformio problem, as I was kind of seeing the same with the Arduino IDE last night, but with the Arduino it worked reliably after some point, whereas I can't get it to work reliably now.

@skorokithakis

This comment has been minimized.

skorokithakis commented Dec 1, 2015

Yeah, I can't get FOTA to work. It looks like the uploaded firmware is corrupt, as it won't boot.

@celsworth

This comment has been minimized.

celsworth commented Dec 1, 2015

Getting a little offtopic for here now, but does the BasicOTA example work from the esp8266/Arduino repository?

@skorokithakis

This comment has been minimized.

skorokithakis commented Dec 1, 2015

Yep, I tried that last night and it started working reliably after one or two tries. I'm seeing issues now where even non-OTA resets won't boot properly.

@skorokithakis

This comment has been minimized.

skorokithakis commented Dec 1, 2015

Hmm, scratch that, a reboot just succeeded. Let me investigate further and report back.

@skorokithakis

This comment has been minimized.

skorokithakis commented Dec 1, 2015

Yep:

Connected to Wifi.

Connecting to MQTT...

fatal: MQTT server connection failed. Rebooting.

 ets Jan  8 2013,rst cause:2, boot mode:(1,7)


 ets Jan  8 2013,rst cause:4, boot mode:(1,7)

wdt reset

And then it just sits there.

@skorokithakis

This comment has been minimized.

skorokithakis commented Dec 1, 2015

Never mind, the same thing happens with the Arduino IDE, so it's not a platformio issue.

@skorokithakis

This comment has been minimized.

skorokithakis commented Dec 1, 2015

OTA still doesn't work for me, as far as I can tell the resulting image is corrupt, or I'm flashing it wrong.

@valeros

This comment has been minimized.

Member

valeros commented Dec 1, 2015

@skorokithakis Does OTA with Arduino IDE work for you?

@skorokithakis

This comment has been minimized.

skorokithakis commented Dec 1, 2015

Yes, that one works fine.

@valeros

This comment has been minimized.

Member

valeros commented Dec 1, 2015

@skorokithakis What's your board version?

@skorokithakis

This comment has been minimized.

skorokithakis commented Dec 1, 2015

Sorry, I'm an idiot :( platformio run output firmware.elf so I thought that was the one I should flash. firmware.bin works with OTA, so everything works fine for me too.

ivankravets added a commit that referenced this issue Dec 1, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment