Code Monkey home page Code Monkey logo

Comments (9)

pak-man avatar pak-man commented on September 26, 2024 1
  • It´s not written on the README.md, but you should connect the Ground of your USB-TTL adapter to the Ground of your board as well. Otherwise you end up with floating potential and a non-working serial communication.
  • Also I strongly advice you to solder a magnet wire with a switch to ground to the BOOT pin of the ESP8285 (that one near the antenna): It´s too easy to mess up things and create shortcuts, the way you do.

from micropython_k210_lobo.

loboris avatar loboris commented on September 26, 2024 1

@nalzok
You could probably succeed to flash the firmware if you bend the pins from the adapter a little so that you get the good and stable contacts with the board. The ESP8285 boot pin has to be connected to the ground only while powering the board up.
As the amateur in EECS you should know that the two (UART) circuits cannot communicate without common ground.
You can test the board even without flashing the WiFi firmware. You just won't be able to use the network functions.

from micropython_k210_lobo.

nalzok avatar nalzok commented on September 26, 2024
  • Somehow, it still doesn't work when the Ground is connected, with the same error message. Is there any way to get a more verbose debug output? For example, does a flashing LED on the USB-TTL adapter mean anything?
  • I don't have a solder at hand, and I'll try to get one, but that'll take some time.

from micropython_k210_lobo.

pak-man avatar pak-man commented on September 26, 2024

Spare also your time and solder proper headers to that board, then use cables that make a reliable electrical contact.
Believe me, here is no chance you will flash a whooping 1.5MB at 57KB/s while holding those pins by hand.

You´re living in strange world where access to cutting-edge micro-controller is possible, but a simple soldering iron is out of reach. Like owning Formula 1 car but having no asphalt around and wondering why you can´t steer it in the mud.

from micropython_k210_lobo.

nalzok avatar nalzok commented on September 26, 2024

LOL, nice metaphor! Now, storytime if you don't mind...

I'm a statistics major from China working as a Research Assistant in the U.S., so it's probably unsurprising that I don't have a solder in my apartment. The thing is, I'm also an amateur in EECS, so I brought a Maix M1W board from China to have some fun during my stay in the U.S. I thought playing with it just requires a computer and a USB cable, but it clearly turns out to be wrong and I need to buy adapters and solders. While It's not hard to order a solder on Amazon, my roommates would complain about the smell and the risk of burning everything, so I have to find a safer place to do the job, and that takes time.

By the way, I see you have another repo called MicroPython_ESP32_psRAM_LoBo, and there happens to be a pre-soldered Maixduino with an ESP32 module at my hand (you may find its name confusing because Sipeed uses "Maixduino" as the name for both their hardware and software). Is there any chance that I can get them to work together when waiting for the solder?

from micropython_k210_lobo.

pak-man avatar pak-man commented on September 26, 2024

I´m pretty sure you can find a hackerlab around you where you can do that "dirty" job of soldering few pins. The repository for Micropython ESP32 won´t work on the Maixduino. Also it´s pretty outdated, last commit was 10 months ago.
So, 10 minutes soldering with open window is really what you should do. Then close this non-issue.

from micropython_k210_lobo.

CorruptName avatar CorruptName commented on September 26, 2024

If you still haven't gotten this to work, or if anyone else has this issue, try switching TX and RX. Sometimes these cheap USB Serial devices are mislabeled. (Mine was)

from micropython_k210_lobo.

lypanov avatar lypanov commented on September 26, 2024

You could probably succeed to flash the firmware if you bend the pins from the adapter a little so that you get the good and stable contacts with the board. The ESP8285 boot pin has to be connected to the ground only while powering the board up.
As the amateur in EECS you should know that the two (UART) circuits cannot communicate without common ground.
You can test the board even without flashing the WiFi firmware. You just won't be able to use the network functions.

Thank you. Thanks to this explanation (of the need for common ground) I was able to do the basic soldering needed to hook my K210 up to an old 8266 I had laying around. I just wish I'd thought of this 6 months ago! I'll give upgrading the internal 8285 a try eventually when I'm a bit more confident but I have zero background / aptitude in anything related to the physical realm..Happy to be back in software land now with the K210!

from micropython_k210_lobo.

nalzok avatar nalzok commented on September 26, 2024

I have successfully flashed the firmware to the internal ESP8285 after soldering the pins. It took me tens of tries before finally succeeded, so you probably need to re-run the flash script a few times. In fact, I didn't follow the instruction in README thoroughly. The commands given are

./flash.sh -eo -t 1MB -m dout -P /dev/cu.usbserial-1430
./flash.sh -t 1MB -m dout -P /dev/cu.usbserial-1430

The first line will erase the flash, and the second one will erase the flash (yes, erase again) and then flash the firmware. It appears that you cannot erase/flash the device again without doing a power cycle, so I used the following commands instead

./flash.sh -eo -t 1MB -m dout -P /dev/cu.usbserial-1430
./flash.sh -ne -t 1MB -m dout -P /dev/cu.usbserial-1430

The second line now has an additional option -ne, which means "No erase", so it will do the flashing without erasing it again first.

Note that by close visual inspection, the pins touch the pad firmly, so the flashing errors like A fatal error occurred: Timed out waiting for packet header are probably not due to poor contact.

IMG_6442

from micropython_k210_lobo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.