Skip to content
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
Closed

Update framework-arduinoespressif to 2.0.0 #345

celsworth opened this issue Nov 30, 2015 · 25 comments
Assignees
Milestone

Comments

@celsworth
Copy link

@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
Copy link
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
Copy link
Author

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
Copy link

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

@valeros
Copy link
Member

valeros commented Nov 30, 2015

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

@valeros
Copy link
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
Copy link

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

@celsworth
Copy link
Author

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
Copy link

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
Copy link
Member

valeros commented Dec 1, 2015

Sorry, fixed.
Please test it again.

@celsworth
Copy link
Author

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

@skorokithakis
Copy link

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

@celsworth
Copy link
Author

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
Copy link

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

@skorokithakis
Copy link

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
Copy link

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

@celsworth
Copy link
Author

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

@skorokithakis
Copy link

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
Copy link

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

@skorokithakis
Copy link

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
Copy link

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

@skorokithakis
Copy link

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
Copy link
Member

valeros commented Dec 1, 2015

@skorokithakis Does OTA with Arduino IDE work for you?

@skorokithakis
Copy link

Yes, that one works fine.

@valeros
Copy link
Member

valeros commented Dec 1, 2015

@skorokithakis What's your board version?

@skorokithakis
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants