Search found 20 matches

by kurt
Tue Jul 03, 2018 6:14 am
Forum: ESP8266 boards
Topic: flash directory corrupted with \x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00
Replies: 22
Views: 3165

Re: flash directory corrupted with \x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00

HI Damien, tested your modification with: MicroPython v1.9.4-240-gbccf9d3 on 2018-07-03; ESP module with ESP8266 using the test procedure as above and also my final application, all without any crash or file directory corruption. From my point of view the problem is fixed and the issue can be closed...
by kurt
Mon Jul 02, 2018 2:17 pm
Forum: ESP8266 boards
Topic: flash directory corrupted with \x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00
Replies: 22
Views: 3165

Re: flash directory corrupted with \x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00

Hi Damien, I can confirm the behavior as you described. First, I reflashed the chip with the same bin file to get a clear starting point. Then I created the syslog file with the code as above. After that, I disabled the AP mode with: network.WLAN(1).active(0) Created the test app as above and run th...
by kurt
Mon Jul 02, 2018 8:52 am
Forum: ESP8266 boards
Topic: flash directory corrupted with \x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00
Replies: 22
Views: 3165

Re: flash directory corrupted with \x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00

Hi Damien, I tried to make the test scenario as simple as possiible by: 1. flashed esp8266-20180702-v1.9.4-227-gab02abe9.bin 2. connected my ESP8266 nodemcu with 4 MByte comparable to https://www.exp-tech.de/en/platforms/internet-of-things-iot/6534/nodemcu-v2-lua-based-esp8266 using PuTTY version 0....
by kurt
Sun Jul 01, 2018 1:16 pm
Forum: ESP8266 boards
Topic: flash directory corrupted with \x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00
Replies: 22
Views: 3165

Re: flash directory corrupted with \x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00

Hi Peter, you are absolutly right, hammering the flash may destroy it some time. I tested the above example and after five or sometimes only one round turn the crash happens. Hopefully the reason can be found and fixed. If something can be done on my side, please don't hesitate to contact me. Many t...
by kurt
Sat Jun 30, 2018 10:07 am
Forum: ESP8266 boards
Topic: flash directory corrupted with \x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00
Replies: 22
Views: 3165

Re: flash directory corrupted with \x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00

Hi Peter, saw the fix of dpgeorge at your issue https://github.com/micropython/micropython/issues/3897 and tested it using esp8266-20180630-v1.9.4-227-gab02abe9.bin with code with open('syslog', 'w') as f3: for _ in range(10): f3.write('testdata\n') n = 0 while True: with open('syslog', 'r') as f2: ...
by kurt
Mon Jun 25, 2018 11:38 am
Forum: ESP8266 boards
Topic: flash directory corrupted with \x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00
Replies: 22
Views: 3165

Re: flash directory corrupted with \x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00

Hi Peter, many thanks for your effort to help me. Unfortunately, there is the same crash as before. I flashed the latest daily build downloaded from http://micropython.org/download: esp8266-20180625-v1.9.4-199-g6fc84a74.bin Used uPyLoader to transfer your sketch into the flash: with open('syslog', '...
by kurt
Sun Jun 24, 2018 6:07 am
Forum: ESP8266 boards
Topic: flash directory corrupted with \x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00
Replies: 22
Views: 3165

Re: flash directory corrupted with \x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00

Hi, the problem can be recreated by flashing ESP8266 with the latest micropython build from micropython download page: esp8266-20180511-v1.9.4.bin (elf, map) (latest) using this small sketch: import network wlan_sta = network.WLAN(network.STA_IF) wlan_sta.active(True) wlan_sta.connect('SSID','PASSWO...
by kurt
Sat Jun 23, 2018 9:01 am
Forum: ESP8266 boards
Topic: flash directory corrupted with \x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00
Replies: 22
Views: 3165

Re: flash directory corrupted with \x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00

HI, many thanks for the answers. After changing to: try: lines = 0 with open('syslog', 'r') as f: for line in f: lines += 1 print('lines read: ', lines) if lines >= config.SYSLOG_LINES: with open('syslog', 'r') as f: for i in range(lines - config.SYSLOG_LINES + 1): line = f.readline() with open('sys...
by kurt
Fri Jun 22, 2018 10:20 am
Forum: ESP8266 boards
Topic: flash directory corrupted with \x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00
Replies: 22
Views: 3165

flash directory corrupted with \x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00

HI, working with v1.9.4-198-g25ae98f on ESP8266. From time to time the above problem occurs. I'm using asyncio and in one task log messages generated in other tasks with "uheapq.heappush(logQueue, ..." are written to a file named syslog. If there are predefined number of lines in syslog, a new file ...
by kurt
Sun Feb 11, 2018 7:59 pm
Forum: ESP8266 boards
Topic: Shift register (74HC595) controlling via SPI
Replies: 6
Views: 4733

Re: Shift register (74HC595) controlling via SPI

As I build a webradio using ESP07, I needed to have chip select signals for lcd, touchpad, VS1053, external RAM and to control the backlight of lcd. Without having not enough GPIO pins I used a 74HC595. At start the project I run into the same problem as you. Solved the problem by: Hardware: - conne...