In working with mcuboot bootloader,
I’m not able to flash a signed image to slot1_partitition
(address 0x73000 on a particle_xenon
board that has mcuboot bootloader) using pyocd
.
However, I have no issues when using Segger jflashlite
utility. pyocd
seems to prefer start flashing at address 0x00080000.
Has anyone else seen a similar behavior with pyocd
? Thanks.
$pyocd flash -a 0x73000 -t nrf52 signed-new_blinky.bin
Errors:
0001214:CRITICAL:__main__:no memory region defined for address 0x00080000
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyocd/__main__.py", line 398, in run
self._COMMANDS[self._args.cmd](self)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyocd/__main__.py", line 572, in do_flash
programmer.program(self._args.file,
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyocd/flash/file_programmer.py", line 157, in program
self._format_handlers[file_format](file_obj, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyocd/flash/file_programmer.py", line 176, in _program_bin
self._loader.add_data(address, data)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyocd/flash/loader.py", line 115, in add_data
raise ValueError("no memory region defined for address 0x%08x" % address)
ValueError: no memory region defined for address 0x00080000