Unable to operate with flash on Lolin board

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
lazarvgd
Posts: 29
Joined: Sun May 20, 2018 8:57 am

Unable to operate with flash on Lolin board

Post by lazarvgd » Mon Dec 03, 2018 9:02 am

Hi there,

I have problem with flash memory on lolin board. Few days ago I was getting files from the board without problem using ampy application, but today I am unable to list, put, remove files from board. So I decided to flash the chip and write firmware again with esp tool.
The result was ok, I have got message about erasing and message about flashing the chip, but when I tried to put new file to the board with command

Code: Select all

sudo ampy --port /dev/ttyUSB0 put blink.py main.py
, terminal on my machine left in state of executing the command. No errors, no new line so I can enter any other command.

My question is how can i troubleshot this problem? Is it related to the board or I have missed some flags since not all flash memories are the same?

Thanks ;)

OutoftheBOTS_
Posts: 574
Joined: Mon Nov 20, 2017 10:18 am

Re: Unable to operate with flash on Lolin board

Post by OutoftheBOTS_ » Mon Dec 03, 2018 11:21 am

The Lolin boards have a history of hardware failing.

I think they have been using some bad clones of the CP2104 Uart to USB that is causing the problem.

see one users videos on fixing the problem https://www.youtube.com/watch?v=OrQWos9VcgM

User avatar
Roberthh
Posts: 1398
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Unable to operate with flash on Lolin board

Post by Roberthh » Mon Dec 03, 2018 12:07 pm

I had one LOLIN32 where the CP2104 was poorly soldered, and a LOLIN32 pro which crashes with the Pycom or micropython.org firmware, not immediately, but after a while. It works with the loboris firmware. Replacing the flash chip did not help. A second LOLIN32 pro runs fine.

lazarvgd
Posts: 29
Joined: Sun May 20, 2018 8:57 am

Re: Unable to operate with flash on Lolin board

Post by lazarvgd » Mon Dec 03, 2018 6:30 pm

I have a few boards, all are performing well, except this one.

It is strange that I can flash and erase it, but cannot put files... :|

User avatar
Roberthh
Posts: 1398
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Unable to operate with flash on Lolin board

Post by Roberthh » Mon Dec 03, 2018 7:15 pm

It is controlled by different software: Erase and flash is done by the espressif bootloader, while file upload is done by the MicroPython firmware.

OutoftheBOTS_
Posts: 574
Joined: Mon Nov 20, 2017 10:18 am

Re: Unable to operate with flash on Lolin board

Post by OutoftheBOTS_ » Mon Dec 03, 2018 8:08 pm

I built a number of boards of my own design myself. I built the first 10 using cheap CP2104 of aliexpress and about half of them failed. I built about another 25 boards using CP2104 brought from Digikey and all work correctly.

I had the same problem with the pca9685pw chip I was buying off Aliexpress, many of them would fail within a short time.

User avatar
Mike Teachman
Posts: 69
Joined: Mon Jun 13, 2016 3:19 pm
Location: Victoria, BC, Canada

Re: Unable to operate with flash on Lolin board

Post by Mike Teachman » Mon Dec 03, 2018 11:55 pm

Here is something that might help... with the Ampy software I always include the -d1 option. The -d1 option adds a one-second delay before ampy tries to use the raw REPL mode of operation. Using the option fixed the Ampy program hangs that I was seeing.

lazarvgd
Posts: 29
Joined: Sun May 20, 2018 8:57 am

Re: Unable to operate with flash on Lolin board

Post by lazarvgd » Fri Jan 04, 2019 12:33 pm

Mike Teachman wrote:
Mon Dec 03, 2018 11:55 pm
Here is something that might help... with the Ampy software I always include the -d1 option. The -d1 option adds a one-second delay before ampy tries to use the raw REPL mode of operation. Using the option fixed the Ampy program hangs that I was seeing.
Thanks, I will try your solution and update you with the outcome. :)

Post Reply