if args['--no_fw_load']:
        loadFirmware = False

    if args['--no_reset']:
        performReset = False

    if performReset == True:
        newton.adi_reset_newton(newton.PIN_MODE_HSP_DEBUG)

    if loadFirmware == True:
        cmd_file = os.path.expanduser(
            "./tests/dms_eval_tests/fc_asm_mscm_dll_visible_moda/fc_asm_mscm_dll_visible_moda.txt"
        )
        cmd_file_bytes = cmd_file.encode(encoding='utf-8')
        newton.adi_load_command_file(cmd_file_bytes)
        newton.adi_write_register(0x000C, 0x00c5)  # useqControlRegister

    newton.adi_check_register_py(0x0142, 0x0500)  # pll_status
    newton.adi_write_register(0x0244, 0x0020)  # SCRATCHPAD[34]
    newton.adi_write_register(0x0028, 0x0000)  # systemClockControl
    newton.adi_write_register(0x0140, 0x0133)  # pll_ctrl
    newton.adi_write_register(0x015e, 0x8512)  # syspll_ctrl2_s1
    newton.adi_write_register(0x015a, 0x7810)  # syspll_ctrl0_s1
    newton.adi_write_register(0x0146, 0x007b)  # power_down_adc_others
    newton.adi_write_register(0x017c, 0x0220)  # xosc_ctrl
    newton.adi_write_register(0x0150, 0x0105)  # regif_ctrl
    newton.adi_check_register_py(0x0032, 0x0000)  # errorStatus
    newton.adi_check_register_py(0x0150, 0x0101)  # regif_ctrl
    newton.adi_write_register(0x0140, 0x0033)  # pll_ctrl
    newton.adi_write_register(0x0028, 0x0001)  # systemClockControl
   rc = newton.adi_newton_config( 0 )
   if rc != 0:
      print( "ERROR: newton.adi_newton_config return an error (" + str( rc ) + ")." )
      sys.exit( rc )

   rc = os.system( "~/host_api/examples/python/tests/startup.py --security_state=prod" )
   if rc != 0:
      print( "ERROR: startup.py return an error (" + str( rc ) + ")." )
      sys.exit( rc )

   #===========================================================
   print( "INFO: Running the MSFT Production Sequence ..." )

   print( "INFO: Loading the command file \"" + cmd_file1 + "\"..." )
   rc = newton.adi_load_command_file( cmd_file1_bytes )
   if rc != 0:
      print( "ERROR: newton.adi_load_command_file returned error (" + str( rc ) + ")." )
      sys.exit( rc )

   print( "INFO: Loading the command file \"" + cmd_file2 + "\"..." )
   rc = newton.adi_load_command_file( cmd_file2_bytes )
   if rc != 0:
      print( "ERROR: newton.adi_load_command_file returned error (" + str( rc ) + ")." )
      sys.exit( rc )

   print( "INFO: Checking the 1SP completion code ..." )
   rc = newton.adi_check_done_code( )
   if rc != 0:
      print( "ERROR: newton.adi_check_done_code returned error (" + str( rc ) + ")." )
      sys.exit( rc )