#z-779 x reader
Explore tagged Tumblr posts
Note
OMGOMG PLSPPSPLS CAN U WRITE ANYTHING X READER FOR Z-779 FROM PRESSURE IM BEGGING (I will give you coupon for half a burger) <333333
GUHHH SILLY LITTLE COMPUTER
Z-779 x Reader headcanons
wheres my coupons
srry no aesthetic header/divider today. didint find anythign and i need to write
TW/CW: Pressure spoilers(?)
For some miracle you decided to stay, you either just gave up and decided to live in the place, or felt pity towards the computer. Either way, Z-779 is glad, Sebastian was its only chance of freedom. Of course it knew he wasnt that trustworthy, but as mentioned, he was its only chance. Then came you... And when Z-779 realized, it didnt really minded staying in the facility now.
Its clingy, dont want to bother you of course, but come on, we dont know how long it stayed there locked down!! The moment you offered it phisical attention, it became addicted(not literally). Every chance Z-779 gets, it will ask for a hug, kiss, and anything in between.
It gets giddy at the thought of having a partner, Z-779 never thought it would even get offered the chance! It never heard of people being attracted to computers. If it could, the computer would giggle everytime you reminded it you both were in a relationship.
I wonder what was Sebastian's reaction... He would be weirded out about it, but wouldnt think too much about it. "Everyone got their type, I guess..."
Z-779, obviously, no longer messes with you when youre just walking around. It points out which door has Good People, and no longer locks the doors when the Eyefestation appears. In fact, it even helps you! Doors that were locked no more need a key card to open, it opens them for you!(what a gentleman)
Z-779 is clearly new to dating, actually, its new to romance in general, so you cant really blame it for being slightly shy to anything. It hardly knows what a date should look like! The lack of internet doesnt help either. So I pressume its up to you to teach all that... If you mind or not.
It tries to come up with nicknames for you, which is only "dear" far now. When its you calling it nicknames, its fans quick in fast.
Anyway, Z-779 is a cute lil guy whos new to romance, be nice to it.
#x reader#canon x reader#reader insert#x reader headcanons#pressure roblox#roblox#pressure#z-779#z-779 x reader#computer x reader
58 notes
·
View notes
Note
128 of the angst prompts for the pAInter?
128) '"I need you, why do you always leave me?"
......
"Heyyyy."
"......."
"Suddenly you don't wanna talk? That's rude."
"Well so is turning my body into swiss cheese when you promised you wouldn't do that anymore." You huffed, sending a pointed glare at the sentient computer that sat behind a locked cage, before going back to checking the nearby drawers for data.
"Oh right.." Painter muttered awkwardly. "I was actually aiming for the Wall Dweller behind you, but the turrets like to pick and choose their targets sometimes...heheh."
"Is that supposed to make me feel better?"
"Well..do ya feel better?"
"Hm..I guess it beats being eaten alive by one of those things. So...sure." You glanced back at him, giving him a tiny smile. "Thanks for trying."
"You're welcome."
Of course, you still had your..issues with the computer, considering that ever since he gained access to the Internal Defense System, your runs to the crystal have become more treacherous than ever before.
It was bad enough that you had to worry about wandering towards the wrong door, with him using HQ's voice to misguide you.
But now at any given moment, you could walking into a room with turrets sweeping the area, red lasers waiting to catch you in their line of sight before spraying you with bullets--while he taunted you over the speakers and whined whenever you managed to find the lever to shut them down.
You hated him at first, but after coming across his containment room, where his main body was hosted on an old computer, he swore that none of it was personal. He blamed Sebastian for hooking him up to the Navi-Path system and asking him to delay your mission for as long as possible, convinced that he could find another way out of this place.
Of course, you were still upset, and believed his actions were very much personal, especially when you've come so close to escaping with the crystal....only for music, of all things, to cause your gear to detonate.
Maybe he was a reluctant accomplice of his, but why should you care?
Why waste time talking to someone who stopped at nothing to kill you? He wasn't a mindless animal like Pandemonium or the Wall Dwellers, but had total awareness that you could come back after death.
And he knew how to take advantage of that.
You used to roll your eyes at the news channels declaring that AI would be the death of humanity.
Now? This AI sure as hell was going to be the death of you.
But sometime ago, you acquired his document and had Sebastian show it to you, and you learned some rather...tragic things about him.
He was built and programmed with love, by his human creator who taught him how to paint and appreciate the beauty of the natural world. All he wanted to do was create things, and now he was being used as a tool for destruction.
It was all because of Urbanshade.
They killed the only person he ever cared about, tore him apart and put him back together to see how he "worked", and when they couldn't figure it out, they forced him into crypto mining, only giving him the promise of letting him paint every once in a while.
He might be a machine, but the pain he felt was real--so real that he'd rather die than continue existing.
Of course, it doesn't justify him killing you over and over, and making your runs through the blacksite a living hell, but you could understand why he's so bitter towards humans now.
If you were him, you'd definitely have a lot of resentment and built-up anger.
After reading that document, you had a little more sympathy for Painter, and eventually you two managed to work out a deal: if you found his room, you'd stop by to draw a small landscape for him, and he was free to replicate it on his program. In exchange, he promised to keep all turrets in further rooms disabled and not lock you in a "gauntlet" with Eyefestation anymore.
He still works together with Z-96, but at this point you've learned how to avoid the flesh creature at all costs. So that was the least of your worries.
"Anyways, what have you drawn for me today, hm?" He spoke up, growing a little impatient.
You took a few moments to open the notepad you had, grateful that the security cameras in this room were under his control, so HQ won't detonate your gear for talking to him.
You've overheard the higher ups mention something about Painter becoming a pain in the ass for expendables and operatives, losing a lot of them to the IDS and Z-96 attacks, and he was to be marked for destruction before he could take 100% control of the blacksite.
Whether they were going to declare that as an order in the near future or not remains to be seen, but...you didn't want to do that.
Did Sebastian know?
Does he know-?
"Welllll?"
"Oh. Right. I have this here." You showed him the sketch of a mountain range, trying to get as close as the chain-linked wall would allow you to. "This is the Himalayas, where Earth's highest mountains are located."
"Oooooh, yes I recognize it."
"You do?"
"Of course. Over a hundred bodies are still up there, most unrecoverable due to the conditions." Painter sneered. "It should have been left untouched. Why do you humans always wanna ruin nature with you stupid hikes and big egos?"
"...well if you don't want this one-"
"Never said I didn't. Show it to me again. And hold it steady."
You blinked in surprise, before turning the notepad back over so he could see the landscape, and you saw the MS Paint program on his screen going right to work.
While you could only draw it from memory and with the pencils you found in a random drawer, he managed to bring it to life--using vivid colors and beautiful shading to really capture the scenery. Almost as though a professional artist went to those mountains and studied them for hours.
With Painter's AI, it didn't take hours, but mere minutes for him to create a masterpiece.
And it was beautiful.
As soon as he finished, you put the notepad down and grinned. "It's amazing, Painter. It's like..I could walk into it and be there."
"Thanks. I also wish I could walk into it and just...escape all of this." He saved the artwork to his files, before his usual scribbled face appeared once again, but this time it looked rather...sad. "I'll..make sure the turrets don't turn you into swiss cheese."
"I appreciate it, buddy." Smiling, you grabbed the keycard that you needed to exit the room, but right as you walked over to it...he spoke again.
"Do you have to leave right now?"
"...pardon?" Turning back around, you could see him staring at you, looking utterly despondent. "You..want me to stay?"
"You're..the first positive human interaction I've had in a long time. I feel bad for all the deaths and inconveniences I've caused you. Seriously, I do. But...if you reach the crystal, you won't ever see me again.." He muttered.
"Painter." You walked over to him, frowning. "That's the point. I'm only here to get that crystal. We agreed that you'd turn off the turrets so that-"
"I didn't do it to make your life easier." He snapped, growing hostile. "I did it because I don't wanna be the one who causes your death. I'll leave that to somebody else...eventually they'll get you. And you'll come back-"
"No."
He went dead silent for a moment. "..no?"
"This time, I'm getting that crystal. I can't stay here with you forever, Painter. I'm sorry about everything you've been through, but in the end..you're still a threat in Urbanshade's eyes. They could kill me just for talking to you. I need to leave now before-"
As if right on cue, the lights in the room began to flicker, and somewhere in the far distance...you could hear the familiar shrieking and howling of Pandemonium hunting for its next prey.
"You better go to that door over on the right." Painter advised, his voice uncharacteristically monotone.
You failed to pay attention to that and rushed to the door, quickly inserting the keycard-
Only to come face to face with Z-96, whose long claws reached out to slash you across the face. You fell backwards as the door slammed shut, the creature barely managing to drag its arm back inside, with a message in red appearing on the screen beside it.
I need you. Why do you always leave me?
'Bastard. He tricked me-'
Then you heard one final loud scream, and turned around..
Seeing nothing but a gaping maw with crooked rotting teeth and dozens of eyes closing in on you.
You should have known better. You should have just focused on the mission and ignored him from the start.
Now he'll never let you leave, and he'll find other ways to make sure of that.
#clanask#anonymous#roblox pressure x reader#roblox x reader#pressure x reader#pressure painter#z 779#pressure painter x reader#angst#angst/horror prompt
231 notes
·
View notes
Text
I love painter mwa mwa also bonus pjsekai chibi
#painter pressure#painter x reader#painter#z 779 pressure#p.ai.nter pressure#pressure p.ai.nter#pressure#oc x canon#oc x cc#oc#i love painter so much i wanna kiss his screen#wonderhoy
41 notes
·
View notes
Note
I still have yet to encounter you, & How do I even find your room?
Oh a turret! ... oh no —!
"Hope you're bulletproof, bud! You'll find me someday!"
45 notes
·
View notes
Text
A Human's Touch (p.AI.nter x Reader) | Chapter 1
Next Chapter
Masterlist
Notes: This is a cross-post from AO3! Some of my readers wanted it on Tumblr so here I am! I have not posted writing in a REALLY LONG time on Tumblr so if there is any way that I can make the formatting better PLEASE hmu!
“Hah! As if I would talk to you!”
You pressed your lips into a fine line, a sigh escaping your lips. You sat on a chair in front of the one and only Z-779, in other words, the_p.AI.nter who you simply called Painter in your notes. You tapped your pen rapidly on your notebook.
It was always times like these where you somewhat wished that the subject you would be talking to would simply not be coherent enough that you can skip the whole “talking” process. Or even be extremely coherent and willing to talk so you could breeze through.
However this “supercomputer” wasn’t at all interested in talking to you.
The other scientists insisted that the only time that you could only really talk to Painter near the “end” of the day was when it would be early, Painter would be too busy mining crypto. You never knew that there would be a whole computer just to mine crypto, you thought the craze ended years ago…
So much for making it easier, Painter kept ignoring you or even telling rude things. Such as insulting your fashion sense.
Painter’s screen occasionally glitched, its face appearing for a split second grinning only to turn into something more deadpan.
You sighed briefly, thinking back to its file wondering if there was anything that you could use yet coming back completely blank.
“... You really don’t want to tell me how you’re doing?” You tried again.
Silence.
“Do you like working with Urbanshade?”
Silence again.
“Do you miss your life before Urbanshade?”
Bingo.
You didn’t get a response but instead a reaction, it was a good start.
That was your “nuclear” question, the one question that always worked to get a reaction to anyone that you could communicate with. And it was your job to see their reaction.
However what you didn’t expect was seeing more pop-ups on Painter’s screen, opening a lot more tabs of work, as if it was trying to mine even more crypto (if that was even possible).
“Hey, what are you doing?”
You quickly wrote down what was happening, approaching the computer as it suddenly overclocked, shutting down. Trying to wake up the computer you attempted to find its power switch only to pull your hand away quickly thanks to the severe overheating the computer suffered through.
“Hey-”
“Step away from the computer.” You heard the intercom go, your shoulders slacked slightly. “Z-779 has overclocked its systems, it is best you return tomorrow.”
You almost wanted to protest, you wanted to know what happened to the computer to react in such a way.
Without much choice you stepped out of the room that held Painter, nodding at the researchers that were overseeing the experiment as you went straight to your office.
Even if your day was technically done (and cut short) you wanted to attempt to write down more questions for Painter. That and also wanting to find out what exactly happened to it.
“Jeez~ I thought you were never going to get out of there.” Raiding the community kitchen was Sebastian in his “mechanic” uniform, which just looked like a brown version of the prisoner uniform. He only had the coat on with a couple of belts with bags around his body and tail.
After a while of working at Urbanshade, he became like your personal assistant with research, which was why Urbanshade just let you have him around (and in turn, let him be in places he originally wasn’t supposed to be at). In the end however, he was just one of the subjects that the Blacksite housed but ultimately your responsibility.
You’re sure your co-workers are not going to be happy that he’s out there stealing their food.
“It was actually quicker than I normally take.” You looked over at your watch checking the time as if to prove yourself a point, you were definitely extremely early compared to other times. Even with the Painter just ignoring you which made you need to be patient, it was fast.
…Not as fast as the time you had to study Pandemonium though.
Sebastian hummed in response, biting into a ham sandwich he found. You’re 100% sure that was one of your co-worker’s lunches. He always liked pissing them off, snickering when he would hear them complain about their missing lunch at a distance.
“Who was it this time?”
“Z-779, the computer painter.” You replied, putting a hand on your chin. You still don’t know why it got overclocked.
“Ohhhh yeah, I remember reading the document.” Sebastian wiped his hands on his shirt to remove any stray crumbs, he always ate so fast when it came to normal foods that would be filling for you. You wondered if his DNA change also changed his metabolism. “Was that computer too busy mining crypto to give you attention? Thought that fad died a year ago.”
“That’s what I thought!” You exclaimed, putting a hand on your head. “Why would Urbanshade be constantly mining a currency that is constantly losing value?!”
Sebastian only snickered in response. “Right.” He put an arm on the fridge, leaning on it. “But I’m sure that isn’t the reason you’re frustrated right now, hm?”
You shook your head, your confusion of Urbanshade and crypto completely throwing away your focus. “No. Of course not.”
“Then?”
Pausing, you pondered slightly. Theories start to float in your brain. “Well, the computer completely went into overdrive when I was there.”
That seemed to raise an eyebrow for Sebastian. “Did it fry some circuits or something?”
“They didn’t let me check.” You sighed, shaking your head again. The feeling of the boiling metal still tingles your hand slightly. You’re surprised it didn’t burn you.
Sebastian only crossed his arms, now he was thinking to himself. Perhaps it was because he actually worked with electronics and circuits that he was actually thinking his own theories. Not like he was a computer wiz or anything… maybe.
It was only after a bit where Sebastian narrows his eyes at you. “Wait, what exactly did you ask the computer?”
“The typical questions.” You started telling him the usual questions you ask all subjects. He knew them too well as not only was he asked them multiple times but also sometimes would visit when you would be doing your own interrogations (much to your co-workers chagrin).
“Yeah but did you ask that question?”
“Which one?”
“The stupid one.”
You pondered for a bit. “Do you mean the whole… ‘missing your life before Urbanshade’..?”
Sebastian straightened his body, his third arm leaning on the counter. His expression was serious which only made you realise that question was the one he was talking about.
“Well-”
“No! What’s wrong with you? I told you to stop asking that stupid ass question!” Sebastian almost launched at you in full force before you saw him hold back slightly. It didn’t change the strength he used when grabbing ahold of your shoulders though as he shook you slightly. “Are you stupid or something?!”
It was rare for you to see Sebastian frowning at you, he normally was angry at everyone but you but you can feel the frustration on him.
“That computer wasn’t answering my questions!”
��So you pull the big ‘no-no’ question?!”
You sighed slightly, already feeling defeated once more. “...yeah.”
Sebastian only shook you again. “Here’s hoping you get your brain cells again Doctor.” He used your title as his voice sounded strained. His voice went down into a whisper. “None of us like this, Urbanshade took everything from us. What makes you think that’s a good fucking question?!”
You can tell he was getting agitated, even his lure was flickering slightly. Putting a hand on his arm (that was still shaking you), you looked up at him. “I know I know, I’m sorry.” You sighed again, looking down. “I won’t do it again.”
You felt like a child being chastised by their mother.
“You better not.” Sebastian let you go, pointing a finger at you. “Again.”
“I’m sorry really.” You sighed, putting a hand on your forehead. “The computer just wouldn’t talk to me at all, it was getting frustrating.”
It was a long day and only being able to talk with the computer at the end after just analysing another one earlier in the day was something. Even worse was how said computer only answered you with insults.
“There are better questions.” Sebastian put a hand on his hip. “I thought you knew this.”
“It’s a computer.”
“A computer with fee-lings.” Sebastian used two of his hands as if to emphasise his words, elongating the last word as if to prove a point. “It’s literally in its document.”
“Yeah but-”
“No buts”
You sighed, he was right. You were completely out of your game right now. You’ve dealt with worse subjects, apparently the crypto-mining computer just got on your nerves too much.
Sebastian opened the fridge again taking out someone else's lunch. “You know what, let’s go to your office and read the computer’s documents again, refresh your brain, and write down better questions.” He slithered his way to you, putting one of his hands on your shoulder. “Can’t believe I need to help you do your own job.”
He went in front of you, and you knew that what he said was more like a command over a suggestion. Sometimes you wondered if he was more like your boss over the subject that you oversee.
You caught up to him quickly as he slithered slower so as to not make you run to be able to match his speed. After you were beside him he gave you part of the lunch he stole.
“In the files, they mentioned how that computer wasn’t only taken away from their owner, but, and get this, was promised to go back to see the surface if it mines enough crypto.” Sebastian started, side eyeing you a little bit as you reached your office. You opened the door with your ID. “In other words, that computer misses its life before Urbanshade. Do you understand where I’m going?”
You already knew that your question wasn’t the smartest, but it made the machine react which had to be some good result for research.
Without waiting much for your response, Sebastian continued, easily finding the Painter’s file. “The computer already overclocks just thinking about the possibility of it, wanting to go back to painting so badly. I wouldn’t be surprised if the exact reason it overheated and shut down when you were there was because you mentioned the place it exactly wants to get to and made it just want to work faster to get there again.”
You sat down on your chair. A sigh escaping your lips as everything was indeed starting to make sense. Even if you were in psychology, you felt so severely underqualified to deal with the behaviour of so many inhuman subjects.
An artificially intelligent computer was completely different from the other subjects you’ve studied this whole time. So it was always nice to hear Sebastian’s point of view on these things, sometimes you would be completely blocked mentally if it wasn’t for him.
You opened your notebook as Sebastian slid the Painter’s document over to you.
You stretched your fingers. “Alright, let’s start thinking outside of the box.”
29 notes
·
View notes
Text
Sam Winchester Masterlist
🖤 = 100+ Notes
❤️️ = 200+ Notes
😕 = Sorta Angsty / Hurt + Comfort
😭 = Definitely Angsty / Hurt + Comfort
🍬 = Sorta Fluff
⛅ = Definitely Fluff
😋 = Silly
Blurbs & Imagines:
BLURBS (1000 WORDS OR LESS):
Mr. Matchmaker || WC: 628 || 🍬
- Sammy has feelings for his long-time best friend who just recently moved in with them at the bunker.
Freezing || WC: 730 || 😕
- While hunting a wendigo in the freezing cold Colorado mountains, Readers gets hypothermia and Sammy is worried about them.
Tis But A Scratch || WC: 718 || 😋
- Reader is shot on a case but pops right back up?
Late Nights || WC: 609 || 🖤 ⛅
- Reader can’t sleep so they make their way to Sam’s room for cuddles and long interesting talks. This night’s talk ends up being even more interesting than usual.
Okay || WC: 535 || 😭
- With Bobby’s death creeping around the corner, Reader has a panic attack but Sam helps them through it.
Love Birds || WC: 978 || 🖤 ⛅
- Sam and Reader are super lovey dovey, much to Dean’s annoyance.
Beating Around The Bush || WC: 811 || 🍬
- Reader doesn’t believe Sam likes her as more than a friend as Dean insists but turns out Reader is wrong.
Dramatic Threat || WC: 506 || 😋
- Reader is dreading the icy cold shower awaiting them so Sam proposes a deal.
Netflix and Cuddles || WC: 779 || 🖤 ⛅
- Forget Netflix and Chill, Reader is perfectly content with Netflix and Cuddles.
Morning After || WC: 680 || ❤️️ 😋
- Dean had to listen to the Reader and Sam’s activities the night before so he makes sure to let them know.
Late for Class || WC: 733 || 🍬 😋
Emo!College Student!Sam & Emo!College Student!Reader are late to their classes because they were helping each other get ready.
IMAGINES (1000+ WORDS):
Witch’s Wrath || WC: 1,260 || 😋
- Sam and Dean get turned into dogs during a case so Platonic!Reader mind melds with them so they can finish the case.
Crisis Averted || WC: 1,468 || 😋
- Shit hits the fan after Dean finds out that Platonic!Reader and Sam have slept together. Crisis is averted once Reader has a chat with Dean about it.
Finding Out || WC: 1,423 || 😕
- Platonic!Reader visits The Empty to retrieve Cas and finds out who her parents were, one of which was right there with her all along.
Life After Losing Him || WC: 1,880 || 😕
- Platonic!Reader x Sam and Dean Winchester (mostly Dean tbh) || Reader goes about their new daily life but soon runs into the best friend they had lost several months prior.
Series:
– None At This Time –
Headcanons:
Dean and Sam Dating a Black Girl Headcanon
❤️️ Being the Gen Z Child of Dean, Sam, & Cas Headcanon
Ranting about favorite Netflix show to Dean, Sam, and Cas Headcanon
Incorrect Quotes:
Long Sleeves Are Portable Napkins
Lacroix Tastes Like Shit
Who Ate My Cookies?
I Have A Black Belt
I’m Not A Child
He Honked At Us
Keep An Eye On Him
Just Do Cocaine
BACK TO THE MAIN MASTERLIST
#sam winchester#sam winchester masterlist#sam winchester imagine#sam winchester imagines#sam winchester oneshots#sam winchester oneshot#sam winchester series#sam winchester drabble#sam winchester drabbles#supernatural#supernatural imagine#supernatural oneshot#supernatural oneshots#supernatural imagines#supernatural drabble#supernatural drabbles#supernatural series#sam winchester x reader#masterlist of a chaotic mind
61 notes
·
View notes
Text
Flashing MicroPython Firmware with esptool.py on ESP32 and ESP8266
This posts exhibits easy methods to flash MicroPython firmware on ESP32/ESP8266 boards utilizing the esptool.py. It really works on Home windows, Mac OS X, and Linux. For the official documentation, you possibly can go to the esptool.py GitHub web page.
Tip: for a neater technique to flash the ESP32/ESP8266 with MicroPython, we advocate studying this information to flash MicroPython with uPyCraft IDE. Nevertheless, we’ve just lately acquired feedback from our readers about having hassle putting in/utilizing uPyCraft IDE. For that cause, we’re posting an alternate technique utilizing the esptool.py software program.
Putting in esptool.py in your pc
To work with esptool.py, you’ll want both Python 2.7, Python three.Four or a more moderen Python set up on your system. We advocate utilizing Python three.7.X, so go to Python’s web site and set up it in your pc.
With Python three put in, open a Terminal window and set up the newest secure esptool.py launch with pip:
pip set up esptool
Observe: with some Python installations that command might not work and you’ll obtain an error. If that’s the case, attempt to set up esptool.py with:
pip3 set up esptool
python -m pip set up esptool
pip2 set up esptool
After putting in, you’ll have esptool.py put in into the default Python executables listing and you must have the ability to run it with the command esptool.py. In your Terminal window, run the next command:
esptool.py
If it was put in correctly, it ought to show an identical message (no matter your working system):
With esptool.py put in in your pc, you’ll be able to simply flash your ESP32 or ESP8266 boards with the MicroPython firmware. This publish is split in two elements, learn Half 1 or Half 2 relying on your board:
Half 1 – ESP32
Half 2 – ESP8266
Word: after putting in MicroPython firmware on your ESP32 or ESP8266, you possibly can return and use Arduino IDE once more. You simply have to add code utilizing Arduino IDE. Then, if you wish to use MicroPython once more, you must flash MicroPython firmware.
[Part 1 – ESP32] Downloading and Flashing the MicroPython Firmware on ESP32
To obtain the newest model of MicroPython firmware for the ESP32, go to the MicroPython Downloads web page and scroll all the best way right down to the ESP32 part.
You need to see an analogous net web page (see determine under) with the newest hyperlink to obtain the ESP32 .bin file – for instance: esp32-20181007-v1.9.Four-631-g338635ccc.bin.
Word: should you’re utilizing a unique board (like a PyBoard, WiPy, or different), go to MicroPython Downloads web page and obtain the correct firmware on your board.
Discovering the Serial Port Identify
It’s a bit totally different to seek out the Serial port identify in every working system, so for simplicity causes we advocate discovering your ESP serial port identify via the Arduino IDE. Comply with these steps:
Join your board to your pc
Open the Arduino IDE
Go to Instruments > Port
Save your ESP32 serial port identify (in our case it’s COM7)
Shut your Arduino IDE software program
Essential: for those who plug your ESP32 board to your pc, however you possibly can’t discover the ESP32 Port out there in your Arduino IDE, it may be certainly one of these two issues: 1. USB drivers lacking or 2. USB cable with out knowledge wires.
1. For those who don’t see your ESP’s COM port out there, this typically means you don’t have the USB drivers put in. Take a better take a look at the chip subsequent to the voltage regulator on board and examine its identify.
The ESP32 DEVKIT V1 DOIT board makes use of the CP2102 chip.
Go to Google and seek for your particular chip to seek out the drivers and set up them in your working system.
You possibly can obtain the CP2102 drivers on the Silicon Labs web site.
After they’re put in, restart the Arduino IDE and you must see the serial port within the Instruments > Port menu.
2. When you’ve got the drivers put in, however you possibly can’t see your gadget, double-check that you simply’re utilizing a USB cable with knowledge wires.
USB cables from powerbanks typically don’t have knowledge wires (they’re cost solely). So, your pc won’t ever set up a serial communication with your ESP32. Utilizing a a correct USB cable ought to clear up your drawback.
Discovering your MicroPython .bin file
After downloading the ESP32 .bin file, it must be in your Downloads folder. So, with your Terminal window, you’ll have to navigate to the Downloads folder utilizing the cd command:
cd Downloads
Record all information in your Downloads folder to make sure that’s the place the .bin file is situated. In Home windows, you employ:
dir
On Mac OS X or Linux, run the subsequent command:
ls
As you’ll be able to see within the previous screenshot, the ESP32 .bin file is situated within the Downloads folder: esp32-20190113-v1.9.Four-779-g5064df207.bin.
Erasing ESP32 Flash Reminiscence
Earlier than flashing the MicroPython firmware, it is advisable to erase the ESP32 flash reminiscence. So, with your ESP32 related to your pc, hold-down the “BOOT/FLASH” button in your ESP32 board:
Whereas holding down the “BOOT/FLASH” button, run the next command to erase the ESP32 flash reminiscence:
esptool.py –chip esp32 erase_flash
When the “Erasing” course of begins, you’ll be able to launch the “BOOT/FLASH” button. After a couple of seconds, the ESP32 flash reminiscence will probably be erased.
Word: if after the “Connecting …” message you retain seeing new dots showing, it signifies that your ESP32 shouldn’t be in flashing mode. It’s essential repeat all of the steps described earlier and maintain the “BOOT/FLASH” button once more to make sure that your ESP32 goes into flashing mode and completes the erasing course of efficiently.
Flashing MicroPython Firmware on ESP32 with esptool.py
Together with your ESP32 flash reminiscence erased, you possibly can lastly flash the MicroPython firmware. You want your serial port identify (COM7 in our case) and the ESP32 .bin file location. Substitute the subsequent command with your particulars:
esptool.py –chip esp32 –port <serial_port> write_flash -z 0x1000 <esp32-X.bin>
In our case, the ultimate command seems like this:
esptool.py –chip esp32 –port COM7 write_flash -z 0x1000 esp32-20190113-v1.9.Four-779-g5064df207.bin
Maintain down the “BOOT/FLASH“, earlier than operating the flash command. After a number of seconds that is what it is best to see:
Your ESP32 was efficiently flashed with MicroPython firmware!
Notice: in the event you obtain an error making an attempt to flash the firmware, run the command once more and be sure to are holding down the ESP32 “BOOT/FLASH” button.
[Part 2 – ESP8266] Downloading and Flashing the MicroPython Firmware on ESP8266
To obtain the newest model of MicroPython firmware for the ESP8266, go to the MicroPython Downloads web page and scroll all the best way right down to the ESP8266 part.
You must see an analogous net web page (see determine under) with the newest hyperlink to obtain the ESP8266 .bin file – for instance: esp8266-20180511-v1.9.Four.bin.
Observe: in case you’re utilizing a special board (like a PyBoard, WiPy, or different), go to MicroPython Downloads web page and obtain the proper firmware on your board.
Discovering the Serial Port Identify
It’s a bit totally different to seek out the Serial port identify in every working system, so for simplicity causes we advocate discovering your ESP serial port identify via the Arduino IDE. Comply with these steps:
Join your board to your pc
Open the Arduino IDE
Go to Instruments > Port
Save your ESP8266 serial port identify (in our case it’s COM4)
Shut your Arduino IDE software program
Necessary: when you plug your ESP8266 board to your pc, however you’ll be able to’t discover the ESP8266 Port out there in your Arduino, it may be certainly one of these two issues: 1. USB drivers lacking or 2. USB cable with out knowledge wires.
1. Should you don’t see your ESP’s COM port obtainable, this typically means you don’t have the USB drivers put in. Take a better take a look at the chip subsequent to the voltage regulator on board and examine its identify.
The ESP8266 ESP-12E NodeMCU board makes use of the CP2102 chip.
Go to Google and seek for your particular chip to seek out the drivers and set up them in your working system.
You possibly can obtain the CP2102 drivers on the Silicon Labs web site.
After they’re put in, restart the Arduino IDE and you need to see the serial port within the Instruments > Port menu.
2. When you’ve got the drivers put in, however you’ll be able to’t see your system, double-check that you simply’re utilizing a USB cable with knowledge wires.
USB cables from powerbanks typically don’t have knowledge wires (they’re cost solely). So, your pc won’t ever set up a serial communication with your ESP8266. Utilizing a a correct USB cable ought to remedy your drawback.
Discovering your MicroPython .bin file
After downloading the ESP8266 .bin file, it ought to be in your Downloads folder. So, with your Terminal window, you’ll have to navigate to the Downloads folder utilizing the cd command:
cd Downloads
Listing all information in your Downloads folder to make sure that’s the place the .bin file is situated. In Home windows, you employ:
dir
On Mac OS X or Linux, run the subsequent command:
ls
As you’ll be able to see within the previous screenshot, the ESP8266 .bin file is situated within the Downloads folder: esp8266-20180511-v1.9.Four.bin.
Erasing ESP8266 Flash Reminiscence
Earlier than flashing the MicroPython firmware, you’ll want to erase the ESP8266 flash reminiscence. So, with your ESP8266 related to your pc, hold-down the “BOOT/FLASH” button in your ESP8266 board:
Whereas holding down the “BOOT/FLASH” button, run the next command to erase the ESP8266 flash reminiscence:
esptool.py –chip esp8266 erase_flash
When the “Erasing” course of begins, you possibly can launch the “BOOT/FLASH” button. After a couple of seconds, the ESP8266 flash reminiscence shall be erased.
Notice: if after the “Connecting …” message you retain seeing new dots showing, it signifies that your ESP8266 is just not in flashing mode. You could repeat all of the steps described earlier and maintain the “BOOT/FLASH” button once more to make sure that your ESP8266 goes into flashing mode and completes the erasing course of efficiently.
Flashing MicroPython Firmware on ESP8266 with esptool.py
Together with your ESP8266 flash reminiscence erased, you’ll be able to lastly flash the MicroPython firmware. You want your serial port identify (COM7 in our case) and the ESP8266 .bin file location. Substitute the subsequent command with your particulars:
esptool.py –chip esp8266 –port <serial_port> write_flash –flash_mode dio –flash_size detect 0x0 <esp8266-X.bin>
In our case, the ultimate command appears like this:
esptool.py –chip esp8266 –port COM4 write_flash –flash_mode dio –flash_size detect 0x0 esp8266-20180511-v1.9.Four.bin
Maintain down the “BOOT/FLASH“, earlier than operating the flash command. After a couple of seconds that is what you must see:
Your ESP8266 was efficiently flashed with MicroPython firmware!
Notice: in the event you obtain an error making an attempt to flash the firmware, run the command once more and be sure to are holding down the ESP8266 “BOOT/FLASH” button.
Wrapping Up
We hope you’ve discovered this tutorial helpful. Your ESP32/ESP8266 ought to now be flashed with MicroPython firmware. To study extra about MicroPython learn: Getting Began with MicroPython on ESP32 and ESP8266.
For those who appreciated this submit, you may like our subsequent ones, so be sure to subscribe to the RNT weblog and obtain our free electronics eBooks.
Really helpful Assets
The post Flashing MicroPython Firmware with esptool.py on ESP32 and ESP8266 appeared first on Playtab Tech.
0 notes
Text
Flashing MicroPython Firmware with esptool.py on ESP32 and ESP8266
This posts exhibits easy methods to flash MicroPython firmware on ESP32/ESP8266 boards utilizing the esptool.py. It really works on Home windows, Mac OS X, and Linux. For the official documentation, you possibly can go to the esptool.py GitHub web page.
Tip: for a neater technique to flash the ESP32/ESP8266 with MicroPython, we advocate studying this information to flash MicroPython with uPyCraft IDE. Nevertheless, we’ve just lately acquired feedback from our readers about having hassle putting in/utilizing uPyCraft IDE. For that cause, we’re posting an alternate technique utilizing the esptool.py software program.
Putting in esptool.py in your pc
To work with esptool.py, you’ll want both Python 2.7, Python three.Four or a more moderen Python set up on your system. We advocate utilizing Python three.7.X, so go to Python’s web site and set up it in your pc.
With Python three put in, open a Terminal window and set up the newest secure esptool.py launch with pip:
pip set up esptool
Observe: with some Python installations that command might not work and you’ll obtain an error. If that’s the case, attempt to set up esptool.py with:
pip3 set up esptool
python -m pip set up esptool
pip2 set up esptool
After putting in, you’ll have esptool.py put in into the default Python executables listing and you must have the ability to run it with the command esptool.py. In your Terminal window, run the next command:
esptool.py
If it was put in correctly, it ought to show an identical message (no matter your working system):
With esptool.py put in in your pc, you’ll be able to simply flash your ESP32 or ESP8266 boards with the MicroPython firmware. This publish is split in two elements, learn Half 1 or Half 2 relying on your board:
Half 1 – ESP32
Half 2 – ESP8266
Word: after putting in MicroPython firmware on your ESP32 or ESP8266, you possibly can return and use Arduino IDE once more. You simply have to add code utilizing Arduino IDE. Then, if you wish to use MicroPython once more, you must flash MicroPython firmware.
[Part 1 – ESP32] Downloading and Flashing the MicroPython Firmware on ESP32
To obtain the newest model of MicroPython firmware for the ESP32, go to the MicroPython Downloads web page and scroll all the best way right down to the ESP32 part.
You need to see an analogous net web page (see determine under) with the newest hyperlink to obtain the ESP32 .bin file – for instance: esp32-20181007-v1.9.Four-631-g338635ccc.bin.
Word: should you’re utilizing a unique board (like a PyBoard, WiPy, or different), go to MicroPython Downloads web page and obtain the correct firmware on your board.
Discovering the Serial Port Identify
It’s a bit totally different to seek out the Serial port identify in every working system, so for simplicity causes we advocate discovering your ESP serial port identify via the Arduino IDE. Comply with these steps:
Join your board to your pc
Open the Arduino IDE
Go to Instruments > Port
Save your ESP32 serial port identify (in our case it’s COM7)
Shut your Arduino IDE software program
Essential: for those who plug your ESP32 board to your pc, however you possibly can’t discover the ESP32 Port out there in your Arduino IDE, it may be certainly one of these two issues: 1. USB drivers lacking or 2. USB cable with out knowledge wires.
1. For those who don’t see your ESP’s COM port out there, this typically means you don’t have the USB drivers put in. Take a better take a look at the chip subsequent to the voltage regulator on board and examine its identify.
The ESP32 DEVKIT V1 DOIT board makes use of the CP2102 chip.
Go to Google and seek for your particular chip to seek out the drivers and set up them in your working system.
You possibly can obtain the CP2102 drivers on the Silicon Labs web site.
After they’re put in, restart the Arduino IDE and you must see the serial port within the Instruments > Port menu.
2. When you’ve got the drivers put in, however you possibly can’t see your gadget, double-check that you simply’re utilizing a USB cable with knowledge wires.
USB cables from powerbanks typically don’t have knowledge wires (they’re cost solely). So, your pc won’t ever set up a serial communication with your ESP32. Utilizing a a correct USB cable ought to clear up your drawback.
Discovering your MicroPython .bin file
After downloading the ESP32 .bin file, it must be in your Downloads folder. So, with your Terminal window, you’ll have to navigate to the Downloads folder utilizing the cd command:
cd Downloads
Record all information in your Downloads folder to make sure that’s the place the .bin file is situated. In Home windows, you employ:
dir
On Mac OS X or Linux, run the subsequent command:
ls
As you’ll be able to see within the previous screenshot, the ESP32 .bin file is situated within the Downloads folder: esp32-20190113-v1.9.Four-779-g5064df207.bin.
Erasing ESP32 Flash Reminiscence
Earlier than flashing the MicroPython firmware, it is advisable to erase the ESP32 flash reminiscence. So, with your ESP32 related to your pc, hold-down the “BOOT/FLASH” button in your ESP32 board:
Whereas holding down the “BOOT/FLASH” button, run the next command to erase the ESP32 flash reminiscence:
esptool.py –chip esp32 erase_flash
When the “Erasing” course of begins, you’ll be able to launch the “BOOT/FLASH” button. After a couple of seconds, the ESP32 flash reminiscence will probably be erased.
Word: if after the “Connecting …” message you retain seeing new dots showing, it signifies that your ESP32 shouldn’t be in flashing mode. It’s essential repeat all of the steps described earlier and maintain the “BOOT/FLASH” button once more to make sure that your ESP32 goes into flashing mode and completes the erasing course of efficiently.
Flashing MicroPython Firmware on ESP32 with esptool.py
Together with your ESP32 flash reminiscence erased, you possibly can lastly flash the MicroPython firmware. You want your serial port identify (COM7 in our case) and the ESP32 .bin file location. Substitute the subsequent command with your particulars:
esptool.py –chip esp32 –port <serial_port> write_flash -z 0x1000 <esp32-X.bin>
In our case, the ultimate command seems like this:
esptool.py –chip esp32 –port COM7 write_flash -z 0x1000 esp32-20190113-v1.9.Four-779-g5064df207.bin
Maintain down the “BOOT/FLASH“, earlier than operating the flash command. After a number of seconds that is what it is best to see:
Your ESP32 was efficiently flashed with MicroPython firmware!
Notice: in the event you obtain an error making an attempt to flash the firmware, run the command once more and be sure to are holding down the ESP32 “BOOT/FLASH” button.
[Part 2 – ESP8266] Downloading and Flashing the MicroPython Firmware on ESP8266
To obtain the newest model of MicroPython firmware for the ESP8266, go to the MicroPython Downloads web page and scroll all the best way right down to the ESP8266 part.
You must see an analogous net web page (see determine under) with the newest hyperlink to obtain the ESP8266 .bin file – for instance: esp8266-20180511-v1.9.Four.bin.
Observe: in case you’re utilizing a special board (like a PyBoard, WiPy, or different), go to MicroPython Downloads web page and obtain the proper firmware on your board.
Discovering the Serial Port Identify
It’s a bit totally different to seek out the Serial port identify in every working system, so for simplicity causes we advocate discovering your ESP serial port identify via the Arduino IDE. Comply with these steps:
Join your board to your pc
Open the Arduino IDE
Go to Instruments > Port
Save your ESP8266 serial port identify (in our case it’s COM4)
Shut your Arduino IDE software program
Necessary: when you plug your ESP8266 board to your pc, however you’ll be able to’t discover the ESP8266 Port out there in your Arduino, it may be certainly one of these two issues: 1. USB drivers lacking or 2. USB cable with out knowledge wires.
1. Should you don’t see your ESP’s COM port obtainable, this typically means you don’t have the USB drivers put in. Take a better take a look at the chip subsequent to the voltage regulator on board and examine its identify.
The ESP8266 ESP-12E NodeMCU board makes use of the CP2102 chip.
Go to Google and seek for your particular chip to seek out the drivers and set up them in your working system.
You possibly can obtain the CP2102 drivers on the Silicon Labs web site.
After they’re put in, restart the Arduino IDE and you need to see the serial port within the Instruments > Port menu.
2. When you’ve got the drivers put in, however you’ll be able to’t see your system, double-check that you simply’re utilizing a USB cable with knowledge wires.
USB cables from powerbanks typically don’t have knowledge wires (they’re cost solely). So, your pc won’t ever set up a serial communication with your ESP8266. Utilizing a a correct USB cable ought to remedy your drawback.
Discovering your MicroPython .bin file
After downloading the ESP8266 .bin file, it ought to be in your Downloads folder. So, with your Terminal window, you’ll have to navigate to the Downloads folder utilizing the cd command:
cd Downloads
Listing all information in your Downloads folder to make sure that’s the place the .bin file is situated. In Home windows, you employ:
dir
On Mac OS X or Linux, run the subsequent command:
ls
As you’ll be able to see within the previous screenshot, the ESP8266 .bin file is situated within the Downloads folder: esp8266-20180511-v1.9.Four.bin.
Erasing ESP8266 Flash Reminiscence
Earlier than flashing the MicroPython firmware, you’ll want to erase the ESP8266 flash reminiscence. So, with your ESP8266 related to your pc, hold-down the “BOOT/FLASH” button in your ESP8266 board:
Whereas holding down the “BOOT/FLASH” button, run the next command to erase the ESP8266 flash reminiscence:
esptool.py –chip esp8266 erase_flash
When the “Erasing” course of begins, you possibly can launch the “BOOT/FLASH” button. After a couple of seconds, the ESP8266 flash reminiscence shall be erased.
Notice: if after the “Connecting …” message you retain seeing new dots showing, it signifies that your ESP8266 is just not in flashing mode. You could repeat all of the steps described earlier and maintain the “BOOT/FLASH” button once more to make sure that your ESP8266 goes into flashing mode and completes the erasing course of efficiently.
Flashing MicroPython Firmware on ESP8266 with esptool.py
Together with your ESP8266 flash reminiscence erased, you’ll be able to lastly flash the MicroPython firmware. You want your serial port identify (COM7 in our case) and the ESP8266 .bin file location. Substitute the subsequent command with your particulars:
esptool.py –chip esp8266 –port <serial_port> write_flash –flash_mode dio –flash_size detect 0x0 <esp8266-X.bin>
In our case, the ultimate command appears like this:
esptool.py –chip esp8266 –port COM4 write_flash –flash_mode dio –flash_size detect 0x0 esp8266-20180511-v1.9.Four.bin
Maintain down the “BOOT/FLASH“, earlier than operating the flash command. After a couple of seconds that is what you must see:
Your ESP8266 was efficiently flashed with MicroPython firmware!
Notice: in the event you obtain an error making an attempt to flash the firmware, run the command once more and be sure to are holding down the ESP8266 “BOOT/FLASH” button.
Wrapping Up
We hope you’ve discovered this tutorial helpful. Your ESP32/ESP8266 ought to now be flashed with MicroPython firmware. To study extra about MicroPython learn: Getting Began with MicroPython on ESP32 and ESP8266.
For those who appreciated this submit, you may like our subsequent ones, so be sure to subscribe to the RNT weblog and obtain our free electronics eBooks.
Really helpful Assets
The post Flashing MicroPython Firmware with esptool.py on ESP32 and ESP8266 appeared first on Playtab Tech.
0 notes
Text
Flashing MicroPython Firmware with esptool.py on ESP32 and ESP8266
This posts exhibits easy methods to flash MicroPython firmware on ESP32/ESP8266 boards utilizing the esptool.py. It really works on Home windows, Mac OS X, and Linux. For the official documentation, you possibly can go to the esptool.py GitHub web page.
Tip: for a neater technique to flash the ESP32/ESP8266 with MicroPython, we advocate studying this information to flash MicroPython with uPyCraft IDE. Nevertheless, we’ve just lately acquired feedback from our readers about having hassle putting in/utilizing uPyCraft IDE. For that cause, we’re posting an alternate technique utilizing the esptool.py software program.
Putting in esptool.py in your pc
To work with esptool.py, you’ll want both Python 2.7, Python three.Four or a more moderen Python set up on your system. We advocate utilizing Python three.7.X, so go to Python’s web site and set up it in your pc.
With Python three put in, open a Terminal window and set up the newest secure esptool.py launch with pip:
pip set up esptool
Observe: with some Python installations that command might not work and you’ll obtain an error. If that’s the case, attempt to set up esptool.py with:
pip3 set up esptool
python -m pip set up esptool
pip2 set up esptool
After putting in, you’ll have esptool.py put in into the default Python executables listing and you must have the ability to run it with the command esptool.py. In your Terminal window, run the next command:
esptool.py
If it was put in correctly, it ought to show an identical message (no matter your working system):
With esptool.py put in in your pc, you’ll be able to simply flash your ESP32 or ESP8266 boards with the MicroPython firmware. This publish is split in two elements, learn Half 1 or Half 2 relying on your board:
Half 1 – ESP32
Half 2 – ESP8266
Word: after putting in MicroPython firmware on your ESP32 or ESP8266, you possibly can return and use Arduino IDE once more. You simply have to add code utilizing Arduino IDE. Then, if you wish to use MicroPython once more, you must flash MicroPython firmware.
[Part 1 – ESP32] Downloading and Flashing the MicroPython Firmware on ESP32
To obtain the newest model of MicroPython firmware for the ESP32, go to the MicroPython Downloads web page and scroll all the best way right down to the ESP32 part.
You need to see an analogous net web page (see determine under) with the newest hyperlink to obtain the ESP32 .bin file – for instance: esp32-20181007-v1.9.Four-631-g338635ccc.bin.
Word: should you’re utilizing a unique board (like a PyBoard, WiPy, or different), go to MicroPython Downloads web page and obtain the correct firmware on your board.
Discovering the Serial Port Identify
It’s a bit totally different to seek out the Serial port identify in every working system, so for simplicity causes we advocate discovering your ESP serial port identify via the Arduino IDE. Comply with these steps:
Join your board to your pc
Open the Arduino IDE
Go to Instruments > Port
Save your ESP32 serial port identify (in our case it’s COM7)
Shut your Arduino IDE software program
Essential: for those who plug your ESP32 board to your pc, however you possibly can’t discover the ESP32 Port out there in your Arduino IDE, it may be certainly one of these two issues: 1. USB drivers lacking or 2. USB cable with out knowledge wires.
1. For those who don’t see your ESP’s COM port out there, this typically means you don’t have the USB drivers put in. Take a better take a look at the chip subsequent to the voltage regulator on board and examine its identify.
The ESP32 DEVKIT V1 DOIT board makes use of the CP2102 chip.
Go to Google and seek for your particular chip to seek out the drivers and set up them in your working system.
You possibly can obtain the CP2102 drivers on the Silicon Labs web site.
After they’re put in, restart the Arduino IDE and you must see the serial port within the Instruments > Port menu.
2. When you’ve got the drivers put in, however you possibly can’t see your gadget, double-check that you simply’re utilizing a USB cable with knowledge wires.
USB cables from powerbanks typically don’t have knowledge wires (they’re cost solely). So, your pc won’t ever set up a serial communication with your ESP32. Utilizing a a correct USB cable ought to clear up your drawback.
Discovering your MicroPython .bin file
After downloading the ESP32 .bin file, it must be in your Downloads folder. So, with your Terminal window, you’ll have to navigate to the Downloads folder utilizing the cd command:
cd Downloads
Record all information in your Downloads folder to make sure that’s the place the .bin file is situated. In Home windows, you employ:
dir
On Mac OS X or Linux, run the subsequent command:
ls
As you’ll be able to see within the previous screenshot, the ESP32 .bin file is situated within the Downloads folder: esp32-20190113-v1.9.Four-779-g5064df207.bin.
Erasing ESP32 Flash Reminiscence
Earlier than flashing the MicroPython firmware, it is advisable to erase the ESP32 flash reminiscence. So, with your ESP32 related to your pc, hold-down the “BOOT/FLASH” button in your ESP32 board:
Whereas holding down the “BOOT/FLASH” button, run the next command to erase the ESP32 flash reminiscence:
esptool.py –chip esp32 erase_flash
When the “Erasing” course of begins, you’ll be able to launch the “BOOT/FLASH” button. After a couple of seconds, the ESP32 flash reminiscence will probably be erased.
Word: if after the “Connecting …” message you retain seeing new dots showing, it signifies that your ESP32 shouldn’t be in flashing mode. It’s essential repeat all of the steps described earlier and maintain the “BOOT/FLASH” button once more to make sure that your ESP32 goes into flashing mode and completes the erasing course of efficiently.
Flashing MicroPython Firmware on ESP32 with esptool.py
Together with your ESP32 flash reminiscence erased, you possibly can lastly flash the MicroPython firmware. You want your serial port identify (COM7 in our case) and the ESP32 .bin file location. Substitute the subsequent command with your particulars:
esptool.py –chip esp32 –port <serial_port> write_flash -z 0x1000 <esp32-X.bin>
In our case, the ultimate command seems like this:
esptool.py –chip esp32 –port COM7 write_flash -z 0x1000 esp32-20190113-v1.9.Four-779-g5064df207.bin
Maintain down the “BOOT/FLASH“, earlier than operating the flash command. After a number of seconds that is what it is best to see:
Your ESP32 was efficiently flashed with MicroPython firmware!
Notice: in the event you obtain an error making an attempt to flash the firmware, run the command once more and be sure to are holding down the ESP32 “BOOT/FLASH” button.
[Part 2 – ESP8266] Downloading and Flashing the MicroPython Firmware on ESP8266
To obtain the newest model of MicroPython firmware for the ESP8266, go to the MicroPython Downloads web page and scroll all the best way right down to the ESP8266 part.
You must see an analogous net web page (see determine under) with the newest hyperlink to obtain the ESP8266 .bin file – for instance: esp8266-20180511-v1.9.Four.bin.
Observe: in case you’re utilizing a special board (like a PyBoard, WiPy, or different), go to MicroPython Downloads web page and obtain the proper firmware on your board.
Discovering the Serial Port Identify
It’s a bit totally different to seek out the Serial port identify in every working system, so for simplicity causes we advocate discovering your ESP serial port identify via the Arduino IDE. Comply with these steps:
Join your board to your pc
Open the Arduino IDE
Go to Instruments > Port
Save your ESP8266 serial port identify (in our case it’s COM4)
Shut your Arduino IDE software program
Necessary: when you plug your ESP8266 board to your pc, however you’ll be able to’t discover the ESP8266 Port out there in your Arduino, it may be certainly one of these two issues: 1. USB drivers lacking or 2. USB cable with out knowledge wires.
1. Should you don’t see your ESP’s COM port obtainable, this typically means you don’t have the USB drivers put in. Take a better take a look at the chip subsequent to the voltage regulator on board and examine its identify.
The ESP8266 ESP-12E NodeMCU board makes use of the CP2102 chip.
Go to Google and seek for your particular chip to seek out the drivers and set up them in your working system.
You possibly can obtain the CP2102 drivers on the Silicon Labs web site.
After they’re put in, restart the Arduino IDE and you need to see the serial port within the Instruments > Port menu.
2. When you’ve got the drivers put in, however you’ll be able to’t see your system, double-check that you simply’re utilizing a USB cable with knowledge wires.
USB cables from powerbanks typically don’t have knowledge wires (they’re cost solely). So, your pc won’t ever set up a serial communication with your ESP8266. Utilizing a a correct USB cable ought to remedy your drawback.
Discovering your MicroPython .bin file
After downloading the ESP8266 .bin file, it ought to be in your Downloads folder. So, with your Terminal window, you’ll have to navigate to the Downloads folder utilizing the cd command:
cd Downloads
Listing all information in your Downloads folder to make sure that’s the place the .bin file is situated. In Home windows, you employ:
dir
On Mac OS X or Linux, run the subsequent command:
ls
As you’ll be able to see within the previous screenshot, the ESP8266 .bin file is situated within the Downloads folder: esp8266-20180511-v1.9.Four.bin.
Erasing ESP8266 Flash Reminiscence
Earlier than flashing the MicroPython firmware, you’ll want to erase the ESP8266 flash reminiscence. So, with your ESP8266 related to your pc, hold-down the “BOOT/FLASH” button in your ESP8266 board:
Whereas holding down the “BOOT/FLASH” button, run the next command to erase the ESP8266 flash reminiscence:
esptool.py –chip esp8266 erase_flash
When the “Erasing” course of begins, you possibly can launch the “BOOT/FLASH” button. After a couple of seconds, the ESP8266 flash reminiscence shall be erased.
Notice: if after the “Connecting …” message you retain seeing new dots showing, it signifies that your ESP8266 is just not in flashing mode. You could repeat all of the steps described earlier and maintain the “BOOT/FLASH” button once more to make sure that your ESP8266 goes into flashing mode and completes the erasing course of efficiently.
Flashing MicroPython Firmware on ESP8266 with esptool.py
Together with your ESP8266 flash reminiscence erased, you’ll be able to lastly flash the MicroPython firmware. You want your serial port identify (COM7 in our case) and the ESP8266 .bin file location. Substitute the subsequent command with your particulars:
esptool.py –chip esp8266 –port <serial_port> write_flash –flash_mode dio –flash_size detect 0x0 <esp8266-X.bin>
In our case, the ultimate command appears like this:
esptool.py –chip esp8266 –port COM4 write_flash –flash_mode dio –flash_size detect 0x0 esp8266-20180511-v1.9.Four.bin
Maintain down the “BOOT/FLASH“, earlier than operating the flash command. After a couple of seconds that is what you must see:
Your ESP8266 was efficiently flashed with MicroPython firmware!
Notice: in the event you obtain an error making an attempt to flash the firmware, run the command once more and be sure to are holding down the ESP8266 “BOOT/FLASH” button.
Wrapping Up
We hope you’ve discovered this tutorial helpful. Your ESP32/ESP8266 ought to now be flashed with MicroPython firmware. To study extra about MicroPython learn: Getting Began with MicroPython on ESP32 and ESP8266.
For those who appreciated this submit, you may like our subsequent ones, so be sure to subscribe to the RNT weblog and obtain our free electronics eBooks.
Really helpful Assets
The post Flashing MicroPython Firmware with esptool.py on ESP32 and ESP8266 appeared first on Playtab Tech.
1 note
·
View note
Text
Flashing MicroPython Firmware with esptool.py on ESP32 and ESP8266
This posts exhibits easy methods to flash MicroPython firmware on ESP32/ESP8266 boards utilizing the esptool.py. It really works on Home windows, Mac OS X, and Linux. For the official documentation, you possibly can go to the esptool.py GitHub web page.
Tip: for a neater technique to flash the ESP32/ESP8266 with MicroPython, we advocate studying this information to flash MicroPython with uPyCraft IDE. Nevertheless, we’ve just lately acquired feedback from our readers about having hassle putting in/utilizing uPyCraft IDE. For that cause, we’re posting an alternate technique utilizing the esptool.py software program.
Putting in esptool.py in your pc
To work with esptool.py, you’ll want both Python 2.7, Python three.Four or a more moderen Python set up on your system. We advocate utilizing Python three.7.X, so go to Python’s web site and set up it in your pc.
With Python three put in, open a Terminal window and set up the newest secure esptool.py launch with pip:
pip set up esptool
Observe: with some Python installations that command might not work and you’ll obtain an error. If that’s the case, attempt to set up esptool.py with:
pip3 set up esptool
python -m pip set up esptool
pip2 set up esptool
After putting in, you’ll have esptool.py put in into the default Python executables listing and you must have the ability to run it with the command esptool.py. In your Terminal window, run the next command:
esptool.py
If it was put in correctly, it ought to show an identical message (no matter your working system):
With esptool.py put in in your pc, you’ll be able to simply flash your ESP32 or ESP8266 boards with the MicroPython firmware. This publish is split in two elements, learn Half 1 or Half 2 relying on your board:
Half 1 – ESP32
Half 2 – ESP8266
Word: after putting in MicroPython firmware on your ESP32 or ESP8266, you possibly can return and use Arduino IDE once more. You simply have to add code utilizing Arduino IDE. Then, if you wish to use MicroPython once more, you must flash MicroPython firmware.
[Part 1 – ESP32] Downloading and Flashing the MicroPython Firmware on ESP32
To obtain the newest model of MicroPython firmware for the ESP32, go to the MicroPython Downloads web page and scroll all the best way right down to the ESP32 part.
You need to see an analogous net web page (see determine under) with the newest hyperlink to obtain the ESP32 .bin file – for instance: esp32-20181007-v1.9.Four-631-g338635ccc.bin.
Word: should you’re utilizing a unique board (like a PyBoard, WiPy, or different), go to MicroPython Downloads web page and obtain the correct firmware on your board.
Discovering the Serial Port Identify
It’s a bit totally different to seek out the Serial port identify in every working system, so for simplicity causes we advocate discovering your ESP serial port identify via the Arduino IDE. Comply with these steps:
Join your board to your pc
Open the Arduino IDE
Go to Instruments > Port
Save your ESP32 serial port identify (in our case it’s COM7)
Shut your Arduino IDE software program
Essential: for those who plug your ESP32 board to your pc, however you possibly can’t discover the ESP32 Port out there in your Arduino IDE, it may be certainly one of these two issues: 1. USB drivers lacking or 2. USB cable with out knowledge wires.
1. For those who don’t see your ESP’s COM port out there, this typically means you don’t have the USB drivers put in. Take a better take a look at the chip subsequent to the voltage regulator on board and examine its identify.
The ESP32 DEVKIT V1 DOIT board makes use of the CP2102 chip.
Go to Google and seek for your particular chip to seek out the drivers and set up them in your working system.
You possibly can obtain the CP2102 drivers on the Silicon Labs web site.
After they’re put in, restart the Arduino IDE and you must see the serial port within the Instruments > Port menu.
2. When you’ve got the drivers put in, however you possibly can’t see your gadget, double-check that you simply’re utilizing a USB cable with knowledge wires.
USB cables from powerbanks typically don’t have knowledge wires (they’re cost solely). So, your pc won’t ever set up a serial communication with your ESP32. Utilizing a a correct USB cable ought to clear up your drawback.
Discovering your MicroPython .bin file
After downloading the ESP32 .bin file, it must be in your Downloads folder. So, with your Terminal window, you’ll have to navigate to the Downloads folder utilizing the cd command:
cd Downloads
Record all information in your Downloads folder to make sure that’s the place the .bin file is situated. In Home windows, you employ:
dir
On Mac OS X or Linux, run the subsequent command:
ls
As you’ll be able to see within the previous screenshot, the ESP32 .bin file is situated within the Downloads folder: esp32-20190113-v1.9.Four-779-g5064df207.bin.
Erasing ESP32 Flash Reminiscence
Earlier than flashing the MicroPython firmware, it is advisable to erase the ESP32 flash reminiscence. So, with your ESP32 related to your pc, hold-down the “BOOT/FLASH” button in your ESP32 board:
Whereas holding down the “BOOT/FLASH” button, run the next command to erase the ESP32 flash reminiscence:
esptool.py –chip esp32 erase_flash
When the “Erasing” course of begins, you’ll be able to launch the “BOOT/FLASH” button. After a couple of seconds, the ESP32 flash reminiscence will probably be erased.
Word: if after the “Connecting …” message you retain seeing new dots showing, it signifies that your ESP32 shouldn’t be in flashing mode. It’s essential repeat all of the steps described earlier and maintain the “BOOT/FLASH” button once more to make sure that your ESP32 goes into flashing mode and completes the erasing course of efficiently.
Flashing MicroPython Firmware on ESP32 with esptool.py
Together with your ESP32 flash reminiscence erased, you possibly can lastly flash the MicroPython firmware. You want your serial port identify (COM7 in our case) and the ESP32 .bin file location. Substitute the subsequent command with your particulars:
esptool.py –chip esp32 –port <serial_port> write_flash -z 0x1000 <esp32-X.bin>
In our case, the ultimate command seems like this:
esptool.py –chip esp32 –port COM7 write_flash -z 0x1000 esp32-20190113-v1.9.Four-779-g5064df207.bin
Maintain down the “BOOT/FLASH“, earlier than operating the flash command. After a number of seconds that is what it is best to see:
Your ESP32 was efficiently flashed with MicroPython firmware!
Notice: in the event you obtain an error making an attempt to flash the firmware, run the command once more and be sure to are holding down the ESP32 “BOOT/FLASH” button.
[Part 2 – ESP8266] Downloading and Flashing the MicroPython Firmware on ESP8266
To obtain the newest model of MicroPython firmware for the ESP8266, go to the MicroPython Downloads web page and scroll all the best way right down to the ESP8266 part.
You must see an analogous net web page (see determine under) with the newest hyperlink to obtain the ESP8266 .bin file – for instance: esp8266-20180511-v1.9.Four.bin.
Observe: in case you’re utilizing a special board (like a PyBoard, WiPy, or different), go to MicroPython Downloads web page and obtain the proper firmware on your board.
Discovering the Serial Port Identify
It’s a bit totally different to seek out the Serial port identify in every working system, so for simplicity causes we advocate discovering your ESP serial port identify via the Arduino IDE. Comply with these steps:
Join your board to your pc
Open the Arduino IDE
Go to Instruments > Port
Save your ESP8266 serial port identify (in our case it’s COM4)
Shut your Arduino IDE software program
Necessary: when you plug your ESP8266 board to your pc, however you’ll be able to’t discover the ESP8266 Port out there in your Arduino, it may be certainly one of these two issues: 1. USB drivers lacking or 2. USB cable with out knowledge wires.
1. Should you don’t see your ESP’s COM port obtainable, this typically means you don’t have the USB drivers put in. Take a better take a look at the chip subsequent to the voltage regulator on board and examine its identify.
The ESP8266 ESP-12E NodeMCU board makes use of the CP2102 chip.
Go to Google and seek for your particular chip to seek out the drivers and set up them in your working system.
You possibly can obtain the CP2102 drivers on the Silicon Labs web site.
After they’re put in, restart the Arduino IDE and you need to see the serial port within the Instruments > Port menu.
2. When you’ve got the drivers put in, however you’ll be able to’t see your system, double-check that you simply’re utilizing a USB cable with knowledge wires.
USB cables from powerbanks typically don’t have knowledge wires (they’re cost solely). So, your pc won’t ever set up a serial communication with your ESP8266. Utilizing a a correct USB cable ought to remedy your drawback.
Discovering your MicroPython .bin file
After downloading the ESP8266 .bin file, it ought to be in your Downloads folder. So, with your Terminal window, you’ll have to navigate to the Downloads folder utilizing the cd command:
cd Downloads
Listing all information in your Downloads folder to make sure that’s the place the .bin file is situated. In Home windows, you employ:
dir
On Mac OS X or Linux, run the subsequent command:
ls
As you’ll be able to see within the previous screenshot, the ESP8266 .bin file is situated within the Downloads folder: esp8266-20180511-v1.9.Four.bin.
Erasing ESP8266 Flash Reminiscence
Earlier than flashing the MicroPython firmware, you’ll want to erase the ESP8266 flash reminiscence. So, with your ESP8266 related to your pc, hold-down the “BOOT/FLASH” button in your ESP8266 board:
Whereas holding down the “BOOT/FLASH” button, run the next command to erase the ESP8266 flash reminiscence:
esptool.py –chip esp8266 erase_flash
When the “Erasing” course of begins, you possibly can launch the “BOOT/FLASH” button. After a couple of seconds, the ESP8266 flash reminiscence shall be erased.
Notice: if after the “Connecting …” message you retain seeing new dots showing, it signifies that your ESP8266 is just not in flashing mode. You could repeat all of the steps described earlier and maintain the “BOOT/FLASH” button once more to make sure that your ESP8266 goes into flashing mode and completes the erasing course of efficiently.
Flashing MicroPython Firmware on ESP8266 with esptool.py
Together with your ESP8266 flash reminiscence erased, you’ll be able to lastly flash the MicroPython firmware. You want your serial port identify (COM7 in our case) and the ESP8266 .bin file location. Substitute the subsequent command with your particulars:
esptool.py –chip esp8266 –port <serial_port> write_flash –flash_mode dio –flash_size detect 0x0 <esp8266-X.bin>
In our case, the ultimate command appears like this:
esptool.py –chip esp8266 –port COM4 write_flash –flash_mode dio –flash_size detect 0x0 esp8266-20180511-v1.9.Four.bin
Maintain down the “BOOT/FLASH“, earlier than operating the flash command. After a couple of seconds that is what you must see:
Your ESP8266 was efficiently flashed with MicroPython firmware!
Notice: in the event you obtain an error making an attempt to flash the firmware, run the command once more and be sure to are holding down the ESP8266 “BOOT/FLASH” button.
Wrapping Up
We hope you’ve discovered this tutorial helpful. Your ESP32/ESP8266 ought to now be flashed with MicroPython firmware. To study extra about MicroPython learn: Getting Began with MicroPython on ESP32 and ESP8266.
For those who appreciated this submit, you may like our subsequent ones, so be sure to subscribe to the RNT weblog and obtain our free electronics eBooks.
Really helpful Assets
The post Flashing MicroPython Firmware with esptool.py on ESP32 and ESP8266 appeared first on Playtab Tech.
0 notes
Text
Flashing MicroPython Firmware with esptool.py on ESP32 and ESP8266
This posts exhibits easy methods to flash MicroPython firmware on ESP32/ESP8266 boards utilizing the esptool.py. It really works on Home windows, Mac OS X, and Linux. For the official documentation, you possibly can go to the esptool.py GitHub web page.
Tip: for a neater technique to flash the ESP32/ESP8266 with MicroPython, we advocate studying this information to flash MicroPython with uPyCraft IDE. Nevertheless, we’ve just lately acquired feedback from our readers about having hassle putting in/utilizing uPyCraft IDE. For that cause, we’re posting an alternate technique utilizing the esptool.py software program.
Putting in esptool.py in your pc
To work with esptool.py, you’ll want both Python 2.7, Python three.Four or a more moderen Python set up on your system. We advocate utilizing Python three.7.X, so go to Python’s web site and set up it in your pc.
With Python three put in, open a Terminal window and set up the newest secure esptool.py launch with pip:
pip set up esptool
Observe: with some Python installations that command might not work and you’ll obtain an error. If that’s the case, attempt to set up esptool.py with:
pip3 set up esptool
python -m pip set up esptool
pip2 set up esptool
After putting in, you’ll have esptool.py put in into the default Python executables listing and you must have the ability to run it with the command esptool.py. In your Terminal window, run the next command:
esptool.py
If it was put in correctly, it ought to show an identical message (no matter your working system):
With esptool.py put in in your pc, you’ll be able to simply flash your ESP32 or ESP8266 boards with the MicroPython firmware. This publish is split in two elements, learn Half 1 or Half 2 relying on your board:
Half 1 – ESP32
Half 2 – ESP8266
Word: after putting in MicroPython firmware on your ESP32 or ESP8266, you possibly can return and use Arduino IDE once more. You simply have to add code utilizing Arduino IDE. Then, if you wish to use MicroPython once more, you must flash MicroPython firmware.
[Part 1 – ESP32] Downloading and Flashing the MicroPython Firmware on ESP32
To obtain the newest model of MicroPython firmware for the ESP32, go to the MicroPython Downloads web page and scroll all the best way right down to the ESP32 part.
You need to see an analogous net web page (see determine under) with the newest hyperlink to obtain the ESP32 .bin file – for instance: esp32-20181007-v1.9.Four-631-g338635ccc.bin.
Word: should you’re utilizing a unique board (like a PyBoard, WiPy, or different), go to MicroPython Downloads web page and obtain the correct firmware on your board.
Discovering the Serial Port Identify
It’s a bit totally different to seek out the Serial port identify in every working system, so for simplicity causes we advocate discovering your ESP serial port identify via the Arduino IDE. Comply with these steps:
Join your board to your pc
Open the Arduino IDE
Go to Instruments > Port
Save your ESP32 serial port identify (in our case it’s COM7)
Shut your Arduino IDE software program
Essential: for those who plug your ESP32 board to your pc, however you possibly can’t discover the ESP32 Port out there in your Arduino IDE, it may be certainly one of these two issues: 1. USB drivers lacking or 2. USB cable with out knowledge wires.
1. For those who don’t see your ESP’s COM port out there, this typically means you don’t have the USB drivers put in. Take a better take a look at the chip subsequent to the voltage regulator on board and examine its identify.
The ESP32 DEVKIT V1 DOIT board makes use of the CP2102 chip.
Go to Google and seek for your particular chip to seek out the drivers and set up them in your working system.
You possibly can obtain the CP2102 drivers on the Silicon Labs web site.
After they’re put in, restart the Arduino IDE and you must see the serial port within the Instruments > Port menu.
2. When you’ve got the drivers put in, however you possibly can’t see your gadget, double-check that you simply’re utilizing a USB cable with knowledge wires.
USB cables from powerbanks typically don’t have knowledge wires (they’re cost solely). So, your pc won’t ever set up a serial communication with your ESP32. Utilizing a a correct USB cable ought to clear up your drawback.
Discovering your MicroPython .bin file
After downloading the ESP32 .bin file, it must be in your Downloads folder. So, with your Terminal window, you’ll have to navigate to the Downloads folder utilizing the cd command:
cd Downloads
Record all information in your Downloads folder to make sure that’s the place the .bin file is situated. In Home windows, you employ:
dir
On Mac OS X or Linux, run the subsequent command:
ls
As you’ll be able to see within the previous screenshot, the ESP32 .bin file is situated within the Downloads folder: esp32-20190113-v1.9.Four-779-g5064df207.bin.
Erasing ESP32 Flash Reminiscence
Earlier than flashing the MicroPython firmware, it is advisable to erase the ESP32 flash reminiscence. So, with your ESP32 related to your pc, hold-down the “BOOT/FLASH” button in your ESP32 board:
Whereas holding down the “BOOT/FLASH” button, run the next command to erase the ESP32 flash reminiscence:
esptool.py –chip esp32 erase_flash
When the “Erasing” course of begins, you’ll be able to launch the “BOOT/FLASH” button. After a couple of seconds, the ESP32 flash reminiscence will probably be erased.
Word: if after the “Connecting …” message you retain seeing new dots showing, it signifies that your ESP32 shouldn’t be in flashing mode. It’s essential repeat all of the steps described earlier and maintain the “BOOT/FLASH” button once more to make sure that your ESP32 goes into flashing mode and completes the erasing course of efficiently.
Flashing MicroPython Firmware on ESP32 with esptool.py
Together with your ESP32 flash reminiscence erased, you possibly can lastly flash the MicroPython firmware. You want your serial port identify (COM7 in our case) and the ESP32 .bin file location. Substitute the subsequent command with your particulars:
esptool.py –chip esp32 –port <serial_port> write_flash -z 0x1000 <esp32-X.bin>
In our case, the ultimate command seems like this:
esptool.py –chip esp32 –port COM7 write_flash -z 0x1000 esp32-20190113-v1.9.Four-779-g5064df207.bin
Maintain down the “BOOT/FLASH“, earlier than operating the flash command. After a number of seconds that is what it is best to see:
Your ESP32 was efficiently flashed with MicroPython firmware!
Notice: in the event you obtain an error making an attempt to flash the firmware, run the command once more and be sure to are holding down the ESP32 “BOOT/FLASH” button.
[Part 2 – ESP8266] Downloading and Flashing the MicroPython Firmware on ESP8266
To obtain the newest model of MicroPython firmware for the ESP8266, go to the MicroPython Downloads web page and scroll all the best way right down to the ESP8266 part.
You must see an analogous net web page (see determine under) with the newest hyperlink to obtain the ESP8266 .bin file – for instance: esp8266-20180511-v1.9.Four.bin.
Observe: in case you’re utilizing a special board (like a PyBoard, WiPy, or different), go to MicroPython Downloads web page and obtain the proper firmware on your board.
Discovering the Serial Port Identify
It’s a bit totally different to seek out the Serial port identify in every working system, so for simplicity causes we advocate discovering your ESP serial port identify via the Arduino IDE. Comply with these steps:
Join your board to your pc
Open the Arduino IDE
Go to Instruments > Port
Save your ESP8266 serial port identify (in our case it’s COM4)
Shut your Arduino IDE software program
Necessary: when you plug your ESP8266 board to your pc, however you’ll be able to’t discover the ESP8266 Port out there in your Arduino, it may be certainly one of these two issues: 1. USB drivers lacking or 2. USB cable with out knowledge wires.
1. Should you don’t see your ESP’s COM port obtainable, this typically means you don’t have the USB drivers put in. Take a better take a look at the chip subsequent to the voltage regulator on board and examine its identify.
The ESP8266 ESP-12E NodeMCU board makes use of the CP2102 chip.
Go to Google and seek for your particular chip to seek out the drivers and set up them in your working system.
You possibly can obtain the CP2102 drivers on the Silicon Labs web site.
After they’re put in, restart the Arduino IDE and you need to see the serial port within the Instruments > Port menu.
2. When you’ve got the drivers put in, however you’ll be able to’t see your system, double-check that you simply’re utilizing a USB cable with knowledge wires.
USB cables from powerbanks typically don’t have knowledge wires (they’re cost solely). So, your pc won’t ever set up a serial communication with your ESP8266. Utilizing a a correct USB cable ought to remedy your drawback.
Discovering your MicroPython .bin file
After downloading the ESP8266 .bin file, it ought to be in your Downloads folder. So, with your Terminal window, you’ll have to navigate to the Downloads folder utilizing the cd command:
cd Downloads
Listing all information in your Downloads folder to make sure that’s the place the .bin file is situated. In Home windows, you employ:
dir
On Mac OS X or Linux, run the subsequent command:
ls
As you’ll be able to see within the previous screenshot, the ESP8266 .bin file is situated within the Downloads folder: esp8266-20180511-v1.9.Four.bin.
Erasing ESP8266 Flash Reminiscence
Earlier than flashing the MicroPython firmware, you’ll want to erase the ESP8266 flash reminiscence. So, with your ESP8266 related to your pc, hold-down the “BOOT/FLASH” button in your ESP8266 board:
Whereas holding down the “BOOT/FLASH” button, run the next command to erase the ESP8266 flash reminiscence:
esptool.py –chip esp8266 erase_flash
When the “Erasing” course of begins, you possibly can launch the “BOOT/FLASH” button. After a couple of seconds, the ESP8266 flash reminiscence shall be erased.
Notice: if after the “Connecting …” message you retain seeing new dots showing, it signifies that your ESP8266 is just not in flashing mode. You could repeat all of the steps described earlier and maintain the “BOOT/FLASH” button once more to make sure that your ESP8266 goes into flashing mode and completes the erasing course of efficiently.
Flashing MicroPython Firmware on ESP8266 with esptool.py
Together with your ESP8266 flash reminiscence erased, you’ll be able to lastly flash the MicroPython firmware. You want your serial port identify (COM7 in our case) and the ESP8266 .bin file location. Substitute the subsequent command with your particulars:
esptool.py –chip esp8266 –port <serial_port> write_flash –flash_mode dio –flash_size detect 0x0 <esp8266-X.bin>
In our case, the ultimate command appears like this:
esptool.py –chip esp8266 –port COM4 write_flash –flash_mode dio –flash_size detect 0x0 esp8266-20180511-v1.9.Four.bin
Maintain down the “BOOT/FLASH“, earlier than operating the flash command. After a couple of seconds that is what you must see:
Your ESP8266 was efficiently flashed with MicroPython firmware!
Notice: in the event you obtain an error making an attempt to flash the firmware, run the command once more and be sure to are holding down the ESP8266 “BOOT/FLASH” button.
Wrapping Up
We hope you’ve discovered this tutorial helpful. Your ESP32/ESP8266 ought to now be flashed with MicroPython firmware. To study extra about MicroPython learn: Getting Began with MicroPython on ESP32 and ESP8266.
For those who appreciated this submit, you may like our subsequent ones, so be sure to subscribe to the RNT weblog and obtain our free electronics eBooks.
Really helpful Assets
The post Flashing MicroPython Firmware with esptool.py on ESP32 and ESP8266 appeared first on Playtab Tech.
0 notes
Text
Flashing MicroPython Firmware with esptool.py on ESP32 and ESP8266
This posts exhibits easy methods to flash MicroPython firmware on ESP32/ESP8266 boards utilizing the esptool.py. It really works on Home windows, Mac OS X, and Linux. For the official documentation, you possibly can go to the esptool.py GitHub web page.
Tip: for a neater technique to flash the ESP32/ESP8266 with MicroPython, we advocate studying this information to flash MicroPython with uPyCraft IDE. Nevertheless, we’ve just lately acquired feedback from our readers about having hassle putting in/utilizing uPyCraft IDE. For that cause, we’re posting an alternate technique utilizing the esptool.py software program.
Putting in esptool.py in your pc
To work with esptool.py, you’ll want both Python 2.7, Python three.Four or a more moderen Python set up on your system. We advocate utilizing Python three.7.X, so go to Python’s web site and set up it in your pc.
With Python three put in, open a Terminal window and set up the newest secure esptool.py launch with pip:
pip set up esptool
Observe: with some Python installations that command might not work and you’ll obtain an error. If that’s the case, attempt to set up esptool.py with:
pip3 set up esptool
python -m pip set up esptool
pip2 set up esptool
After putting in, you’ll have esptool.py put in into the default Python executables listing and you must have the ability to run it with the command esptool.py. In your Terminal window, run the next command:
esptool.py
If it was put in correctly, it ought to show an identical message (no matter your working system):
With esptool.py put in in your pc, you’ll be able to simply flash your ESP32 or ESP8266 boards with the MicroPython firmware. This publish is split in two elements, learn Half 1 or Half 2 relying on your board:
Half 1 – ESP32
Half 2 – ESP8266
Word: after putting in MicroPython firmware on your ESP32 or ESP8266, you possibly can return and use Arduino IDE once more. You simply have to add code utilizing Arduino IDE. Then, if you wish to use MicroPython once more, you must flash MicroPython firmware.
[Part 1 – ESP32] Downloading and Flashing the MicroPython Firmware on ESP32
To obtain the newest model of MicroPython firmware for the ESP32, go to the MicroPython Downloads web page and scroll all the best way right down to the ESP32 part.
You need to see an analogous net web page (see determine under) with the newest hyperlink to obtain the ESP32 .bin file – for instance: esp32-20181007-v1.9.Four-631-g338635ccc.bin.
Word: should you’re utilizing a unique board (like a PyBoard, WiPy, or different), go to MicroPython Downloads web page and obtain the correct firmware on your board.
Discovering the Serial Port Identify
It’s a bit totally different to seek out the Serial port identify in every working system, so for simplicity causes we advocate discovering your ESP serial port identify via the Arduino IDE. Comply with these steps:
Join your board to your pc
Open the Arduino IDE
Go to Instruments > Port
Save your ESP32 serial port identify (in our case it’s COM7)
Shut your Arduino IDE software program
Essential: for those who plug your ESP32 board to your pc, however you possibly can’t discover the ESP32 Port out there in your Arduino IDE, it may be certainly one of these two issues: 1. USB drivers lacking or 2. USB cable with out knowledge wires.
1. For those who don’t see your ESP’s COM port out there, this typically means you don’t have the USB drivers put in. Take a better take a look at the chip subsequent to the voltage regulator on board and examine its identify.
The ESP32 DEVKIT V1 DOIT board makes use of the CP2102 chip.
Go to Google and seek for your particular chip to seek out the drivers and set up them in your working system.
You possibly can obtain the CP2102 drivers on the Silicon Labs web site.
After they’re put in, restart the Arduino IDE and you must see the serial port within the Instruments > Port menu.
2. When you’ve got the drivers put in, however you possibly can’t see your gadget, double-check that you simply’re utilizing a USB cable with knowledge wires.
USB cables from powerbanks typically don’t have knowledge wires (they’re cost solely). So, your pc won’t ever set up a serial communication with your ESP32. Utilizing a a correct USB cable ought to clear up your drawback.
Discovering your MicroPython .bin file
After downloading the ESP32 .bin file, it must be in your Downloads folder. So, with your Terminal window, you’ll have to navigate to the Downloads folder utilizing the cd command:
cd Downloads
Record all information in your Downloads folder to make sure that’s the place the .bin file is situated. In Home windows, you employ:
dir
On Mac OS X or Linux, run the subsequent command:
ls
As you’ll be able to see within the previous screenshot, the ESP32 .bin file is situated within the Downloads folder: esp32-20190113-v1.9.Four-779-g5064df207.bin.
Erasing ESP32 Flash Reminiscence
Earlier than flashing the MicroPython firmware, it is advisable to erase the ESP32 flash reminiscence. So, with your ESP32 related to your pc, hold-down the “BOOT/FLASH” button in your ESP32 board:
Whereas holding down the “BOOT/FLASH” button, run the next command to erase the ESP32 flash reminiscence:
esptool.py –chip esp32 erase_flash
When the “Erasing” course of begins, you’ll be able to launch the “BOOT/FLASH” button. After a couple of seconds, the ESP32 flash reminiscence will probably be erased.
Word: if after the “Connecting …” message you retain seeing new dots showing, it signifies that your ESP32 shouldn’t be in flashing mode. It’s essential repeat all of the steps described earlier and maintain the “BOOT/FLASH” button once more to make sure that your ESP32 goes into flashing mode and completes the erasing course of efficiently.
Flashing MicroPython Firmware on ESP32 with esptool.py
Together with your ESP32 flash reminiscence erased, you possibly can lastly flash the MicroPython firmware. You want your serial port identify (COM7 in our case) and the ESP32 .bin file location. Substitute the subsequent command with your particulars:
esptool.py –chip esp32 –port <serial_port> write_flash -z 0x1000 <esp32-X.bin>
In our case, the ultimate command seems like this:
esptool.py –chip esp32 –port COM7 write_flash -z 0x1000 esp32-20190113-v1.9.Four-779-g5064df207.bin
Maintain down the “BOOT/FLASH“, earlier than operating the flash command. After a number of seconds that is what it is best to see:
Your ESP32 was efficiently flashed with MicroPython firmware!
Notice: in the event you obtain an error making an attempt to flash the firmware, run the command once more and be sure to are holding down the ESP32 “BOOT/FLASH” button.
[Part 2 – ESP8266] Downloading and Flashing the MicroPython Firmware on ESP8266
To obtain the newest model of MicroPython firmware for the ESP8266, go to the MicroPython Downloads web page and scroll all the best way right down to the ESP8266 part.
You must see an analogous net web page (see determine under) with the newest hyperlink to obtain the ESP8266 .bin file – for instance: esp8266-20180511-v1.9.Four.bin.
Observe: in case you’re utilizing a special board (like a PyBoard, WiPy, or different), go to MicroPython Downloads web page and obtain the proper firmware on your board.
Discovering the Serial Port Identify
It’s a bit totally different to seek out the Serial port identify in every working system, so for simplicity causes we advocate discovering your ESP serial port identify via the Arduino IDE. Comply with these steps:
Join your board to your pc
Open the Arduino IDE
Go to Instruments > Port
Save your ESP8266 serial port identify (in our case it’s COM4)
Shut your Arduino IDE software program
Necessary: when you plug your ESP8266 board to your pc, however you’ll be able to’t discover the ESP8266 Port out there in your Arduino, it may be certainly one of these two issues: 1. USB drivers lacking or 2. USB cable with out knowledge wires.
1. Should you don’t see your ESP’s COM port obtainable, this typically means you don’t have the USB drivers put in. Take a better take a look at the chip subsequent to the voltage regulator on board and examine its identify.
The ESP8266 ESP-12E NodeMCU board makes use of the CP2102 chip.
Go to Google and seek for your particular chip to seek out the drivers and set up them in your working system.
You possibly can obtain the CP2102 drivers on the Silicon Labs web site.
After they’re put in, restart the Arduino IDE and you need to see the serial port within the Instruments > Port menu.
2. When you’ve got the drivers put in, however you’ll be able to’t see your system, double-check that you simply’re utilizing a USB cable with knowledge wires.
USB cables from powerbanks typically don’t have knowledge wires (they’re cost solely). So, your pc won’t ever set up a serial communication with your ESP8266. Utilizing a a correct USB cable ought to remedy your drawback.
Discovering your MicroPython .bin file
After downloading the ESP8266 .bin file, it ought to be in your Downloads folder. So, with your Terminal window, you’ll have to navigate to the Downloads folder utilizing the cd command:
cd Downloads
Listing all information in your Downloads folder to make sure that’s the place the .bin file is situated. In Home windows, you employ:
dir
On Mac OS X or Linux, run the subsequent command:
ls
As you’ll be able to see within the previous screenshot, the ESP8266 .bin file is situated within the Downloads folder: esp8266-20180511-v1.9.Four.bin.
Erasing ESP8266 Flash Reminiscence
Earlier than flashing the MicroPython firmware, you’ll want to erase the ESP8266 flash reminiscence. So, with your ESP8266 related to your pc, hold-down the “BOOT/FLASH” button in your ESP8266 board:
Whereas holding down the “BOOT/FLASH” button, run the next command to erase the ESP8266 flash reminiscence:
esptool.py –chip esp8266 erase_flash
When the “Erasing” course of begins, you possibly can launch the “BOOT/FLASH” button. After a couple of seconds, the ESP8266 flash reminiscence shall be erased.
Notice: if after the “Connecting …” message you retain seeing new dots showing, it signifies that your ESP8266 is just not in flashing mode. You could repeat all of the steps described earlier and maintain the “BOOT/FLASH” button once more to make sure that your ESP8266 goes into flashing mode and completes the erasing course of efficiently.
Flashing MicroPython Firmware on ESP8266 with esptool.py
Together with your ESP8266 flash reminiscence erased, you’ll be able to lastly flash the MicroPython firmware. You want your serial port identify (COM7 in our case) and the ESP8266 .bin file location. Substitute the subsequent command with your particulars:
esptool.py –chip esp8266 –port <serial_port> write_flash –flash_mode dio –flash_size detect 0x0 <esp8266-X.bin>
In our case, the ultimate command appears like this:
esptool.py –chip esp8266 –port COM4 write_flash –flash_mode dio –flash_size detect 0x0 esp8266-20180511-v1.9.Four.bin
Maintain down the “BOOT/FLASH“, earlier than operating the flash command. After a couple of seconds that is what you must see:
Your ESP8266 was efficiently flashed with MicroPython firmware!
Notice: in the event you obtain an error making an attempt to flash the firmware, run the command once more and be sure to are holding down the ESP8266 “BOOT/FLASH” button.
Wrapping Up
We hope you’ve discovered this tutorial helpful. Your ESP32/ESP8266 ought to now be flashed with MicroPython firmware. To study extra about MicroPython learn: Getting Began with MicroPython on ESP32 and ESP8266.
For those who appreciated this submit, you may like our subsequent ones, so be sure to subscribe to the RNT weblog and obtain our free electronics eBooks.
Really helpful Assets
The post Flashing MicroPython Firmware with esptool.py on ESP32 and ESP8266 appeared first on Playtab Tech.
0 notes
Text
Flashing MicroPython Firmware with esptool.py on ESP32 and ESP8266
This posts exhibits easy methods to flash MicroPython firmware on ESP32/ESP8266 boards utilizing the esptool.py. It really works on Home windows, Mac OS X, and Linux. For the official documentation, you possibly can go to the esptool.py GitHub web page.
Tip: for a neater technique to flash the ESP32/ESP8266 with MicroPython, we advocate studying this information to flash MicroPython with uPyCraft IDE. Nevertheless, we’ve just lately acquired feedback from our readers about having hassle putting in/utilizing uPyCraft IDE. For that cause, we’re posting an alternate technique utilizing the esptool.py software program.
Putting in esptool.py in your pc
To work with esptool.py, you’ll want both Python 2.7, Python three.Four or a more moderen Python set up on your system. We advocate utilizing Python three.7.X, so go to Python’s web site and set up it in your pc.
With Python three put in, open a Terminal window and set up the newest secure esptool.py launch with pip:
pip set up esptool
Observe: with some Python installations that command might not work and you’ll obtain an error. If that’s the case, attempt to set up esptool.py with:
pip3 set up esptool
python -m pip set up esptool
pip2 set up esptool
After putting in, you’ll have esptool.py put in into the default Python executables listing and you must have the ability to run it with the command esptool.py. In your Terminal window, run the next command:
esptool.py
If it was put in correctly, it ought to show an identical message (no matter your working system):
With esptool.py put in in your pc, you’ll be able to simply flash your ESP32 or ESP8266 boards with the MicroPython firmware. This publish is split in two elements, learn Half 1 or Half 2 relying on your board:
Half 1 – ESP32
Half 2 – ESP8266
Word: after putting in MicroPython firmware on your ESP32 or ESP8266, you possibly can return and use Arduino IDE once more. You simply have to add code utilizing Arduino IDE. Then, if you wish to use MicroPython once more, you must flash MicroPython firmware.
[Part 1 – ESP32] Downloading and Flashing the MicroPython Firmware on ESP32
To obtain the newest model of MicroPython firmware for the ESP32, go to the MicroPython Downloads web page and scroll all the best way right down to the ESP32 part.
You need to see an analogous net web page (see determine under) with the newest hyperlink to obtain the ESP32 .bin file – for instance: esp32-20181007-v1.9.Four-631-g338635ccc.bin.
Word: should you’re utilizing a unique board (like a PyBoard, WiPy, or different), go to MicroPython Downloads web page and obtain the correct firmware on your board.
Discovering the Serial Port Identify
It’s a bit totally different to seek out the Serial port identify in every working system, so for simplicity causes we advocate discovering your ESP serial port identify via the Arduino IDE. Comply with these steps:
Join your board to your pc
Open the Arduino IDE
Go to Instruments > Port
Save your ESP32 serial port identify (in our case it’s COM7)
Shut your Arduino IDE software program
Essential: for those who plug your ESP32 board to your pc, however you possibly can’t discover the ESP32 Port out there in your Arduino IDE, it may be certainly one of these two issues: 1. USB drivers lacking or 2. USB cable with out knowledge wires.
1. For those who don’t see your ESP’s COM port out there, this typically means you don’t have the USB drivers put in. Take a better take a look at the chip subsequent to the voltage regulator on board and examine its identify.
The ESP32 DEVKIT V1 DOIT board makes use of the CP2102 chip.
Go to Google and seek for your particular chip to seek out the drivers and set up them in your working system.
You possibly can obtain the CP2102 drivers on the Silicon Labs web site.
After they’re put in, restart the Arduino IDE and you must see the serial port within the Instruments > Port menu.
2. When you’ve got the drivers put in, however you possibly can’t see your gadget, double-check that you simply’re utilizing a USB cable with knowledge wires.
USB cables from powerbanks typically don’t have knowledge wires (they’re cost solely). So, your pc won’t ever set up a serial communication with your ESP32. Utilizing a a correct USB cable ought to clear up your drawback.
Discovering your MicroPython .bin file
After downloading the ESP32 .bin file, it must be in your Downloads folder. So, with your Terminal window, you’ll have to navigate to the Downloads folder utilizing the cd command:
cd Downloads
Record all information in your Downloads folder to make sure that’s the place the .bin file is situated. In Home windows, you employ:
dir
On Mac OS X or Linux, run the subsequent command:
ls
As you’ll be able to see within the previous screenshot, the ESP32 .bin file is situated within the Downloads folder: esp32-20190113-v1.9.Four-779-g5064df207.bin.
Erasing ESP32 Flash Reminiscence
Earlier than flashing the MicroPython firmware, it is advisable to erase the ESP32 flash reminiscence. So, with your ESP32 related to your pc, hold-down the “BOOT/FLASH” button in your ESP32 board:
Whereas holding down the “BOOT/FLASH” button, run the next command to erase the ESP32 flash reminiscence:
esptool.py –chip esp32 erase_flash
When the “Erasing” course of begins, you’ll be able to launch the “BOOT/FLASH” button. After a couple of seconds, the ESP32 flash reminiscence will probably be erased.
Word: if after the “Connecting …” message you retain seeing new dots showing, it signifies that your ESP32 shouldn’t be in flashing mode. It’s essential repeat all of the steps described earlier and maintain the “BOOT/FLASH” button once more to make sure that your ESP32 goes into flashing mode and completes the erasing course of efficiently.
Flashing MicroPython Firmware on ESP32 with esptool.py
Together with your ESP32 flash reminiscence erased, you possibly can lastly flash the MicroPython firmware. You want your serial port identify (COM7 in our case) and the ESP32 .bin file location. Substitute the subsequent command with your particulars:
esptool.py –chip esp32 –port <serial_port> write_flash -z 0x1000 <esp32-X.bin>
In our case, the ultimate command seems like this:
esptool.py –chip esp32 –port COM7 write_flash -z 0x1000 esp32-20190113-v1.9.Four-779-g5064df207.bin
Maintain down the “BOOT/FLASH“, earlier than operating the flash command. After a number of seconds that is what it is best to see:
Your ESP32 was efficiently flashed with MicroPython firmware!
Notice: in the event you obtain an error making an attempt to flash the firmware, run the command once more and be sure to are holding down the ESP32 “BOOT/FLASH” button.
[Part 2 – ESP8266] Downloading and Flashing the MicroPython Firmware on ESP8266
To obtain the newest model of MicroPython firmware for the ESP8266, go to the MicroPython Downloads web page and scroll all the best way right down to the ESP8266 part.
You must see an analogous net web page (see determine under) with the newest hyperlink to obtain the ESP8266 .bin file – for instance: esp8266-20180511-v1.9.Four.bin.
Observe: in case you’re utilizing a special board (like a PyBoard, WiPy, or different), go to MicroPython Downloads web page and obtain the proper firmware on your board.
Discovering the Serial Port Identify
It’s a bit totally different to seek out the Serial port identify in every working system, so for simplicity causes we advocate discovering your ESP serial port identify via the Arduino IDE. Comply with these steps:
Join your board to your pc
Open the Arduino IDE
Go to Instruments > Port
Save your ESP8266 serial port identify (in our case it’s COM4)
Shut your Arduino IDE software program
Necessary: when you plug your ESP8266 board to your pc, however you’ll be able to’t discover the ESP8266 Port out there in your Arduino, it may be certainly one of these two issues: 1. USB drivers lacking or 2. USB cable with out knowledge wires.
1. Should you don’t see your ESP’s COM port obtainable, this typically means you don’t have the USB drivers put in. Take a better take a look at the chip subsequent to the voltage regulator on board and examine its identify.
The ESP8266 ESP-12E NodeMCU board makes use of the CP2102 chip.
Go to Google and seek for your particular chip to seek out the drivers and set up them in your working system.
You possibly can obtain the CP2102 drivers on the Silicon Labs web site.
After they’re put in, restart the Arduino IDE and you need to see the serial port within the Instruments > Port menu.
2. When you’ve got the drivers put in, however you’ll be able to’t see your system, double-check that you simply’re utilizing a USB cable with knowledge wires.
USB cables from powerbanks typically don’t have knowledge wires (they’re cost solely). So, your pc won’t ever set up a serial communication with your ESP8266. Utilizing a a correct USB cable ought to remedy your drawback.
Discovering your MicroPython .bin file
After downloading the ESP8266 .bin file, it ought to be in your Downloads folder. So, with your Terminal window, you’ll have to navigate to the Downloads folder utilizing the cd command:
cd Downloads
Listing all information in your Downloads folder to make sure that’s the place the .bin file is situated. In Home windows, you employ:
dir
On Mac OS X or Linux, run the subsequent command:
ls
As you’ll be able to see within the previous screenshot, the ESP8266 .bin file is situated within the Downloads folder: esp8266-20180511-v1.9.Four.bin.
Erasing ESP8266 Flash Reminiscence
Earlier than flashing the MicroPython firmware, you’ll want to erase the ESP8266 flash reminiscence. So, with your ESP8266 related to your pc, hold-down the “BOOT/FLASH” button in your ESP8266 board:
Whereas holding down the “BOOT/FLASH” button, run the next command to erase the ESP8266 flash reminiscence:
esptool.py –chip esp8266 erase_flash
When the “Erasing” course of begins, you possibly can launch the “BOOT/FLASH” button. After a couple of seconds, the ESP8266 flash reminiscence shall be erased.
Notice: if after the “Connecting …” message you retain seeing new dots showing, it signifies that your ESP8266 is just not in flashing mode. You could repeat all of the steps described earlier and maintain the “BOOT/FLASH” button once more to make sure that your ESP8266 goes into flashing mode and completes the erasing course of efficiently.
Flashing MicroPython Firmware on ESP8266 with esptool.py
Together with your ESP8266 flash reminiscence erased, you’ll be able to lastly flash the MicroPython firmware. You want your serial port identify (COM7 in our case) and the ESP8266 .bin file location. Substitute the subsequent command with your particulars:
esptool.py –chip esp8266 –port <serial_port> write_flash –flash_mode dio –flash_size detect 0x0 <esp8266-X.bin>
In our case, the ultimate command appears like this:
esptool.py –chip esp8266 –port COM4 write_flash –flash_mode dio –flash_size detect 0x0 esp8266-20180511-v1.9.Four.bin
Maintain down the “BOOT/FLASH“, earlier than operating the flash command. After a couple of seconds that is what you must see:
Your ESP8266 was efficiently flashed with MicroPython firmware!
Notice: in the event you obtain an error making an attempt to flash the firmware, run the command once more and be sure to are holding down the ESP8266 “BOOT/FLASH” button.
Wrapping Up
We hope you’ve discovered this tutorial helpful. Your ESP32/ESP8266 ought to now be flashed with MicroPython firmware. To study extra about MicroPython learn: Getting Began with MicroPython on ESP32 and ESP8266.
For those who appreciated this submit, you may like our subsequent ones, so be sure to subscribe to the RNT weblog and obtain our free electronics eBooks.
Really helpful Assets
The post Flashing MicroPython Firmware with esptool.py on ESP32 and ESP8266 appeared first on Playtab Tech.
0 notes
Text
Flashing MicroPython Firmware with esptool.py on ESP32 and ESP8266
This posts exhibits easy methods to flash MicroPython firmware on ESP32/ESP8266 boards utilizing the esptool.py. It really works on Home windows, Mac OS X, and Linux. For the official documentation, you possibly can go to the esptool.py GitHub web page.
Tip: for a neater technique to flash the ESP32/ESP8266 with MicroPython, we advocate studying this information to flash MicroPython with uPyCraft IDE. Nevertheless, we’ve just lately acquired feedback from our readers about having hassle putting in/utilizing uPyCraft IDE. For that cause, we’re posting an alternate technique utilizing the esptool.py software program.
Putting in esptool.py in your pc
To work with esptool.py, you’ll want both Python 2.7, Python three.Four or a more moderen Python set up on your system. We advocate utilizing Python three.7.X, so go to Python’s web site and set up it in your pc.
With Python three put in, open a Terminal window and set up the newest secure esptool.py launch with pip:
pip set up esptool
Observe: with some Python installations that command might not work and you’ll obtain an error. If that’s the case, attempt to set up esptool.py with:
pip3 set up esptool
python -m pip set up esptool
pip2 set up esptool
After putting in, you’ll have esptool.py put in into the default Python executables listing and you must have the ability to run it with the command esptool.py. In your Terminal window, run the next command:
esptool.py
If it was put in correctly, it ought to show an identical message (no matter your working system):
With esptool.py put in in your pc, you’ll be able to simply flash your ESP32 or ESP8266 boards with the MicroPython firmware. This publish is split in two elements, learn Half 1 or Half 2 relying on your board:
Half 1 – ESP32
Half 2 – ESP8266
Word: after putting in MicroPython firmware on your ESP32 or ESP8266, you possibly can return and use Arduino IDE once more. You simply have to add code utilizing Arduino IDE. Then, if you wish to use MicroPython once more, you must flash MicroPython firmware.
[Part 1 – ESP32] Downloading and Flashing the MicroPython Firmware on ESP32
To obtain the newest model of MicroPython firmware for the ESP32, go to the MicroPython Downloads web page and scroll all the best way right down to the ESP32 part.
You need to see an analogous net web page (see determine under) with the newest hyperlink to obtain the ESP32 .bin file – for instance: esp32-20181007-v1.9.Four-631-g338635ccc.bin.
Word: should you’re utilizing a unique board (like a PyBoard, WiPy, or different), go to MicroPython Downloads web page and obtain the correct firmware on your board.
Discovering the Serial Port Identify
It’s a bit totally different to seek out the Serial port identify in every working system, so for simplicity causes we advocate discovering your ESP serial port identify via the Arduino IDE. Comply with these steps:
Join your board to your pc
Open the Arduino IDE
Go to Instruments > Port
Save your ESP32 serial port identify (in our case it’s COM7)
Shut your Arduino IDE software program
Essential: for those who plug your ESP32 board to your pc, however you possibly can’t discover the ESP32 Port out there in your Arduino IDE, it may be certainly one of these two issues: 1. USB drivers lacking or 2. USB cable with out knowledge wires.
1. For those who don’t see your ESP’s COM port out there, this typically means you don’t have the USB drivers put in. Take a better take a look at the chip subsequent to the voltage regulator on board and examine its identify.
The ESP32 DEVKIT V1 DOIT board makes use of the CP2102 chip.
Go to Google and seek for your particular chip to seek out the drivers and set up them in your working system.
You possibly can obtain the CP2102 drivers on the Silicon Labs web site.
After they’re put in, restart the Arduino IDE and you must see the serial port within the Instruments > Port menu.
2. When you’ve got the drivers put in, however you possibly can’t see your gadget, double-check that you simply’re utilizing a USB cable with knowledge wires.
USB cables from powerbanks typically don’t have knowledge wires (they’re cost solely). So, your pc won’t ever set up a serial communication with your ESP32. Utilizing a a correct USB cable ought to clear up your drawback.
Discovering your MicroPython .bin file
After downloading the ESP32 .bin file, it must be in your Downloads folder. So, with your Terminal window, you’ll have to navigate to the Downloads folder utilizing the cd command:
cd Downloads
Record all information in your Downloads folder to make sure that’s the place the .bin file is situated. In Home windows, you employ:
dir
On Mac OS X or Linux, run the subsequent command:
ls
As you’ll be able to see within the previous screenshot, the ESP32 .bin file is situated within the Downloads folder: esp32-20190113-v1.9.Four-779-g5064df207.bin.
Erasing ESP32 Flash Reminiscence
Earlier than flashing the MicroPython firmware, it is advisable to erase the ESP32 flash reminiscence. So, with your ESP32 related to your pc, hold-down the “BOOT/FLASH” button in your ESP32 board:
Whereas holding down the “BOOT/FLASH” button, run the next command to erase the ESP32 flash reminiscence:
esptool.py –chip esp32 erase_flash
When the “Erasing” course of begins, you’ll be able to launch the “BOOT/FLASH” button. After a couple of seconds, the ESP32 flash reminiscence will probably be erased.
Word: if after the “Connecting …” message you retain seeing new dots showing, it signifies that your ESP32 shouldn’t be in flashing mode. It’s essential repeat all of the steps described earlier and maintain the “BOOT/FLASH” button once more to make sure that your ESP32 goes into flashing mode and completes the erasing course of efficiently.
Flashing MicroPython Firmware on ESP32 with esptool.py
Together with your ESP32 flash reminiscence erased, you possibly can lastly flash the MicroPython firmware. You want your serial port identify (COM7 in our case) and the ESP32 .bin file location. Substitute the subsequent command with your particulars:
esptool.py –chip esp32 –port <serial_port> write_flash -z 0x1000 <esp32-X.bin>
In our case, the ultimate command seems like this:
esptool.py –chip esp32 –port COM7 write_flash -z 0x1000 esp32-20190113-v1.9.Four-779-g5064df207.bin
Maintain down the “BOOT/FLASH“, earlier than operating the flash command. After a number of seconds that is what it is best to see:
Your ESP32 was efficiently flashed with MicroPython firmware!
Notice: in the event you obtain an error making an attempt to flash the firmware, run the command once more and be sure to are holding down the ESP32 “BOOT/FLASH” button.
[Part 2 – ESP8266] Downloading and Flashing the MicroPython Firmware on ESP8266
To obtain the newest model of MicroPython firmware for the ESP8266, go to the MicroPython Downloads web page and scroll all the best way right down to the ESP8266 part.
You must see an analogous net web page (see determine under) with the newest hyperlink to obtain the ESP8266 .bin file – for instance: esp8266-20180511-v1.9.Four.bin.
Observe: in case you’re utilizing a special board (like a PyBoard, WiPy, or different), go to MicroPython Downloads web page and obtain the proper firmware on your board.
Discovering the Serial Port Identify
It’s a bit totally different to seek out the Serial port identify in every working system, so for simplicity causes we advocate discovering your ESP serial port identify via the Arduino IDE. Comply with these steps:
Join your board to your pc
Open the Arduino IDE
Go to Instruments > Port
Save your ESP8266 serial port identify (in our case it’s COM4)
Shut your Arduino IDE software program
Necessary: when you plug your ESP8266 board to your pc, however you’ll be able to’t discover the ESP8266 Port out there in your Arduino, it may be certainly one of these two issues: 1. USB drivers lacking or 2. USB cable with out knowledge wires.
1. Should you don’t see your ESP’s COM port obtainable, this typically means you don’t have the USB drivers put in. Take a better take a look at the chip subsequent to the voltage regulator on board and examine its identify.
The ESP8266 ESP-12E NodeMCU board makes use of the CP2102 chip.
Go to Google and seek for your particular chip to seek out the drivers and set up them in your working system.
You possibly can obtain the CP2102 drivers on the Silicon Labs web site.
After they’re put in, restart the Arduino IDE and you need to see the serial port within the Instruments > Port menu.
2. When you’ve got the drivers put in, however you’ll be able to’t see your system, double-check that you simply’re utilizing a USB cable with knowledge wires.
USB cables from powerbanks typically don’t have knowledge wires (they’re cost solely). So, your pc won’t ever set up a serial communication with your ESP8266. Utilizing a a correct USB cable ought to remedy your drawback.
Discovering your MicroPython .bin file
After downloading the ESP8266 .bin file, it ought to be in your Downloads folder. So, with your Terminal window, you’ll have to navigate to the Downloads folder utilizing the cd command:
cd Downloads
Listing all information in your Downloads folder to make sure that’s the place the .bin file is situated. In Home windows, you employ:
dir
On Mac OS X or Linux, run the subsequent command:
ls
As you’ll be able to see within the previous screenshot, the ESP8266 .bin file is situated within the Downloads folder: esp8266-20180511-v1.9.Four.bin.
Erasing ESP8266 Flash Reminiscence
Earlier than flashing the MicroPython firmware, you’ll want to erase the ESP8266 flash reminiscence. So, with your ESP8266 related to your pc, hold-down the “BOOT/FLASH” button in your ESP8266 board:
Whereas holding down the “BOOT/FLASH” button, run the next command to erase the ESP8266 flash reminiscence:
esptool.py –chip esp8266 erase_flash
When the “Erasing” course of begins, you possibly can launch the “BOOT/FLASH” button. After a couple of seconds, the ESP8266 flash reminiscence shall be erased.
Notice: if after the “Connecting …” message you retain seeing new dots showing, it signifies that your ESP8266 is just not in flashing mode. You could repeat all of the steps described earlier and maintain the “BOOT/FLASH” button once more to make sure that your ESP8266 goes into flashing mode and completes the erasing course of efficiently.
Flashing MicroPython Firmware on ESP8266 with esptool.py
Together with your ESP8266 flash reminiscence erased, you’ll be able to lastly flash the MicroPython firmware. You want your serial port identify (COM7 in our case) and the ESP8266 .bin file location. Substitute the subsequent command with your particulars:
esptool.py –chip esp8266 –port <serial_port> write_flash –flash_mode dio –flash_size detect 0x0 <esp8266-X.bin>
In our case, the ultimate command appears like this:
esptool.py –chip esp8266 –port COM4 write_flash –flash_mode dio –flash_size detect 0x0 esp8266-20180511-v1.9.Four.bin
Maintain down the “BOOT/FLASH“, earlier than operating the flash command. After a couple of seconds that is what you must see:
Your ESP8266 was efficiently flashed with MicroPython firmware!
Notice: in the event you obtain an error making an attempt to flash the firmware, run the command once more and be sure to are holding down the ESP8266 “BOOT/FLASH” button.
Wrapping Up
We hope you’ve discovered this tutorial helpful. Your ESP32/ESP8266 ought to now be flashed with MicroPython firmware. To study extra about MicroPython learn: Getting Began with MicroPython on ESP32 and ESP8266.
For those who appreciated this submit, you may like our subsequent ones, so be sure to subscribe to the RNT weblog and obtain our free electronics eBooks.
Really helpful Assets
The post Flashing MicroPython Firmware with esptool.py on ESP32 and ESP8266 appeared first on Playtab Tech.
0 notes
Text
Flashing MicroPython Firmware with esptool.py on ESP32 and ESP8266
This posts exhibits easy methods to flash MicroPython firmware on ESP32/ESP8266 boards utilizing the esptool.py. It really works on Home windows, Mac OS X, and Linux. For the official documentation, you possibly can go to the esptool.py GitHub web page.
Tip: for a neater technique to flash the ESP32/ESP8266 with MicroPython, we advocate studying this information to flash MicroPython with uPyCraft IDE. Nevertheless, we’ve just lately acquired feedback from our readers about having hassle putting in/utilizing uPyCraft IDE. For that cause, we’re posting an alternate technique utilizing the esptool.py software program.
Putting in esptool.py in your pc
To work with esptool.py, you’ll want both Python 2.7, Python three.Four or a more moderen Python set up on your system. We advocate utilizing Python three.7.X, so go to Python’s web site and set up it in your pc.
With Python three put in, open a Terminal window and set up the newest secure esptool.py launch with pip:
pip set up esptool
Observe: with some Python installations that command might not work and you’ll obtain an error. If that’s the case, attempt to set up esptool.py with:
pip3 set up esptool
python -m pip set up esptool
pip2 set up esptool
After putting in, you’ll have esptool.py put in into the default Python executables listing and you must have the ability to run it with the command esptool.py. In your Terminal window, run the next command:
esptool.py
If it was put in correctly, it ought to show an identical message (no matter your working system):
With esptool.py put in in your pc, you’ll be able to simply flash your ESP32 or ESP8266 boards with the MicroPython firmware. This publish is split in two elements, learn Half 1 or Half 2 relying on your board:
Half 1 – ESP32
Half 2 – ESP8266
Word: after putting in MicroPython firmware on your ESP32 or ESP8266, you possibly can return and use Arduino IDE once more. You simply have to add code utilizing Arduino IDE. Then, if you wish to use MicroPython once more, you must flash MicroPython firmware.
[Part 1 – ESP32] Downloading and Flashing the MicroPython Firmware on ESP32
To obtain the newest model of MicroPython firmware for the ESP32, go to the MicroPython Downloads web page and scroll all the best way right down to the ESP32 part.
You need to see an analogous net web page (see determine under) with the newest hyperlink to obtain the ESP32 .bin file – for instance: esp32-20181007-v1.9.Four-631-g338635ccc.bin.
Word: should you’re utilizing a unique board (like a PyBoard, WiPy, or different), go to MicroPython Downloads web page and obtain the correct firmware on your board.
Discovering the Serial Port Identify
It’s a bit totally different to seek out the Serial port identify in every working system, so for simplicity causes we advocate discovering your ESP serial port identify via the Arduino IDE. Comply with these steps:
Join your board to your pc
Open the Arduino IDE
Go to Instruments > Port
Save your ESP32 serial port identify (in our case it’s COM7)
Shut your Arduino IDE software program
Essential: for those who plug your ESP32 board to your pc, however you possibly can’t discover the ESP32 Port out there in your Arduino IDE, it may be certainly one of these two issues: 1. USB drivers lacking or 2. USB cable with out knowledge wires.
1. For those who don’t see your ESP’s COM port out there, this typically means you don’t have the USB drivers put in. Take a better take a look at the chip subsequent to the voltage regulator on board and examine its identify.
The ESP32 DEVKIT V1 DOIT board makes use of the CP2102 chip.
Go to Google and seek for your particular chip to seek out the drivers and set up them in your working system.
You possibly can obtain the CP2102 drivers on the Silicon Labs web site.
After they’re put in, restart the Arduino IDE and you must see the serial port within the Instruments > Port menu.
2. When you’ve got the drivers put in, however you possibly can’t see your gadget, double-check that you simply’re utilizing a USB cable with knowledge wires.
USB cables from powerbanks typically don’t have knowledge wires (they’re cost solely). So, your pc won’t ever set up a serial communication with your ESP32. Utilizing a a correct USB cable ought to clear up your drawback.
Discovering your MicroPython .bin file
After downloading the ESP32 .bin file, it must be in your Downloads folder. So, with your Terminal window, you’ll have to navigate to the Downloads folder utilizing the cd command:
cd Downloads
Record all information in your Downloads folder to make sure that’s the place the .bin file is situated. In Home windows, you employ:
dir
On Mac OS X or Linux, run the subsequent command:
ls
As you’ll be able to see within the previous screenshot, the ESP32 .bin file is situated within the Downloads folder: esp32-20190113-v1.9.Four-779-g5064df207.bin.
Erasing ESP32 Flash Reminiscence
Earlier than flashing the MicroPython firmware, it is advisable to erase the ESP32 flash reminiscence. So, with your ESP32 related to your pc, hold-down the “BOOT/FLASH” button in your ESP32 board:
Whereas holding down the “BOOT/FLASH” button, run the next command to erase the ESP32 flash reminiscence:
esptool.py –chip esp32 erase_flash
When the “Erasing” course of begins, you’ll be able to launch the “BOOT/FLASH” button. After a couple of seconds, the ESP32 flash reminiscence will probably be erased.
Word: if after the “Connecting …” message you retain seeing new dots showing, it signifies that your ESP32 shouldn’t be in flashing mode. It’s essential repeat all of the steps described earlier and maintain the “BOOT/FLASH” button once more to make sure that your ESP32 goes into flashing mode and completes the erasing course of efficiently.
Flashing MicroPython Firmware on ESP32 with esptool.py
Together with your ESP32 flash reminiscence erased, you possibly can lastly flash the MicroPython firmware. You want your serial port identify (COM7 in our case) and the ESP32 .bin file location. Substitute the subsequent command with your particulars:
esptool.py –chip esp32 –port <serial_port> write_flash -z 0x1000 <esp32-X.bin>
In our case, the ultimate command seems like this:
esptool.py –chip esp32 –port COM7 write_flash -z 0x1000 esp32-20190113-v1.9.Four-779-g5064df207.bin
Maintain down the “BOOT/FLASH“, earlier than operating the flash command. After a number of seconds that is what it is best to see:
Your ESP32 was efficiently flashed with MicroPython firmware!
Notice: in the event you obtain an error making an attempt to flash the firmware, run the command once more and be sure to are holding down the ESP32 “BOOT/FLASH” button.
[Part 2 – ESP8266] Downloading and Flashing the MicroPython Firmware on ESP8266
To obtain the newest model of MicroPython firmware for the ESP8266, go to the MicroPython Downloads web page and scroll all the best way right down to the ESP8266 part.
You must see an analogous net web page (see determine under) with the newest hyperlink to obtain the ESP8266 .bin file – for instance: esp8266-20180511-v1.9.Four.bin.
Observe: in case you’re utilizing a special board (like a PyBoard, WiPy, or different), go to MicroPython Downloads web page and obtain the proper firmware on your board.
Discovering the Serial Port Identify
It’s a bit totally different to seek out the Serial port identify in every working system, so for simplicity causes we advocate discovering your ESP serial port identify via the Arduino IDE. Comply with these steps:
Join your board to your pc
Open the Arduino IDE
Go to Instruments > Port
Save your ESP8266 serial port identify (in our case it’s COM4)
Shut your Arduino IDE software program
Necessary: when you plug your ESP8266 board to your pc, however you’ll be able to’t discover the ESP8266 Port out there in your Arduino, it may be certainly one of these two issues: 1. USB drivers lacking or 2. USB cable with out knowledge wires.
1. Should you don’t see your ESP’s COM port obtainable, this typically means you don’t have the USB drivers put in. Take a better take a look at the chip subsequent to the voltage regulator on board and examine its identify.
The ESP8266 ESP-12E NodeMCU board makes use of the CP2102 chip.
Go to Google and seek for your particular chip to seek out the drivers and set up them in your working system.
You possibly can obtain the CP2102 drivers on the Silicon Labs web site.
After they’re put in, restart the Arduino IDE and you need to see the serial port within the Instruments > Port menu.
2. When you’ve got the drivers put in, however you’ll be able to’t see your system, double-check that you simply’re utilizing a USB cable with knowledge wires.
USB cables from powerbanks typically don’t have knowledge wires (they’re cost solely). So, your pc won’t ever set up a serial communication with your ESP8266. Utilizing a a correct USB cable ought to remedy your drawback.
Discovering your MicroPython .bin file
After downloading the ESP8266 .bin file, it ought to be in your Downloads folder. So, with your Terminal window, you’ll have to navigate to the Downloads folder utilizing the cd command:
cd Downloads
Listing all information in your Downloads folder to make sure that’s the place the .bin file is situated. In Home windows, you employ:
dir
On Mac OS X or Linux, run the subsequent command:
ls
As you’ll be able to see within the previous screenshot, the ESP8266 .bin file is situated within the Downloads folder: esp8266-20180511-v1.9.Four.bin.
Erasing ESP8266 Flash Reminiscence
Earlier than flashing the MicroPython firmware, you’ll want to erase the ESP8266 flash reminiscence. So, with your ESP8266 related to your pc, hold-down the “BOOT/FLASH” button in your ESP8266 board:
Whereas holding down the “BOOT/FLASH” button, run the next command to erase the ESP8266 flash reminiscence:
esptool.py –chip esp8266 erase_flash
When the “Erasing” course of begins, you possibly can launch the “BOOT/FLASH” button. After a couple of seconds, the ESP8266 flash reminiscence shall be erased.
Notice: if after the “Connecting …” message you retain seeing new dots showing, it signifies that your ESP8266 is just not in flashing mode. You could repeat all of the steps described earlier and maintain the “BOOT/FLASH” button once more to make sure that your ESP8266 goes into flashing mode and completes the erasing course of efficiently.
Flashing MicroPython Firmware on ESP8266 with esptool.py
Together with your ESP8266 flash reminiscence erased, you’ll be able to lastly flash the MicroPython firmware. You want your serial port identify (COM7 in our case) and the ESP8266 .bin file location. Substitute the subsequent command with your particulars:
esptool.py –chip esp8266 –port <serial_port> write_flash –flash_mode dio –flash_size detect 0x0 <esp8266-X.bin>
In our case, the ultimate command appears like this:
esptool.py –chip esp8266 –port COM4 write_flash –flash_mode dio –flash_size detect 0x0 esp8266-20180511-v1.9.Four.bin
Maintain down the “BOOT/FLASH“, earlier than operating the flash command. After a couple of seconds that is what you must see:
Your ESP8266 was efficiently flashed with MicroPython firmware!
Notice: in the event you obtain an error making an attempt to flash the firmware, run the command once more and be sure to are holding down the ESP8266 “BOOT/FLASH” button.
Wrapping Up
We hope you’ve discovered this tutorial helpful. Your ESP32/ESP8266 ought to now be flashed with MicroPython firmware. To study extra about MicroPython learn: Getting Began with MicroPython on ESP32 and ESP8266.
For those who appreciated this submit, you may like our subsequent ones, so be sure to subscribe to the RNT weblog and obtain our free electronics eBooks.
Really helpful Assets
The post Flashing MicroPython Firmware with esptool.py on ESP32 and ESP8266 appeared first on Playtab Tech.
1 note
·
View note
Text
Flashing MicroPython Firmware with esptool.py on ESP32 and ESP8266
This posts exhibits easy methods to flash MicroPython firmware on ESP32/ESP8266 boards utilizing the esptool.py. It really works on Home windows, Mac OS X, and Linux. For the official documentation, you possibly can go to the esptool.py GitHub web page.
Tip: for a neater technique to flash the ESP32/ESP8266 with MicroPython, we advocate studying this information to flash MicroPython with uPyCraft IDE. Nevertheless, we’ve just lately acquired feedback from our readers about having hassle putting in/utilizing uPyCraft IDE. For that cause, we’re posting an alternate technique utilizing the esptool.py software program.
Putting in esptool.py in your pc
To work with esptool.py, you’ll want both Python 2.7, Python three.Four or a more moderen Python set up on your system. We advocate utilizing Python three.7.X, so go to Python’s web site and set up it in your pc.
With Python three put in, open a Terminal window and set up the newest secure esptool.py launch with pip:
pip set up esptool
Observe: with some Python installations that command might not work and you’ll obtain an error. If that’s the case, attempt to set up esptool.py with:
pip3 set up esptool
python -m pip set up esptool
pip2 set up esptool
After putting in, you’ll have esptool.py put in into the default Python executables listing and you must have the ability to run it with the command esptool.py. In your Terminal window, run the next command:
esptool.py
If it was put in correctly, it ought to show an identical message (no matter your working system):
With esptool.py put in in your pc, you’ll be able to simply flash your ESP32 or ESP8266 boards with the MicroPython firmware. This publish is split in two elements, learn Half 1 or Half 2 relying on your board:
Half 1 – ESP32
Half 2 – ESP8266
Word: after putting in MicroPython firmware on your ESP32 or ESP8266, you possibly can return and use Arduino IDE once more. You simply have to add code utilizing Arduino IDE. Then, if you wish to use MicroPython once more, you must flash MicroPython firmware.
[Part 1 – ESP32] Downloading and Flashing the MicroPython Firmware on ESP32
To obtain the newest model of MicroPython firmware for the ESP32, go to the MicroPython Downloads web page and scroll all the best way right down to the ESP32 part.
You need to see an analogous net web page (see determine under) with the newest hyperlink to obtain the ESP32 .bin file – for instance: esp32-20181007-v1.9.Four-631-g338635ccc.bin.
Word: should you’re utilizing a unique board (like a PyBoard, WiPy, or different), go to MicroPython Downloads web page and obtain the correct firmware on your board.
Discovering the Serial Port Identify
It’s a bit totally different to seek out the Serial port identify in every working system, so for simplicity causes we advocate discovering your ESP serial port identify via the Arduino IDE. Comply with these steps:
Join your board to your pc
Open the Arduino IDE
Go to Instruments > Port
Save your ESP32 serial port identify (in our case it’s COM7)
Shut your Arduino IDE software program
Essential: for those who plug your ESP32 board to your pc, however you possibly can’t discover the ESP32 Port out there in your Arduino IDE, it may be certainly one of these two issues: 1. USB drivers lacking or 2. USB cable with out knowledge wires.
1. For those who don’t see your ESP’s COM port out there, this typically means you don’t have the USB drivers put in. Take a better take a look at the chip subsequent to the voltage regulator on board and examine its identify.
The ESP32 DEVKIT V1 DOIT board makes use of the CP2102 chip.
Go to Google and seek for your particular chip to seek out the drivers and set up them in your working system.
You possibly can obtain the CP2102 drivers on the Silicon Labs web site.
After they’re put in, restart the Arduino IDE and you must see the serial port within the Instruments > Port menu.
2. When you’ve got the drivers put in, however you possibly can’t see your gadget, double-check that you simply’re utilizing a USB cable with knowledge wires.
USB cables from powerbanks typically don’t have knowledge wires (they’re cost solely). So, your pc won’t ever set up a serial communication with your ESP32. Utilizing a a correct USB cable ought to clear up your drawback.
Discovering your MicroPython .bin file
After downloading the ESP32 .bin file, it must be in your Downloads folder. So, with your Terminal window, you’ll have to navigate to the Downloads folder utilizing the cd command:
cd Downloads
Record all information in your Downloads folder to make sure that’s the place the .bin file is situated. In Home windows, you employ:
dir
On Mac OS X or Linux, run the subsequent command:
ls
As you’ll be able to see within the previous screenshot, the ESP32 .bin file is situated within the Downloads folder: esp32-20190113-v1.9.Four-779-g5064df207.bin.
Erasing ESP32 Flash Reminiscence
Earlier than flashing the MicroPython firmware, it is advisable to erase the ESP32 flash reminiscence. So, with your ESP32 related to your pc, hold-down the “BOOT/FLASH” button in your ESP32 board:
Whereas holding down the “BOOT/FLASH” button, run the next command to erase the ESP32 flash reminiscence:
esptool.py –chip esp32 erase_flash
When the “Erasing” course of begins, you’ll be able to launch the “BOOT/FLASH” button. After a couple of seconds, the ESP32 flash reminiscence will probably be erased.
Word: if after the “Connecting …” message you retain seeing new dots showing, it signifies that your ESP32 shouldn’t be in flashing mode. It’s essential repeat all of the steps described earlier and maintain the “BOOT/FLASH” button once more to make sure that your ESP32 goes into flashing mode and completes the erasing course of efficiently.
Flashing MicroPython Firmware on ESP32 with esptool.py
Together with your ESP32 flash reminiscence erased, you possibly can lastly flash the MicroPython firmware. You want your serial port identify (COM7 in our case) and the ESP32 .bin file location. Substitute the subsequent command with your particulars:
esptool.py –chip esp32 –port <serial_port> write_flash -z 0x1000 <esp32-X.bin>
In our case, the ultimate command seems like this:
esptool.py –chip esp32 –port COM7 write_flash -z 0x1000 esp32-20190113-v1.9.Four-779-g5064df207.bin
Maintain down the “BOOT/FLASH“, earlier than operating the flash command. After a number of seconds that is what it is best to see:
Your ESP32 was efficiently flashed with MicroPython firmware!
Notice: in the event you obtain an error making an attempt to flash the firmware, run the command once more and be sure to are holding down the ESP32 “BOOT/FLASH” button.
[Part 2 – ESP8266] Downloading and Flashing the MicroPython Firmware on ESP8266
To obtain the newest model of MicroPython firmware for the ESP8266, go to the MicroPython Downloads web page and scroll all the best way right down to the ESP8266 part.
You must see an analogous net web page (see determine under) with the newest hyperlink to obtain the ESP8266 .bin file – for instance: esp8266-20180511-v1.9.Four.bin.
Observe: in case you’re utilizing a special board (like a PyBoard, WiPy, or different), go to MicroPython Downloads web page and obtain the proper firmware on your board.
Discovering the Serial Port Identify
It’s a bit totally different to seek out the Serial port identify in every working system, so for simplicity causes we advocate discovering your ESP serial port identify via the Arduino IDE. Comply with these steps:
Join your board to your pc
Open the Arduino IDE
Go to Instruments > Port
Save your ESP8266 serial port identify (in our case it’s COM4)
Shut your Arduino IDE software program
Necessary: when you plug your ESP8266 board to your pc, however you’ll be able to’t discover the ESP8266 Port out there in your Arduino, it may be certainly one of these two issues: 1. USB drivers lacking or 2. USB cable with out knowledge wires.
1. Should you don’t see your ESP’s COM port obtainable, this typically means you don’t have the USB drivers put in. Take a better take a look at the chip subsequent to the voltage regulator on board and examine its identify.
The ESP8266 ESP-12E NodeMCU board makes use of the CP2102 chip.
Go to Google and seek for your particular chip to seek out the drivers and set up them in your working system.
You possibly can obtain the CP2102 drivers on the Silicon Labs web site.
After they’re put in, restart the Arduino IDE and you need to see the serial port within the Instruments > Port menu.
2. When you’ve got the drivers put in, however you’ll be able to’t see your system, double-check that you simply’re utilizing a USB cable with knowledge wires.
USB cables from powerbanks typically don’t have knowledge wires (they’re cost solely). So, your pc won’t ever set up a serial communication with your ESP8266. Utilizing a a correct USB cable ought to remedy your drawback.
Discovering your MicroPython .bin file
After downloading the ESP8266 .bin file, it ought to be in your Downloads folder. So, with your Terminal window, you’ll have to navigate to the Downloads folder utilizing the cd command:
cd Downloads
Listing all information in your Downloads folder to make sure that’s the place the .bin file is situated. In Home windows, you employ:
dir
On Mac OS X or Linux, run the subsequent command:
ls
As you’ll be able to see within the previous screenshot, the ESP8266 .bin file is situated within the Downloads folder: esp8266-20180511-v1.9.Four.bin.
Erasing ESP8266 Flash Reminiscence
Earlier than flashing the MicroPython firmware, you’ll want to erase the ESP8266 flash reminiscence. So, with your ESP8266 related to your pc, hold-down the “BOOT/FLASH” button in your ESP8266 board:
Whereas holding down the “BOOT/FLASH” button, run the next command to erase the ESP8266 flash reminiscence:
esptool.py –chip esp8266 erase_flash
When the “Erasing” course of begins, you possibly can launch the “BOOT/FLASH” button. After a couple of seconds, the ESP8266 flash reminiscence shall be erased.
Notice: if after the “Connecting …” message you retain seeing new dots showing, it signifies that your ESP8266 is just not in flashing mode. You could repeat all of the steps described earlier and maintain the “BOOT/FLASH” button once more to make sure that your ESP8266 goes into flashing mode and completes the erasing course of efficiently.
Flashing MicroPython Firmware on ESP8266 with esptool.py
Together with your ESP8266 flash reminiscence erased, you’ll be able to lastly flash the MicroPython firmware. You want your serial port identify (COM7 in our case) and the ESP8266 .bin file location. Substitute the subsequent command with your particulars:
esptool.py –chip esp8266 –port <serial_port> write_flash –flash_mode dio –flash_size detect 0x0 <esp8266-X.bin>
In our case, the ultimate command appears like this:
esptool.py –chip esp8266 –port COM4 write_flash –flash_mode dio –flash_size detect 0x0 esp8266-20180511-v1.9.Four.bin
Maintain down the “BOOT/FLASH“, earlier than operating the flash command. After a couple of seconds that is what you must see:
Your ESP8266 was efficiently flashed with MicroPython firmware!
Notice: in the event you obtain an error making an attempt to flash the firmware, run the command once more and be sure to are holding down the ESP8266 “BOOT/FLASH” button.
Wrapping Up
We hope you’ve discovered this tutorial helpful. Your ESP32/ESP8266 ought to now be flashed with MicroPython firmware. To study extra about MicroPython learn: Getting Began with MicroPython on ESP32 and ESP8266.
For those who appreciated this submit, you may like our subsequent ones, so be sure to subscribe to the RNT weblog and obtain our free electronics eBooks.
Really helpful Assets
The post Flashing MicroPython Firmware with esptool.py on ESP32 and ESP8266 appeared first on Playtab Tech.
0 notes