aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHumberto Jimenez <humberto.jimenez@ni.com>2021-07-06 12:52:20 -0500
committerMartin Braun <martin@gnuradio.org>2021-07-07 00:15:31 -0700
commit5b31c2964d9084845d38815d4da2f859acf516bf (patch)
tree29f5f2e3fc052c800dfee8a8f23a16940c4e7f8f
parentdc187b5597779b14d0de4087db4aa54752a15d07 (diff)
downloaduhd-5b31c2964d9084845d38815d4da2f859acf516bf.tar.gz
uhd-5b31c2964d9084845d38815d4da2f859acf516bf.tar.bz2
uhd-5b31c2964d9084845d38815d4da2f859acf516bf.zip
mpm: max10_cpld_flash_ctrl: improve programming log
-rw-r--r--mpm/python/usrp_mpm/chips/max10_cpld_flash_ctrl.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mpm/python/usrp_mpm/chips/max10_cpld_flash_ctrl.py b/mpm/python/usrp_mpm/chips/max10_cpld_flash_ctrl.py
index 7ad61c655..392356552 100644
--- a/mpm/python/usrp_mpm/chips/max10_cpld_flash_ctrl.py
+++ b/mpm/python/usrp_mpm/chips/max10_cpld_flash_ctrl.py
@@ -147,9 +147,6 @@ class Max10CpldFlashCtrl():
def verify_flash_memory(self, raw_data):
# read words one at a time
for i, data in enumerate(raw_data):
- # status display
- if (i%1000 == 0):
- self.log.debug('%d%% done', i*4/self.file_size*100)
# write address
self.poke32(self.FLASH_ADDR_REG, self.cpld_start_address+i)
# start read operation
@@ -162,10 +159,13 @@ class Max10CpldFlashCtrl():
# read data from device
device_data = self.peek32(self.FLASH_READ_DATA_REG)
if (data != device_data):
- self.log.error("Data mismatch! address %d, expected value 0x%08X,"
+ self.log.debug("CPLD image mismatch! address %d, expected value 0x%08X,"
" read value 0x%08X" %
(i+self.cpld_start_address, data, device_data))
return False
+ # status display
+ if (i%1000 == 0):
+ self.log.debug('%d%% verified', i*4/self.file_size*100)
return True
def reverse_bits_in_byte(self, n):