Statistics: Posted by adhopraz — Tue Nov 27, 2018 4:45 pm
Statistics: Posted by rudi — Mon Jan 25, 2016 9:15 am
Code:
..
def get_flash_id(self):
try:
self.flash_begin(0,0)
self.write_reg(self.ESP_DATA_ADDR, 0 , 0 , 0 )
time.sleep(0.01)
self.write_reg(self.ESP_CMD_ADDR , self.ESP_CMD_RDID , self.ESP_CMD_RDID , 0 )
time.sleep(0.01)
flash_id = self.read_reg(self.ESP_DATA_ADDR)
print "get flash id : 0x%08x"%flash_id
self.flash_manufacturer_id = flash_id&0xff
self.flash_device_id = ((flash_id>>16)&0xff | (flash_id &( 0xff<<8)))
print " manufacturer_id: 0x%x\r\n"%self.flash_manufacturer_id
print " device_id: 0x%x\r\n"%self.flash_device_id
return True
except:
print "get flash id error"
return False
#self.mp.textCtrl_BinPath3.AppendText("\r\nFLASH:\r\n")
#self.mp.textCtrl_BinPath3.AppendText("manufacturer_id: %xh\r\n"%manufacturer_id)
#self.mp.textCtrl_BinPath3.AppendText("device_id:%xh\r\n"%device_id)
..
Statistics: Posted by rudi — Mon Jan 25, 2016 4:21 am
Statistics: Posted by lihwarlee — Sat Jan 16, 2016 9:15 am
Statistics: Posted by rudi — Tue Sep 22, 2015 2:53 am
Code:
https://www.winbond.com/resource-files/w25q64cv_revh_052214[2].pdf
Statistics: Posted by rudi — Thu Aug 20, 2015 11:15 pm