-
-
I have one ESP-01 and one ESP-01S Chip. (Wikipedia say, it has 1MB ?!)
The Command you post is for 4MB, isn't it?If I use your command, I got this response:
esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash \ > --flash_freq 40m --flash_mode qio --flash_size 4m \ > 0x0000 "boot_v1.6.bin" 0x1000 espruino_esp8266_user1.bin \ > 0x7C000 esp_init_data_default.bin 0x7E000 blank.bin WARNING: Flash size arguments in megabits like '4m' are deprecated. Please use the equivalent size '512KB'. Megabit arguments may be removed in a future release. esptool.py v2.8 Serial port /dev/ttyUSB0 Connecting.... Detecting chip type... ESP8266 Chip is ESP8266EX Features: WiFi Crystal is 26MHz MAC: dc:4f:22:5a:85:86 Uploading stub... Running stub... Stub running... Configuring flash size... Compressed 3856 bytes to 2762... Wrote 3856 bytes (2762 compressed) at 0x00000000 in 0.2 seconds (effective 124.4 kbit/s)... Hash of data verified. Compressed 459684 bytes to 320164... Wrote 459684 bytes (320164 compressed) at 0x00001000 in 28.2 seconds (effective 130.4 kbit/s)... Hash of data verified. Compressed 128 bytes to 75... Wrote 128 bytes (75 compressed) at 0x0007c000 in 0.0 seconds (effective 80.9 kbit/s)... Hash of data verified. Compressed 4096 bytes to 26... Wrote 4096 bytes (26 compressed) at 0x0007e000 in 0.0 seconds (effective 4105.0 kbit/s)... Hash of data verified. Leaving... Hard resetting via RTS pin...
But now I got a connection. Thanks a lot. I'm so happy now to get the first connection :)
Do you have a tiny test-script for me to upload something?
Is there a documentation to see which commands are supported for the different Chip-types like esp-01, esp-01s, esp32-cam, node-mcu and so on? -
@Frida Thanks a lot for your step-by-step introduction.
I've now- erased the flash
- download and unpack this Package: https://www.espruino.com/Download
- Re-Plugin the Stick
If I start the ESPruino Web-IDE and connect the Chip, I see that the Chip output something... all the time:
But uploading the example-blink-Script doesn't work. Returend Prompt not detected - upload failed. Trying to recover...If I do the following:
- run
esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --flash_freq 40m --flash_mode qio --flash_size 1MB 0x0000 "boot_v1.6.bin" 0x1000 espruino_esp8266_user1.bin 0xFC000 esp_init_data_default.bin 0xFE000 blank.bin
- Re-Plugin the Stick
- Connect to Web-IDE.... but even if I re-plugin, or start in Flash-Mode (by pressing button on Plugin), I can't upload the example-script. I always got Prompt not detected - upload failed. Trying to recover...
So what I've done wrong?
BTW: I didn't found the place to change Baud-Setting in Chrome-Web-IDE.
- erased the flash
-
@Robin "flashed" means something like: happy, overwhelmed, impressed ....
As I'm a Mobile & Web-Developer, I'm very familiar with JS, so I'm glad to see that it's possible to use it for ESP-programming too.This was the link I've missed to add... means the HowTo I've followed: https://www.espruino.com/Quick+Start+USB
I've also ordered some other chipset like esp-12, NodeMCU... but first I wan't to start with this tiny one. The single gpio-Output on the esp-01 fit's my needs (I think so) for a tiny first Project.
So maybe you can give me some general hints for the first Steps.
For the ESP-01 (and maybe other chipsets), what are the steps to work with it?
Is it like this:- Put Chip in Flash-Mode
- Upload firmware especially for this Ship
- Upload Espruino firmware
- Upload code, which do something on the chip (for espruino it's js, arduino it's C ?)
I've still ordered a bunch of esp-Chipsets before I was aware that Espruino exist. So I wan't first go with this stuff, instead of buying additional Stuff like Pico or other thinks.
Because I'm at the very beginning of this hobby... You know what I mean? - Put Chip in Flash-Mode
-
-
Hi there,
I have ordered some esp chipsets and got it last week.
Today I found Espruino and was totally flashed, that I can code with JS on the chipset.I have the Mini-Breadboard HW-305 and ESP-01S plugged on it. (It's the same hardware like in this Video (from 0:00 till 0:30) : https://www.youtube.com/watch?v=6uaIWZCRSz8
).Now I try to connect it to the Espruino-Web-IDE, but without success. Because I use Linux, I've followed the instructions to add my user to plugdev group and re-login to get this new permissions active.
Then I've opened the Espruino-Web-IDE in Chrome and click the yellow Button above.
I see an Popup with the USB-Port, but if I choose this, I got an error:"Connection failed".In the Settings ⇒ Console, I see this:
We have chrome.serial - not using 'serialport' module serial_audio: Audio Sample rate : 44100 serial_audio: Audio Serial Baud 9600 Bit time 4.59375 UTF8 Library loaded successfully GET chrome.storage.sync = {"AUTO_SAVE_CODE":true,"BAUD_RATE":9600,"BLOCKLY_EXTENSIONS":"|bluetooth|robot|","BLOCKLY_LANGUAGE":"en","BLOCKLY_TO_JS":false,"BOARD_JSON_URL":"http://www.espruino.com/json","CODE":"var on = false;\nsetInterval(function() {\n on = !on;\n LED1.write(on);\n}, 500);","COMPILATION":true,"COMPILATION_URL":"https://www.espruino.com/service/compiler","DISABLE_CODE_HINTS":false,"ENABLE_Testing":false,"ENV_ON_CONNECT":true,"FONT_SIZE":12,"KEYMAP":"sublime","MINIFICATION_DeadCode":true,"MINIFICATION_LEVEL":"","MINIFICATION_Literal":true,"MINIFICATION_Mangle":true,"MINIFICATION_Unreachable":true,"MINIFICATION_Unused":true,"MODULE_AS_FUNCTION":false,"MODULE_EXTENSIONS":".min.js|.js","MODULE_MINIFICATION_LEVEL":"ESPRIMA","MODULE_PROXY_ENABLED":false,"MODULE_PROXY_PORT":"","MODULE_PROXY_URL":"","MODULE_URL":"https://www.espruino.com/modules","OFFLINE_DATA":"","OFFLINE_DATA_DOWNLOAD":"","OFFLINE_DATA_UPLOAD":"","OFFLINE_ENABLED":false,"PRETOKENISE":false,"RESET_BEFORE_SEND":true,"SAVE_ON_SEND":0,"SERIAL_AUDIO":"0","SERIAL_FLOW_CONTROL":true,"SERIAL_IGNORE":"/dev/ttyS*|/dev/*.SOC|/dev/*.MALS","SERIAL_TCPIP":"","SERIAL_THROTTLE_SEND":false,"SET_TIME_ON_WRITE":false,"SHOW_CODE_LINK_ICON":false,"SHOW_WEBCAM_ICON":0,"STORE_LINE_NUMBERS":true,"Sound_Error":"","Sound_Info":"","Sound_Success":"","Sound_Warning":"","Speak_Error":false,"Speak_Info":false,"Speak_Success":false,"Speak_Warning":false,"UI_MODE":"Normal","WEBCAM_CONSTRAINTS":0,"WEB_BLUETOOTH":true,"WEB_SERIAL":true} Initialising SettingsConsole Initialising Utils Initialising Config Initialising Notifications Initialising Status Initialising App Initialising File Initialising Code Initialising Serial - Initialising Serial Chrome Serial - Initialising Serial Chrome Socket - Initialising Serial Web Audio - Initialising Serial Web Bluetooth - Initialising Serial Web Serial Initialising Terminal Initialising CodeWriter Initialising Modules Initialising Env Initialising Flasher Initialising EditorBlockly Initialising EditorJavaScript Initialising Send Initialising MenuPortSelector Initialising MenuSettings Initialising MenuFlasher Initialising SettingsAbout Initialising SettingsFlasher Initialising BoardJSON Initialising VersionChecker Initialising Compiler Initialising Assembler Initialising GetGitHub Initialising Unicode Initialising Minify Initialising Pretokenise Initialising SaveOnSend Initialising SetTime Initialising Tutorial Initialising Webcam Initialising FontSize Initialising UiMode Initialising URLHandler Initialising CodeLink Initialising Project Initialising Testing Initialising Notification_Sound Initialising Tern Initialising Debugger Initialising Tour Initialising SettingsProfile Initialising HelpLinks Initialising Offline Initialising CoreModules Loaded code from storage. GET chrome.storage.local.OFFLINE_DATA = 0 bytes No navigator.bluetooth - Web Bluetooth not enabled No navigator.serial - Web Serial not enabled >>> Connecting... Set Slow Write = true Unable to open device (connectionInfo=undefined) ERROR: Unable to open device (connectionInfo=undefined) ERROR: [notify_error] Connection Failed. >>> Connection Failed. >>> Connecting... Set Slow Write = true Unable to open device (connectionInfo=undefined) ERROR: Unable to open device (connectionInfo=undefined) ERROR: [notify_error] Connection Failed. >>> Connection Failed.
Can anybody give me a helping hand to start with my first IoT and Espruino? I would love to do it with Espruino and not with Arduino, becauese I'm still familiar with JS-Coding.
@Frida yes, I see now. Thank you.