west: runners: stm32flash: convert start_addr to string (concatenation)
The start_addr attribute of Stm32flashBinaryRunner is an integer. It must be converted to a string before being concatenated with a colon and the (already converted to a string) size to erase or write. Signed-off-by: Grzegorz Szymaszek <gszymaszek@short.pl>
This commit is contained in:
parent
0e41830728
commit
0a3e3958df
1 changed files with 2 additions and 2 deletions
|
@ -106,7 +106,7 @@ class Stm32flashBinaryRunner(ZephyrBinaryRunner):
|
||||||
size_aligned = (int(bin_size) & 0xfffff000) + 4096
|
size_aligned = (int(bin_size) & 0xfffff000) + 4096
|
||||||
msg_text = "erase {} bit starting at {}".format(size_aligned, self.start_addr)
|
msg_text = "erase {} bit starting at {}".format(size_aligned, self.start_addr)
|
||||||
cmd_flash.extend([
|
cmd_flash.extend([
|
||||||
'-S', self.start_addr + ":" + str(size_aligned), '-o'])
|
'-S', str(self.start_addr) + ":" + str(size_aligned), '-o'])
|
||||||
|
|
||||||
elif action == 'start':
|
elif action == 'start':
|
||||||
# start execution
|
# start execution
|
||||||
|
@ -123,7 +123,7 @@ class Stm32flashBinaryRunner(ZephyrBinaryRunner):
|
||||||
# flash binary file
|
# flash binary file
|
||||||
msg_text = "write {} bytes starting at {}".format(bin_size, self.start_addr)
|
msg_text = "write {} bytes starting at {}".format(bin_size, self.start_addr)
|
||||||
cmd_flash.extend([
|
cmd_flash.extend([
|
||||||
'-S', self.start_addr + ":" + str(bin_size),
|
'-S', str(self.start_addr) + ":" + str(bin_size),
|
||||||
'-w', bin_name])
|
'-w', bin_name])
|
||||||
|
|
||||||
if self.exec_addr:
|
if self.exec_addr:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue