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

Feature/esp slip communication #5

Merged
merged 21 commits into from
Jul 24, 2016
Merged

Conversation

sarfata
Copy link
Owner

@sarfata sarfata commented Jun 21, 2016

This fixes #2 and makes it easier to upload firmware via standard platformio commands.

This also improves the "programmer" code by reading in frames instead of reading in bytes.

This only works with an old version of the ESPtool because newer version
use a new bootloader (written by and called CESANTA)
This solves #2 and now Windows users should be able to upload new wifi
firmwares.
The new esptool.py loads a special program in memory and then runs it.
This special program requires byte mode (it does not use the frames of
the esp rom) and so we now switch back to byte mode after seeing a
MEM_END of FLASH_END command.

Updated esptool to the most recent version from github.

Also improved the visual feedbacks on the leds.
Follow the baudrate requested by the computer. Allows us to send data
much faster. We will now default to 2Mbit/s.
This way we do not need to flash a different image on the teensy uc
before flashing the ESP. Much much better. It's also super fast now and
flashes in 5 seconds!
Add to invert the order in which we set DTR/RTS in the python script to
get things to work on Windows, otherwise auto-detection of when to
reboot did not work.
This will be something to remember when eventually updating esptool.py.
add little description of what each led color means in the source.
We were waiting for a 1000ms delay (which is what the ESP sleeps for)
but that was apparently too much and we did not reboot on my test on
Linux.

500ms seems long enough to avoid rebooting too often but also short
enough to be triggered when the ESP actually boots.
@sarfata
Copy link
Owner Author

sarfata commented Jul 24, 2016

Successfully tested on Linux/Windows/Mac.

@sarfata sarfata merged commit f191ece into master Jul 24, 2016
@sarfata sarfata deleted the feature/esp-slip-communication branch January 23, 2017 00:00
@sarfata sarfata restored the feature/esp-slip-communication branch January 23, 2017 00:00
@sarfata sarfata deleted the feature/esp-slip-communication branch January 23, 2017 00:01
sarfata pushed a commit that referenced this pull request Jan 4, 2018
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

Successfully merging this pull request may close these issues.

WiFi upload should work with platformio esptool
1 participant