Skip to content

Fix traceback when running mbed test #8782

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tools/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ def _generate_bootloader_build(self, rom_start, rom_size):
if start > rom_start + rom_size:
raise ConfigException("Not enough memory on device to fit all "
"application regions")

@staticmethod
def _find_sector(address, sectors):
target_size = -1
Expand All @@ -762,13 +762,13 @@ def _find_sector(address, sectors):
if (target_size < 0):
raise ConfigException("No valid sector found")
return target_start, target_size

@staticmethod
def _align_floor(address, sectors):
target_start, target_size = Config._find_sector(address, sectors)
sector_num = (address - target_start) // target_size
return target_start + (sector_num * target_size)

@staticmethod
def _align_ceiling(address, sectors):
target_start, target_size = Config._find_sector(address, sectors)
Expand All @@ -778,7 +778,7 @@ def _align_ceiling(address, sectors):
@property
def report(self):
return {'app_config': self.app_config_location,
'library_configs': map(relpath, self.processed_configs.keys())}
'library_configs': list(map(relpath, self.processed_configs.keys()))}

def _generate_linker_overrides(self, rom_start, rom_size):
if self.target.mbed_app_start is not None:
Expand Down