mirror of https://github.com/ARMmbed/mbed-os.git
Error check existence of sectors
parent
6df1256213
commit
dcaeae80c1
|
@ -501,7 +501,10 @@ class Config(object):
|
|||
"targets.json `device_name` not found in "
|
||||
"arm_pack_manager index.")
|
||||
cmsis_part = cache.index[self.target.device_name]
|
||||
return cmsis_part['sectors']
|
||||
sectors = cmsis_part['sectors']
|
||||
if sectors:
|
||||
return sectors
|
||||
raise ConfigException("No sector info available")
|
||||
|
||||
@property
|
||||
def regions(self):
|
||||
|
|
Loading…
Reference in New Issue