parameters: (input_file, output_file)
docstring: Function reads flashh section of input file and
          writes that section to a new file
docstring_summary: Function reads flashh section of input file and
          writes that section to a new file
docstring_tokens: Function reads flashh section of input file and writes that section to a new file
function: def main(input_file, output_file):
      """ Function reads flashh section of input file and
          writes that section to a new file """
  
      LOGGER.info("Reading input file: %s" % input_file)
      LOGGER.info("Seaking to: 0x%s" % format(START_ADDR, 'x'))
      LOGGER.info("Reading image size: 0x%s" % format(IMAGE_SIZE, 'x'))
      with open(input_file, "rb") as complete_image_file:
          complete_image_file.seek(START_ADDR)
          fpga_image = complete_image_file.read(IMAGE_SIZE)
  
      LOGGER.info("Writing file: %s" % output_file)
      with open(output_file, "wb") as output_image_file:
          output_image_file.write(fpga_image)
      LOGGER.info("Finished extracting flash section")
function_tokens: def main ( input_file , output_file ) : LOGGER . info ( "Reading input file: %s" % input_file ) LOGGER . info ( "Seaking to: 0x%s" % format ( START_ADDR , 'x' ) ) LOGGER . info ( "Reading image size: 0x%s" % format ( IMAGE_SIZE , 'x' ) ) with open ( input_file , "rb" ) as complete_image_file : complete_image_file . seek ( START_ADDR ) fpga_image = complete_image_file . read ( IMAGE_SIZE ) LOGGER . info ( "Writing file: %s" % output_file ) with open ( output_file , "wb" ) as output_image_file : output_image_file . write ( fpga_image ) LOGGER . info ( "Finished extracting flash section" )