Lines Matching full:program
5 '''Runner for performing program download over CANopen (DSP 302-3).'''
23 # Default program number
26 # Program download buffer size in bytes
40 # Program control commands
100 parser.add_argument('--program-number', type=int, default=DEFAULT_PROGRAM_NUMBER,
101 help=f'program number (default: {DEFAULT_PROGRAM_NUMBER})')
107 help='confirm only, no program download (default: no)')
117 help=f'''Program download buffer size in bytes
145 '''Download program to flash over CANopen'''
147 self.logger.info('Using Node ID %d, program number %d',
167 raise ValueError('Cannot download program; bin_file is missing')
176 raise ValueError('Program download failed: '
191 '''CANopen program downloader'''
235 '''Write program control command to CANopen object dictionary (0x1f51)'''
243 self.logger.info('Stopping program')
248 self.logger.info('Starting program')
253 self.logger.info('Clearing program')
258 self.logger.info('Confirming program')
267 self.logger.info(f'Program software identification: 0x{swid:08x}')
279 '''Download program to CANopen object dictionary (0x1f50)'''
280 self.logger.info('Downloading program: %s', bin_file)
295 raise ValueError('Failed to download program') from err
326 '''Create a synthetic CANopen object dictionary for program download'''
329 array = canopen.objectdictionary.Array('Program data', 0x1f50)
335 array = canopen.objectdictionary.Array('Program control', 0x1f51)
341 array = canopen.objectdictionary.Array('Program software ID', 0x1f56)