hi, i get a error wen i create or list file.(last precompiled versions)
Performing initial setup
Traceback (most recent call last):
File "_boot.py", line 11, in <module>
File "inisetup.py", line 37, in setup
File "inisetup.py", line 9, in wifi
OSError: can't set AP config
could not open file 'boot.py' for reading
could not open file 'main.py' for reading
MicroPython v1.8.3-45-gc428367 on 2016-08-25; ESP module with ESP8266
Type "help()" for more information.
>>> f = open('data.txt', 'w')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 19] ENODEV
>>>import os;os.listdir('')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 19] ENODEV
>>> Waiting answer from ESP - Timeout reached. Command aborted.
error on create file
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: error on create file
Did you erase the flash before installing the firmware? This is the commonest reason for this issue.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: error on create file
Can you paste the result of running "import port_diag" here please?
Re: error on create file
Did you erase the flash before installing the firmware? This is the commonest reason for this issue.
how I erase all flash?
I flash with ESP8266Flasher.exe (windows)
[url=https://postimg.org/image/9jxxjh6i7/][img]https://s11.postimg.org/9jxxjh6i7/flah.png[/img][/url]
[url=https://postimg.org/image/7tjhvqecv/][img]https://s11.postimg.org/7tjhvqecv/flash_ok.png[/img][/url]
[url=https://postimg.org/image/z5eqx2j3j/][img]https://s11.postimg.org/z5eqx2j3j/initnok.png[/img][/url]
[url=https://postimg.org/image/4p8tyxxkf/][img]https://s11.postimg.org/4p8tyxxkf/initok.png[/img][/url]
[url=https://postimg.org/image/lr1o11cfj/][img]https://s11.postimg.org/lr1o11cfj/portdiag.png[/img][/url]
[url=https://postimage.org/]upload gif from url[/url]
https://s11.postimg.org/xnop7roz7/flah.png
https://s11.postimg.org/6ehx70d9v/flash_ok.png
https://s11.postimg.org/xdls25zqr/initnok.png
https://s11.postimg.org/b2xx272gj/initok.png
https://s11.postimg.org/j9pwtrsj7/portdiag.png
import port_diag
FlashROM:
Flash ID: 1640e0 (Vendor: e0 Device: 4016)
Flash bootloader data:
Byte @2: 02
Byte @3: 40 (Flash size: 4MB Flash freq: 40MHZ)
Firmware checksum:
size: 530740
md5: 798a3ddd15a3515eac9dbd198889fb2c
True
Networking:
STA ifconfig: ('0.0.0.0', '0.0.0.0', '0.0.0.0', '208.67.222.222')
AP ifconfig: ('0.0.0.0', '0.0.0.0', '0.0.0.0', '208.67.222.222')
Free WiFi driver buffers of type:
0: 8
1: 0
2: 8
3: 4
4: 7
lwIP PCBs:
Active PCB states:
Listen PCB states:
TIME-WAIT PCB states:
>>>
sorry for bad post and bad english!
how I erase all flash?
I flash with ESP8266Flasher.exe (windows)
[url=https://postimg.org/image/9jxxjh6i7/][img]https://s11.postimg.org/9jxxjh6i7/flah.png[/img][/url]
[url=https://postimg.org/image/7tjhvqecv/][img]https://s11.postimg.org/7tjhvqecv/flash_ok.png[/img][/url]
[url=https://postimg.org/image/z5eqx2j3j/][img]https://s11.postimg.org/z5eqx2j3j/initnok.png[/img][/url]
[url=https://postimg.org/image/4p8tyxxkf/][img]https://s11.postimg.org/4p8tyxxkf/initok.png[/img][/url]
[url=https://postimg.org/image/lr1o11cfj/][img]https://s11.postimg.org/lr1o11cfj/portdiag.png[/img][/url]
[url=https://postimage.org/]upload gif from url[/url]
https://s11.postimg.org/xnop7roz7/flah.png
https://s11.postimg.org/6ehx70d9v/flash_ok.png
https://s11.postimg.org/xdls25zqr/initnok.png
https://s11.postimg.org/b2xx272gj/initok.png
https://s11.postimg.org/j9pwtrsj7/portdiag.png
import port_diag
FlashROM:
Flash ID: 1640e0 (Vendor: e0 Device: 4016)
Flash bootloader data:
Byte @2: 02
Byte @3: 40 (Flash size: 4MB Flash freq: 40MHZ)
Firmware checksum:
size: 530740
md5: 798a3ddd15a3515eac9dbd198889fb2c
True
Networking:
STA ifconfig: ('0.0.0.0', '0.0.0.0', '0.0.0.0', '208.67.222.222')
AP ifconfig: ('0.0.0.0', '0.0.0.0', '0.0.0.0', '208.67.222.222')
Free WiFi driver buffers of type:
0: 8
1: 0
2: 8
3: 4
4: 7
lwIP PCBs:
Active PCB states:
Listen PCB states:
TIME-WAIT PCB states:
>>>
sorry for bad post and bad english!
Re: error on create file
work's fine in 1.7 version. but not work in last versions.
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: error on create file
Re erasing flash. I'm not a Windows user but this should work if you change the port to the correct Windows serial port:
Then install the firmware normally. You'll need to set up any WiFi connection details again as erase_flash erases everything.
Code: Select all
esptool.py --port /dev/ttyUSB0 erase_flash
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: error on create file
solved! erased all flash with ESP8266Flasher.exe (windows)
thanks!
thanks!
Re: error on create file
Unfortunately, this doesn't work for me.jmv wrote:solved! erased all flash with ESP8266Flasher.exe (windows)
thanks!
I erased the board multiple time. I know it was erased completely because not only the internal file system is now empty, but the name of the wifi network is reverted to the "MicroPython--XXX" format as well.
However, I still get the "OSError: can't set AP config", while a couple of months ago I have not had any problem... aside for that, the board seems to work fine.
Still struggling to understand...
P.S.
Update: It turned out that while it was impossibile to change the AP configuration from Repl, it was possibile do it from WEBRepl without any problem... I still don't get it, but as far as it works it is ok with me...
Re: error on create file
write a blank file to erase all memory with espflasher.exe
work's for me.
work's for me.
- Attachments
-
- blank_1MB.zip
- (1.13 KiB) Downloaded 337 times