-
Notifications
You must be signed in to change notification settings - Fork 20
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Successfully tested on Linux/Windows/Mac. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.