We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 597c975 commit f2f31c9Copy full SHA for f2f31c9
1 file changed
lib/daplink_flash/daplink_flash/device.py
@@ -135,8 +135,10 @@ def read_sector(self, sector):
135
"""
136
self._wait_busy()
137
self._write_reg(CMD_READ_SECTOR, bytes([sector >> 8, sector & 0xFF]))
138
- sleep_ms(100)
139
- self._wait_busy()
+ # F103 processes the command in its 30ms hook, then sets up DMA.
+ # After DMA setup, the F103 is no longer in listen mode — only
140
+ # a plain readfrom() will work (no register-based status poll).
141
+ sleep_ms(200)
142
return self.i2c.readfrom(self.address, SECTOR_SIZE)
143
144
def read(self, length=None):
0 commit comments