Getting frustrated : Serial Object has no attribute dtr
Posted: Thu Jul 23, 2020 3:56 pm
pffff....
I managed already to have Python working on my Windows 7 PC ( I know old and should update to WIN10 ... )
Want to do a backup from current firmware to .bin for my newly never used SONOFF S20
( firmware seems to be not general available and locked per device, so I need backup from this one )
When starting command :
python esptool.py -b 115200 --port COM6 read_flash 0x000000 0x100000 flash_1M.bin
It won't readout and gives error :
AttributeError: 'Serial' Object has no attribute 'dtr'
I'm using a CH340 ESP-01 usb to serial TTL module, and my connections seems correct as I can read out via Putty @ speed 74880 :
ets Jan 8 2013,rst cause:1, boot mode:(3,6)
load 0x40100000, len 2408, room 16
tail 8
chksum 0xe5
load 0x3ffe8000, len 776, room 0
tail 8
chksum 0x84
load 0x3ffe8310, len 632, room 0
tail 8
chksum 0xd8
csum 0xd8
2nd boot version : 1.6
SPI Speed : 40MHz
SPI Mode : DOUT
SPI Flash Size & Map: 8Mbit(512KB+512KB)
jump to run user1 @ 1000
rf cal sector: 251
rf[112]
Someone an alternative solution to backup firmware ? (without esptool ? )
Or a solution for the 'dtr' problem ?
Thanks for any reaction/reply !
I managed already to have Python working on my Windows 7 PC ( I know old and should update to WIN10 ... )
Want to do a backup from current firmware to .bin for my newly never used SONOFF S20
( firmware seems to be not general available and locked per device, so I need backup from this one )
When starting command :
python esptool.py -b 115200 --port COM6 read_flash 0x000000 0x100000 flash_1M.bin
It won't readout and gives error :
AttributeError: 'Serial' Object has no attribute 'dtr'
I'm using a CH340 ESP-01 usb to serial TTL module, and my connections seems correct as I can read out via Putty @ speed 74880 :
ets Jan 8 2013,rst cause:1, boot mode:(3,6)
load 0x40100000, len 2408, room 16
tail 8
chksum 0xe5
load 0x3ffe8000, len 776, room 0
tail 8
chksum 0x84
load 0x3ffe8310, len 632, room 0
tail 8
chksum 0xd8
csum 0xd8
2nd boot version : 1.6
SPI Speed : 40MHz
SPI Mode : DOUT
SPI Flash Size & Map: 8Mbit(512KB+512KB)
jump to run user1 @ 1000
rf cal sector: 251
rf[112]
Someone an alternative solution to backup firmware ? (without esptool ? )
Or a solution for the 'dtr' problem ?
Thanks for any reaction/reply !