Lines Matching +full:baud +full:- +full:rate
3 # SPDX-License-Identifier: Apache-2.0
17 '''Runner front-end for stm32flash.'''
19 def __init__(self, cfg, device, action='write', baud=57600, argument
26 self.baud = baud
49 parser.add_argument('--device', default=DEFAULT_DEVICE, required=False,
52 parser.add_argument('--action', default='write', required=False,
56 parser.add_argument('--baud-rate', default='57600', required=False,
60 help='serial baud rate, default \'57600\'')
62 parser.add_argument('--force-binary', required=False, action='store_true',
65 parser.add_argument('--start-addr', default=0, required=False,
68 parser.add_argument('--execution-addr', default=None, required=False,
72 parser.add_argument('--serial-mode', default='8e1', required=False,
75 parser.add_argument('--verify', default=False, required=False, action='store_true',
83 baud=args.baud_rate, force_binary=args.force_binary,
94 cmd_flash = ['stm32flash', '-b', self.baud,
95 '-m', self.serial_mode]
109 '-S', str(self.start_addr) + ":" + str(size_aligned), '-o'])
120 '-g', str(self.exec_addr)])
126 '-S', str(self.start_addr) + ":" + str(bin_size),
127 '-w', bin_name])
130 cmd_flash.extend(['-g', self.exec_addr])
133 cmd_flash.extend(['-f'])
136 cmd_flash.extend(['-R'])
139 cmd_flash.extend(['-v'])
144 return -1