pyedbglib¶
- pyedbglib.hidtransport
- pyedbglib.mplabtransport
- pyedbglib.primitive
- pyedbglib.protocols
- pyedbglib.protocols.ati
AsynchronousTransportInterface
AsynchronousTransportInterface.read_buffer()
AsynchronousTransportInterface.read_data_buffer()
AsynchronousTransportInterface.read_metadata_buffer()
AsynchronousTransportInterface.read_response_buffer()
AsynchronousTransportInterface.receive_fragment()
AsynchronousTransportInterface.send_fragment()
AsynchronousTransportInterface.write_buffer()
AsynchronousTransportInterface.write_command_buffer()
AsynchronousTransportInterface.write_data_buffer()
AsynchronousTransportInterface.write_metadata_buffer()
get_ati_header()
- pyedbglib.protocols.avr32protocol
Avr32Protocol
Avr32Protocol.AVR32_AWIRE_BASE
Avr32Protocol.AVR32_CONTEXT_DEVICE
Avr32Protocol.AVR32_CONTEXT_PHYSICAL
Avr32Protocol.AVR32_CONTEXT_SESSION
Avr32Protocol.AVR32_CONTEXT_USB
Avr32Protocol.AVR32_FAILURE_OK
Avr32Protocol.AVR32_FLASH_CTRL_BASE
Avr32Protocol.AVR32_FLASH_PAGEBYTES
Avr32Protocol.AVR32_FLASH_PAGES
Avr32Protocol.AVR32_MEMTYPE_BLOCK
Avr32Protocol.AVR32_MEMTYPE_BYTE
Avr32Protocol.AVR32_MEMTYPE_FUSES
Avr32Protocol.AVR32_MEMTYPE_HALF_WORD
Avr32Protocol.AVR32_MEMTYPE_INTERNAL_FLASH
Avr32Protocol.AVR32_MEMTYPE_MEMORY_SERVICE
Avr32Protocol.AVR32_MEMTYPE_NEXUS
Avr32Protocol.AVR32_MEMTYPE_REGFILE
Avr32Protocol.AVR32_MEMTYPE_SAB
Avr32Protocol.AVR32_MEMTYPE_SYSREG
Avr32Protocol.AVR32_MEMTYPE_USER_PAGE
Avr32Protocol.AVR32_PHYSICAL_AWIRE_BAUD
Avr32Protocol.AVR32_PHYSICAL_AWIRE_MAX_BAUD
Avr32Protocol.AVR32_PHYSICAL_AWIRE_VERSION
Avr32Protocol.AVR32_PHYSICAL_DAISY
Avr32Protocol.AVR32_PHYSICAL_EXTERNAL_RESET
Avr32Protocol.AVR32_PHYSICAL_JTAG_CLOCK
Avr32Protocol.AVR32_PHYSICAL_PHYSICAL
Avr32Protocol.AVR32_PHY_INTF_AWIRE
Avr32Protocol.AVR32_PHY_INTF_JTAG
Avr32Protocol.AVR32_PHY_INTF_NONE
Avr32Protocol.AVR32_QUERY_COMMANDS
Avr32Protocol.AVR32_QUERY_COMMAND_VERSIONS
Avr32Protocol.AVR32_QUERY_CONFIGURATION
Avr32Protocol.AVR32_QUERY_DEVICE
Avr32Protocol.AVR32_QUERY_FAMILIES
Avr32Protocol.AVR32_QUERY_FUNCTIONS
Avr32Protocol.AVR32_QUERY_INTERFACES
Avr32Protocol.AVR32_QUERY_READ_MEMTYPES
Avr32Protocol.AVR32_QUERY_WRITE_MEMTYPES
Avr32Protocol.AVR32_RESET_DOMAINS
Avr32Protocol.AVR32_SESSION_RUN_LED
Avr32Protocol.AVR32_TAP_DR
Avr32Protocol.AVR32_TAP_IR
Avr32Protocol.AVR32_USB_MAX_READ
Avr32Protocol.AVR32_USB_MAX_WRITE
Avr32Protocol.CMD_AVR32_ACTIVATE_PHYSICAL
Avr32Protocol.CMD_AVR32_DEACTIVATE_PHYSICAL
Avr32Protocol.CMD_AVR32_ERASE
Avr32Protocol.CMD_AVR32_ERASE_SECTION
Avr32Protocol.CMD_AVR32_GET
Avr32Protocol.CMD_AVR32_GET_ID
Avr32Protocol.CMD_AVR32_HALT
Avr32Protocol.CMD_AVR32_IS_PROTECTED
Avr32Protocol.CMD_AVR32_QUERY
Avr32Protocol.CMD_AVR32_READ
Avr32Protocol.CMD_AVR32_RESET
Avr32Protocol.CMD_AVR32_SET
Avr32Protocol.CMD_AVR32_STEP
Avr32Protocol.CMD_AVR32_TAP
Avr32Protocol.CMD_AVR32_WRITE
Avr32Protocol.RSP_AVR32_DATA
Avr32Protocol.RSP_AVR32_DATA_PROBED
Avr32Protocol.RSP_AVR32_FAILED
Avr32Protocol.RSP_AVR32_ID
Avr32Protocol.RSP_AVR32_LIST
Avr32Protocol.RSP_AVR32_OK
Avr32Protocol.RSP_AVR32_PC
Avr32Protocol.activate_physical()
Avr32Protocol.deactivate_physical()
Avr32Protocol.erase()
Avr32Protocol.get_id()
Avr32Protocol.halt()
Avr32Protocol.is_protected()
Avr32Protocol.jtag_dr()
Avr32Protocol.jtag_ir()
Avr32Protocol.memory_read()
Avr32Protocol.memory_write()
Avr32Protocol.reset()
Avr32Protocol.step()
- pyedbglib.protocols.avr32protocolerrors
- pyedbglib.protocols.avr8protocol
Avr8Protocol
Avr8Protocol.AVR8_CONFIG_FUNCTION
Avr8Protocol.AVR8_CONFIG_VARIANT
Avr8Protocol.AVR8_CTXT_CONFIG
Avr8Protocol.AVR8_CTXT_DEVICE
Avr8Protocol.AVR8_CTXT_OPTIONS
Avr8Protocol.AVR8_CTXT_PHYSICAL
Avr8Protocol.AVR8_CTXT_SESSION
Avr8Protocol.AVR8_CTXT_TEST
Avr8Protocol.AVR8_FAILURE_ACK_ERROR
Avr8Protocol.AVR8_FAILURE_BOOT_ERROR
Avr8Protocol.AVR8_FAILURE_CLOCK_ERROR
Avr8Protocol.AVR8_FAILURE_COLLISION
Avr8Protocol.AVR8_FAILURE_CRC_FAILURE
Avr8Protocol.AVR8_FAILURE_CS_ERROR
Avr8Protocol.AVR8_FAILURE_DAISY_CHAIN_CONFIG
Avr8Protocol.AVR8_FAILURE_DAISY_CHAIN_TOO_LONG
Avr8Protocol.AVR8_FAILURE_DMA_ERROR
Avr8Protocol.AVR8_FAILURE_DW_PHY_ERROR
Avr8Protocol.AVR8_FAILURE_EB_ERROR
Avr8Protocol.AVR8_FAILURE_FRAMING_ERROR
Avr8Protocol.AVR8_FAILURE_ILLEGAL_BREAKPOINT
Avr8Protocol.AVR8_FAILURE_ILLEGAL_ID
Avr8Protocol.AVR8_FAILURE_ILLEGAL_MEMORY_RANGE
Avr8Protocol.AVR8_FAILURE_ILLEGAL_OCD_STATUS
Avr8Protocol.AVR8_FAILURE_ILLEGAL_STATE
Avr8Protocol.AVR8_FAILURE_ILLEGAL_VALUE
Avr8Protocol.AVR8_FAILURE_INVALID_ADDRESS
Avr8Protocol.AVR8_FAILURE_INVALID_ALIGNMENT
Avr8Protocol.AVR8_FAILURE_INVALID_CLOCK_SPEED
Avr8Protocol.AVR8_FAILURE_INVALID_CONFIG
Avr8Protocol.AVR8_FAILURE_INVALID_MEMTYPE
Avr8Protocol.AVR8_FAILURE_INVALID_PHYSICAL_STATE
Avr8Protocol.AVR8_FAILURE_INVALID_SIZE
Avr8Protocol.AVR8_FAILURE_JTAGM_ERROR
Avr8Protocol.AVR8_FAILURE_JTAGM_INIT_ERROR
Avr8Protocol.AVR8_FAILURE_JTAGM_TIMEOUT
Avr8Protocol.AVR8_FAILURE_JTAGM_VERSION
Avr8Protocol.AVR8_FAILURE_JTAG_BIT_BANGER_TIMEOUT
Avr8Protocol.AVR8_FAILURE_JTAG_ERROR
Avr8Protocol.AVR8_FAILURE_KEY_ERROR
Avr8Protocol.AVR8_FAILURE_NOT_ATTACHED
Avr8Protocol.AVR8_FAILURE_NOT_IMPLEMENTED
Avr8Protocol.AVR8_FAILURE_NOT_SUPPORTED
Avr8Protocol.AVR8_FAILURE_NO_DEVICE_FOUND
Avr8Protocol.AVR8_FAILURE_NO_OCD_CONTROL
Avr8Protocol.AVR8_FAILURE_NO_TARGET_POWER
Avr8Protocol.AVR8_FAILURE_NO_VOUT_SET
Avr8Protocol.AVR8_FAILURE_NVM_DISABLE
Avr8Protocol.AVR8_FAILURE_NVM_ENABLE
Avr8Protocol.AVR8_FAILURE_OCD_LOCKED
Avr8Protocol.AVR8_FAILURE_OK
Avr8Protocol.AVR8_FAILURE_PARITY_ERROR
Avr8Protocol.AVR8_FAILURE_PC_READ_FAILED
Avr8Protocol.AVR8_FAILURE_PDI_ENABLE
Avr8Protocol.AVR8_FAILURE_PDI_TIMEOUT
Avr8Protocol.AVR8_FAILURE_PLEASE_TOGGLE_POWER
Avr8Protocol.AVR8_FAILURE_READ_ERROR
Avr8Protocol.AVR8_FAILURE_REGISTER_READ_FAILED
Avr8Protocol.AVR8_FAILURE_TIMEOUT
Avr8Protocol.AVR8_FAILURE_TOO_MANY_BREAKPOINTS
Avr8Protocol.AVR8_FAILURE_UNKNOWN
Avr8Protocol.AVR8_FAILURE_VOUT_ERROR
Avr8Protocol.AVR8_FAILURE_VTG_TOO_LOW_FOR_FEATURE
Avr8Protocol.AVR8_FAILURE_WRITE_ERROR
Avr8Protocol.AVR8_FAILURE_WRITE_TIMEOUT
Avr8Protocol.AVR8_FUNC_DEBUGGING
Avr8Protocol.AVR8_FUNC_NONE
Avr8Protocol.AVR8_FUNC_PROGRAMMING
Avr8Protocol.AVR8_MEMTYPE_APPL_FLASH
Avr8Protocol.AVR8_MEMTYPE_APPL_FLASH_ATOMIC
Avr8Protocol.AVR8_MEMTYPE_BOOT_FLASH
Avr8Protocol.AVR8_MEMTYPE_BOOT_FLASH_ATOMIC
Avr8Protocol.AVR8_MEMTYPE_BOOT_ROW
Avr8Protocol.AVR8_MEMTYPE_CALIBRATION_SIGNATURE
Avr8Protocol.AVR8_MEMTYPE_CAN
Avr8Protocol.AVR8_MEMTYPE_CS
Avr8Protocol.AVR8_MEMTYPE_EEPROM
Avr8Protocol.AVR8_MEMTYPE_EEPROM_ATOMIC
Avr8Protocol.AVR8_MEMTYPE_EEPROM_PAGE
Avr8Protocol.AVR8_MEMTYPE_FLASH_PAGE
Avr8Protocol.AVR8_MEMTYPE_FUSES
Avr8Protocol.AVR8_MEMTYPE_IO_SHADOW
Avr8Protocol.AVR8_MEMTYPE_LOCKBITS
Avr8Protocol.AVR8_MEMTYPE_OCD
Avr8Protocol.AVR8_MEMTYPE_OCD_PC
Avr8Protocol.AVR8_MEMTYPE_OCD_SP
Avr8Protocol.AVR8_MEMTYPE_OCD_SREG
Avr8Protocol.AVR8_MEMTYPE_OSCCAL
Avr8Protocol.AVR8_MEMTYPE_REGFILE
Avr8Protocol.AVR8_MEMTYPE_SIB
Avr8Protocol.AVR8_MEMTYPE_SIGNATURE
Avr8Protocol.AVR8_MEMTYPE_SPM
Avr8Protocol.AVR8_MEMTYPE_SRAM
Avr8Protocol.AVR8_MEMTYPE_TBUS
Avr8Protocol.AVR8_MEMTYPE_USER_SIGNATURE
Avr8Protocol.AVR8_OPT_12V_UPDI_ENABLE
Avr8Protocol.AVR8_OPT_CHIP_ERASE_TO_ENTER
Avr8Protocol.AVR8_OPT_DISABLE_DBP
Avr8Protocol.AVR8_OPT_ENABLE_IDR
Avr8Protocol.AVR8_OPT_HV_UPDI_ENABLE
Avr8Protocol.AVR8_OPT_POLL_INT
Avr8Protocol.AVR8_OPT_POWER_NAP
Avr8Protocol.AVR8_OPT_RUN_TIMERS
Avr8Protocol.AVR8_PHY_DW_CLK_DIV
Avr8Protocol.AVR8_PHY_INTERFACE
Avr8Protocol.AVR8_PHY_INTF_DW
Avr8Protocol.AVR8_PHY_INTF_JTAG
Avr8Protocol.AVR8_PHY_INTF_NONE
Avr8Protocol.AVR8_PHY_INTF_PDI
Avr8Protocol.AVR8_PHY_INTF_PDI_1W
Avr8Protocol.AVR8_PHY_INTF_PDI_3W
Avr8Protocol.AVR8_PHY_JTAG_DAISY
Avr8Protocol.AVR8_PHY_MEGA_DBG_CLK
Avr8Protocol.AVR8_PHY_MEGA_PRG_CLK
Avr8Protocol.AVR8_PHY_XM_JTAG_CLK
Avr8Protocol.AVR8_PHY_XM_PDI_CLK
Avr8Protocol.AVR8_TEST_TGT_RUNNING
Avr8Protocol.AVR8_VARIANT_LOOPBACK
Avr8Protocol.AVR8_VARIANT_MEGAOCD
Avr8Protocol.AVR8_VARIANT_NONE
Avr8Protocol.AVR8_VARIANT_TINYOCD
Avr8Protocol.AVR8_VARIANT_TINYX
Avr8Protocol.AVR8_VARIANT_UPDI
Avr8Protocol.AVR8_VARIANT_XMEGA
Avr8Protocol.CMD_AVR8_ACTIVATE_PHYSICAL
Avr8Protocol.CMD_AVR8_ATTACH
Avr8Protocol.CMD_AVR8_CRC
Avr8Protocol.CMD_AVR8_DEACTIVATE_PHYSICAL
Avr8Protocol.CMD_AVR8_DETACH
Avr8Protocol.CMD_AVR8_DISABLE_DEBUGWIRE
Avr8Protocol.CMD_AVR8_ERASE
Avr8Protocol.CMD_AVR8_EXECUTE_PATCH
Avr8Protocol.CMD_AVR8_GET
Avr8Protocol.CMD_AVR8_GET_ID
Avr8Protocol.CMD_AVR8_HW_BREAK_CLEAR
Avr8Protocol.CMD_AVR8_HW_BREAK_SET
Avr8Protocol.CMD_AVR8_MEMORY_READ
Avr8Protocol.CMD_AVR8_MEMORY_READ_MASKED
Avr8Protocol.CMD_AVR8_MEMORY_WRITE
Avr8Protocol.CMD_AVR8_PAGE_ERASE
Avr8Protocol.CMD_AVR8_PC_READ
Avr8Protocol.CMD_AVR8_PC_WRITE
Avr8Protocol.CMD_AVR8_PROG_MODE_ENTER
Avr8Protocol.CMD_AVR8_PROG_MODE_LEAVE
Avr8Protocol.CMD_AVR8_QUERY
Avr8Protocol.CMD_AVR8_RESET
Avr8Protocol.CMD_AVR8_RUN
Avr8Protocol.CMD_AVR8_RUN_TO_ADDRESS
Avr8Protocol.CMD_AVR8_SET
Avr8Protocol.CMD_AVR8_STEP
Avr8Protocol.CMD_AVR8_STOP
Avr8Protocol.CMD_AVR8_SW_BREAK_CLEAR
Avr8Protocol.CMD_AVR8_SW_BREAK_CLEAR_ALL
Avr8Protocol.CMD_AVR8_SW_BREAK_SET
Avr8Protocol.ERASE_APP
Avr8Protocol.ERASE_APP_PAGE
Avr8Protocol.ERASE_BOOT
Avr8Protocol.ERASE_BOOT_PAGE
Avr8Protocol.ERASE_CHIP
Avr8Protocol.ERASE_EEPROM
Avr8Protocol.ERASE_EEPROM_PAGE
Avr8Protocol.ERASE_USERSIG
Avr8Protocol.EVT_AVR8_BREAK
Avr8Protocol.EVT_AVR8_BREAK_CAUSE
Avr8Protocol.EVT_AVR8_BREAK_EVT_ID
Avr8Protocol.EVT_AVR8_BREAK_EXT_INFO
Avr8Protocol.EVT_AVR8_BREAK_PC
Avr8Protocol.EVT_AVR8_IDR
Avr8Protocol.RSP_AVR8_DATA
Avr8Protocol.RSP_AVR8_FAILED
Avr8Protocol.RSP_AVR8_LIST
Avr8Protocol.RSP_AVR8_OK
Avr8Protocol.RSP_AVR8_PC
Avr8Protocol.UPDI_12V_NONE
Avr8Protocol.UPDI_HV_AUTO_POWER_TOGGLE
Avr8Protocol.UPDI_HV_NONE
Avr8Protocol.UPDI_HV_SIMPLE_PULSE
Avr8Protocol.UPDI_HV_USER_POWER_TOGGLE
Avr8Protocol.activate_physical()
Avr8Protocol.attach()
Avr8Protocol.configure_daisy_chain()
Avr8Protocol.deactivate_physical()
Avr8Protocol.debugwire_disable()
Avr8Protocol.decode_break_event()
Avr8Protocol.detach()
Avr8Protocol.enter_progmode()
Avr8Protocol.erase()
Avr8Protocol.error_as_string()
Avr8Protocol.get_id()
Avr8Protocol.leave_progmode()
Avr8Protocol.memory_read()
Avr8Protocol.memory_write()
Avr8Protocol.program_counter_read()
Avr8Protocol.program_counter_write()
Avr8Protocol.regfile_read()
Avr8Protocol.regfile_write()
Avr8Protocol.reset()
Avr8Protocol.run()
Avr8Protocol.run_to()
Avr8Protocol.set_function()
Avr8Protocol.set_interface()
Avr8Protocol.set_variant()
Avr8Protocol.software_breakpoint_clear()
Avr8Protocol.software_breakpoint_clear_all()
Avr8Protocol.software_breakpoint_set()
Avr8Protocol.step()
Avr8Protocol.stop()
Avr8Protocol.write_device_data()
- pyedbglib.protocols.avr8protocolerrors
- pyedbglib.protocols.avrcmsisdap
AvrCommand
AvrCommand.AVR_CMD_COMMAND_HEADER_CMD
AvrCommand.AVR_CMD_COMMAND_HEADER_FRAGMENT_NUMBER
AvrCommand.AVR_CMD_COMMAND_HEADER_PAYLOAD_START
AvrCommand.AVR_CMD_COMMAND_HEADER_SIZE
AvrCommand.AVR_CMD_RESPONSE_FRAGMENT_CODE
AvrCommand.AVR_CMD_RESPONSE_HEADER_CMD
AvrCommand.AVR_COMMAND
AvrCommand.AVR_COMMAND_RESPONSE_MAX_PAYLOAD
AvrCommand.AVR_EVENT
AvrCommand.AVR_EVENT_COMMAND_HEADER_EVT
AvrCommand.AVR_EVENT_RESPONSE_HEADER_EVT
AvrCommand.AVR_EVENT_RESPONSE_HEADER_PAYLOAD_START
AvrCommand.AVR_EVENT_RESPONSE_HEADER_SIZE
AvrCommand.AVR_EVENT_RESPONSE_MAX_SIZE
AvrCommand.AVR_EVENT_RESPONSE_MIN_SIZE
AvrCommand.AVR_FINAL_FRAGMENT
AvrCommand.AVR_MORE_FRAGMENTS
AvrCommand.AVR_RESPONSE
AvrCommand.AVR_RETRY_DELAY_MS
AvrCommand.AVR_RSP_COMMAND_HEADER_RSP
AvrCommand.AVR_RSP_RESPONSE_HEADER_FRAGMENT_NUMBER
AvrCommand.AVR_RSP_RESPONSE_HEADER_PAYLOAD_START
AvrCommand.AVR_RSP_RESPONSE_HEADER_RSP
AvrCommand.AVR_RSP_RESPONSE_HEADER_SIZE
AvrCommand.avr_command_response()
AvrCommand.poll_events()
AvrCommandError
- pyedbglib.protocols.avrispprotocol
AvrIspProtocol
AvrIspProtocol.AVR_ERASE_COMMAND
AvrIspProtocol.AVR_ERASE_DELAY
AvrIspProtocol.AVR_ERASE_POLLMODE
AvrIspProtocol.AVR_LOAD_PAGE_COMMAND
AvrIspProtocol.AVR_POLL_VALUE
AvrIspProtocol.AVR_POST_LEAVE_DELAY_MS
AvrIspProtocol.AVR_PRE_LEAVE_DELAY_MS
AvrIspProtocol.AVR_PROG_ENABLE_COMMAND
AvrIspProtocol.AVR_READ_CALIBRATION_BYTE_COMMAND
AvrIspProtocol.AVR_READ_EEPROM_COMMAND
AvrIspProtocol.AVR_READ_FLASH_COMMAND
AvrIspProtocol.AVR_READ_FUSE_COMMANDS
AvrIspProtocol.AVR_READ_LOCK_COMMAND
AvrIspProtocol.AVR_READ_SIGNATURE_COMMAND
AvrIspProtocol.AVR_REPLY_OFFSET
AvrIspProtocol.AVR_WRITE_FUSE_COMMANDS
AvrIspProtocol.AVR_WRITE_LOCK_COMMAND
AvrIspProtocol.AVR_WRITE_PAGE_COMMAND
AvrIspProtocol.BYTE_DELAY
AvrIspProtocol.FUNC_DELAY
AvrIspProtocol.PIN_DELAY
AvrIspProtocol.SPI_CMD_CHIP_ERASE
AvrIspProtocol.SPI_CMD_ENTER_PROGMODE
AvrIspProtocol.SPI_CMD_GET_BAUD
AvrIspProtocol.SPI_CMD_LEAVE_PROGMODE
AvrIspProtocol.SPI_CMD_LOAD_ADDRESS
AvrIspProtocol.SPI_CMD_PROGRAM_EEPROM
AvrIspProtocol.SPI_CMD_PROGRAM_FLASH
AvrIspProtocol.SPI_CMD_PROGRAM_FUSE
AvrIspProtocol.SPI_CMD_PROGRAM_LOCK
AvrIspProtocol.SPI_CMD_READ_EEPROM
AvrIspProtocol.SPI_CMD_READ_FLASH
AvrIspProtocol.SPI_CMD_READ_FUSE
AvrIspProtocol.SPI_CMD_READ_LOCK
AvrIspProtocol.SPI_CMD_READ_OSCCAL
AvrIspProtocol.SPI_CMD_READ_SIGNATURE
AvrIspProtocol.SPI_CMD_SET_BAUD
AvrIspProtocol.SPI_CMD_SIGN_ON
AvrIspProtocol.SPI_STATUS_BAUD_INVALID
AvrIspProtocol.SPI_STATUS_CLOCK_ERROR
AvrIspProtocol.SPI_STATUS_CMD_FAILED
AvrIspProtocol.SPI_STATUS_CMD_OK
AvrIspProtocol.SPI_STATUS_CMD_TOUT
AvrIspProtocol.SPI_STATUS_CMD_UNKNOWN
AvrIspProtocol.SPI_STATUS_PHY_ERROR
AvrIspProtocol.SPI_STATUS_RDY_BSY_TOUT
AvrIspProtocol.SYNC_LOOPS
AvrIspProtocol.enter_progmode()
AvrIspProtocol.erase()
AvrIspProtocol.get_id()
AvrIspProtocol.leave_progmode()
AvrIspProtocol.load_address()
AvrIspProtocol.read_calibration_bytes()
AvrIspProtocol.read_eeprom_chunk()
AvrIspProtocol.read_flash_chunk()
AvrIspProtocol.read_fuse_byte()
AvrIspProtocol.read_lockbits()
AvrIspProtocol.read_signature_bytes()
AvrIspProtocol.write_eeprom_page()
AvrIspProtocol.write_flash_page()
AvrIspProtocol.write_fuse_byte()
AvrIspProtocol.write_lockbits()
AvrIspProtocolError
- pyedbglib.protocols.cmsisdap
CmsisDapDebugger
CmsisDapDebugger.CDBGPWRUPACK
CmsisDapDebugger.CDBGPWRUPREQ
CmsisDapDebugger.CDBGRSTACK
CmsisDapDebugger.CDBGRSTREQ
CmsisDapDebugger.CM0P_DAPID
CmsisDapDebugger.CSW_16BIT
CmsisDapDebugger.CSW_32BIT
CmsisDapDebugger.CSW_8BIT
CmsisDapDebugger.CSW_ADDRINC_OFF
CmsisDapDebugger.CSW_ADDRINC_ON
CmsisDapDebugger.CSYSPWRUPACK
CmsisDapDebugger.CSYSPWRUPREQ
CmsisDapDebugger.DAP_SWJ_SWCLK_TCK
CmsisDapDebugger.DAP_SWJ_SWDIO_TMS
CmsisDapDebugger.DAP_SWJ_TDI
CmsisDapDebugger.DAP_SWJ_TDO
CmsisDapDebugger.DAP_SWJ_nRESET
CmsisDapDebugger.DAP_SWJ_nTRST
CmsisDapDebugger.DAP_TRANSFER_A2
CmsisDapDebugger.DAP_TRANSFER_A3
CmsisDapDebugger.DAP_TRANSFER_APnDP
CmsisDapDebugger.DAP_TRANSFER_ERROR
CmsisDapDebugger.DAP_TRANSFER_FAULT
CmsisDapDebugger.DAP_TRANSFER_INVALID
CmsisDapDebugger.DAP_TRANSFER_MATCH_MASK
CmsisDapDebugger.DAP_TRANSFER_MATCH_VALUE
CmsisDapDebugger.DAP_TRANSFER_MISMATCH
CmsisDapDebugger.DAP_TRANSFER_OK
CmsisDapDebugger.DAP_TRANSFER_RnW
CmsisDapDebugger.DAP_TRANSFER_WAIT
CmsisDapDebugger.DP_ABORT
CmsisDapDebugger.DP_CTRL_STAT
CmsisDapDebugger.DP_IDCODE
CmsisDapDebugger.DP_RDBUFF
CmsisDapDebugger.DP_RESEND
CmsisDapDebugger.DP_SELECT
CmsisDapDebugger.DP_WCR
CmsisDapDebugger.JTAG_ABORT
CmsisDapDebugger.JTAG_APACC
CmsisDapDebugger.JTAG_BYPASS
CmsisDapDebugger.JTAG_DPACC
CmsisDapDebugger.JTAG_IDCODE
CmsisDapDebugger.ORUNDETECT
CmsisDapDebugger.READOK
CmsisDapDebugger.STICKYCMP
CmsisDapDebugger.STICKYERR
CmsisDapDebugger.STICKYORUN
CmsisDapDebugger.SWD_AP_CSW
CmsisDapDebugger.SWD_AP_DRW
CmsisDapDebugger.SWD_AP_TAR
CmsisDapDebugger.TAR_MAX
CmsisDapDebugger.TRNMODE
CmsisDapDebugger.WDATAERR
CmsisDapDebugger.dap_read_idcode()
CmsisDapDebugger.dap_read_reg()
CmsisDapDebugger.dap_reset_target()
CmsisDapDebugger.dap_swd_configure()
CmsisDapDebugger.dap_swj_clock()
CmsisDapDebugger.dap_target_init()
CmsisDapDebugger.dap_transfer_configure()
CmsisDapDebugger.dap_write_reg()
CmsisDapDebugger.init_swj()
CmsisDapDebugger.multiple_of_four()
CmsisDapDebugger.read_block()
CmsisDapDebugger.read_word()
CmsisDapDebugger.write_block()
CmsisDapDebugger.write_word()
CmsisDapSamDebugger
CmsisDapUnit
CmsisDapUnit.DAP_ERROR
CmsisDapUnit.DAP_ID_BOARD_NAME
CmsisDapUnit.DAP_ID_BOARD_VENDOR
CmsisDapUnit.DAP_ID_CAPABILITIES
CmsisDapUnit.DAP_ID_DEVICE_NAME
CmsisDapUnit.DAP_ID_DEVICE_VENDOR
CmsisDapUnit.DAP_ID_FW_VER
CmsisDapUnit.DAP_ID_PACKET_COUNT
CmsisDapUnit.DAP_ID_PACKET_SIZE
CmsisDapUnit.DAP_ID_PRODUCT
CmsisDapUnit.DAP_ID_PRODUCT_FW_VER
CmsisDapUnit.DAP_ID_SER_NUM
CmsisDapUnit.DAP_ID_VENDOR
CmsisDapUnit.DAP_OK
CmsisDapUnit.DAP_PORT_AUTODETECT
CmsisDapUnit.DAP_PORT_DISABLED
CmsisDapUnit.DAP_PORT_JTAG
CmsisDapUnit.DAP_PORT_SWD
CmsisDapUnit.ID_DAP_Connect
CmsisDapUnit.ID_DAP_Delay
CmsisDapUnit.ID_DAP_Disconnect
CmsisDapUnit.ID_DAP_HostStatus
CmsisDapUnit.ID_DAP_Info
CmsisDapUnit.ID_DAP_JTAG_Configure
CmsisDapUnit.ID_DAP_JTAG_IDCODE
CmsisDapUnit.ID_DAP_JTAG_Sequence
CmsisDapUnit.ID_DAP_ResetTarget
CmsisDapUnit.ID_DAP_SWD_Configure
CmsisDapUnit.ID_DAP_SWJ_Clock
CmsisDapUnit.ID_DAP_SWJ_Pins
CmsisDapUnit.ID_DAP_SWJ_Sequence
CmsisDapUnit.ID_DAP_Transfer
CmsisDapUnit.ID_DAP_TransferAbort
CmsisDapUnit.ID_DAP_TransferBlock
CmsisDapUnit.ID_DAP_TransferConfigure
CmsisDapUnit.ID_DAP_WriteABORT
CmsisDapUnit.dap_connect()
CmsisDapUnit.dap_disconnect()
CmsisDapUnit.dap_info()
CmsisDapUnit.dap_led()
- pyedbglib.protocols.configprotocol
ConfigProtocol
ConfigProtocol.GET_CONFIG
ConfigProtocol.RSP_OK
ConfigProtocol.SET_CONFIG
ConfigProtocol.fix()
ConfigProtocol.get_config()
ConfigProtocol.read_config_block()
ConfigProtocol.read_device_data_block()
ConfigProtocol.set_config()
ConfigProtocol.set_transport()
ConfigProtocol.tool_check()
ConfigProtocol.write_config_block()
ConfigProtocol.write_device_data_block()
ConfigProtocolResponseError
create_blank_config_block()
create_blank_device_data_block()
- pyedbglib.protocols.dapcommand
- pyedbglib.protocols.dapwrapper
- pyedbglib.protocols.edbgprotocol
EdbgProtocol
EdbgProtocol.AVR_GET_CONFIG
EdbgProtocol.CMD_EDBG_GET
EdbgProtocol.CMD_EDBG_PROGRAM_ID_CHIP
EdbgProtocol.CMD_EDBG_QUERY
EdbgProtocol.CMD_EDBG_READ_ID_CHIP
EdbgProtocol.CMD_EDBG_REFRESH_ID_CHIP
EdbgProtocol.CMD_EDBG_SET
EdbgProtocol.EDBG_CONFIG_KIT_DATA
EdbgProtocol.EDBG_CONTROL_EXT_PROG
EdbgProtocol.EDBG_CONTROL_LED_USAGE
EdbgProtocol.EDBG_CONTROL_TARGET_POWER
EdbgProtocol.EDBG_CTXT_CONTROL
EdbgProtocol.EDBG_ERRORS
EdbgProtocol.EDBG_QUERY_COMMANDS
EdbgProtocol.RESPONSE_CODE
EdbgProtocol.RSP_EDBG_DATA
EdbgProtocol.RSP_EDBG_FAILED
EdbgProtocol.RSP_EDBG_LIST
EdbgProtocol.RSP_EDBG_OK
EdbgProtocol.check_command_exists()
EdbgProtocol.error_as_string()
EdbgProtocol.program_id_chip()
EdbgProtocol.read_edbg_extra_info()
EdbgProtocol.read_id_chip()
EdbgProtocol.refresh_id_chip()
EdbgProtocol.response_as_string()
- pyedbglib.protocols.housekeepingprotocol
Jtagice3HousekeepingProtocol
Jtagice3HousekeepingProtocol.CMD_HOUSEKEEPING_END_SESSION
Jtagice3HousekeepingProtocol.CMD_HOUSEKEEPING_FW_UPGRADE
Jtagice3HousekeepingProtocol.CMD_HOUSEKEEPING_START_SESSION
Jtagice3HousekeepingProtocol.HOUSEKEEPING_ABILITY_HV_UPDI_ENABLE
Jtagice3HousekeepingProtocol.HOUSEKEEPING_ABILITY_RESET_EXTENSION
Jtagice3HousekeepingProtocol.HOUSEKEEPING_ANALOG_VTG_BUF
Jtagice3HousekeepingProtocol.HOUSEKEEPING_ANALOG_VTREF
Jtagice3HousekeepingProtocol.HOUSEKEEPING_ANALOG_VUSB
Jtagice3HousekeepingProtocol.HOUSEKEEPING_CONFIG_AUX_MCU_FW_MAJ
Jtagice3HousekeepingProtocol.HOUSEKEEPING_CONFIG_AUX_MCU_FW_MIN
Jtagice3HousekeepingProtocol.HOUSEKEEPING_CONFIG_AUX_MCU_FW_REV
Jtagice3HousekeepingProtocol.HOUSEKEEPING_CONFIG_BLDR_MAJ
Jtagice3HousekeepingProtocol.HOUSEKEEPING_CONFIG_BLDR_MIN
Jtagice3HousekeepingProtocol.HOUSEKEEPING_CONFIG_BUILD
Jtagice3HousekeepingProtocol.HOUSEKEEPING_CONFIG_CHIP
Jtagice3HousekeepingProtocol.HOUSEKEEPING_CONFIG_DEBUG_BUILD
Jtagice3HousekeepingProtocol.HOUSEKEEPING_CONFIG_FIRMWARE_IMAGE
Jtagice3HousekeepingProtocol.HOUSEKEEPING_CONFIG_FPGA_FW_MAJ
Jtagice3HousekeepingProtocol.HOUSEKEEPING_CONFIG_FPGA_FW_MIN
Jtagice3HousekeepingProtocol.HOUSEKEEPING_CONFIG_FPGA_FW_REV
Jtagice3HousekeepingProtocol.HOUSEKEEPING_CONFIG_FWREV_MAJ
Jtagice3HousekeepingProtocol.HOUSEKEEPING_CONFIG_FWREV_MIN
Jtagice3HousekeepingProtocol.HOUSEKEEPING_CONFIG_HWREV
Jtagice3HousekeepingProtocol.HOUSEKEEPING_CONTEXT_ANALOG
Jtagice3HousekeepingProtocol.HOUSEKEEPING_CONTEXT_CONFIG
Jtagice3HousekeepingProtocol.HOUSEKEEPING_CONTEXT_DIAGNOSTICS
Jtagice3HousekeepingProtocol.HOUSEKEEPING_CONTEXT_STATEMENT
Jtagice3HousekeepingProtocol.HOUSEKEEPING_CONTEXT_STATISTICS
Jtagice3HousekeepingProtocol.HOUSEKEEPING_CONTEXT_USB
Jtagice3HousekeepingProtocol.HOUSEKEEPING_DIAGNOSTICS_BOD_CTRL
Jtagice3HousekeepingProtocol.HOUSEKEEPING_DIAGNOSTICS_CPU_CLK
Jtagice3HousekeepingProtocol.HOUSEKEEPING_DIAGNOSTICS_RESET_CAUSE
Jtagice3HousekeepingProtocol.HOUSEKEEPING_HOST_ID
Jtagice3HousekeepingProtocol.HOUSEKEEPING_HOST_REV
Jtagice3HousekeepingProtocol.HOUSEKEEPING_MODULE_VER_AW
Jtagice3HousekeepingProtocol.HOUSEKEEPING_MODULE_VER_JTAG
Jtagice3HousekeepingProtocol.HOUSEKEEPING_QUERY_ANALOG_CHANNELS
Jtagice3HousekeepingProtocol.HOUSEKEEPING_QUERY_COMMANDS
Jtagice3HousekeepingProtocol.HOUSEKEEPING_QUERY_SPECIAL_ABILITIES
Jtagice3HousekeepingProtocol.HOUSEKEEPING_TSUP_VOLTAGE
Jtagice3HousekeepingProtocol.HOUSEKEEPING_USB_EP_SIZE_CDC
Jtagice3HousekeepingProtocol.HOUSEKEEPING_USB_EP_SIZE_HID
Jtagice3HousekeepingProtocol.HOUSEKEEPING_USB_MAX_READ
Jtagice3HousekeepingProtocol.HOUSEKEEPING_USB_MAX_WRITE
Jtagice3HousekeepingProtocol.end_session()
Jtagice3HousekeepingProtocol.enter_upgrade_mode()
Jtagice3HousekeepingProtocol.list_supported_commands()
Jtagice3HousekeepingProtocol.read_version_info()
Jtagice3HousekeepingProtocol.start_session()
- pyedbglib.protocols.jtagice3protocol
Jtagice3Command
Jtagice3Command.EVENT_HANDLER_IDS
Jtagice3Command.HANDLER_AVR32_GENERIC
Jtagice3Command.HANDLER_AVR8_GENERIC
Jtagice3Command.HANDLER_COPROCESSOR
Jtagice3Command.HANDLER_DISCOVERY
Jtagice3Command.HANDLER_EDBG
Jtagice3Command.HANDLER_HOUSEKEEPING
Jtagice3Command.HANDLER_POWER
Jtagice3Command.HANDLER_SELFTEST
Jtagice3Command.HANDLER_SPI
Jtagice3Command.HANDLER_TPI
Jtagice3Command.JTAGICE3_HEADER_COMMAND_HANDLER_ID
Jtagice3Command.JTAGICE3_HEADER_COMMAND_PAYLOAD_START
Jtagice3Command.JTAGICE3_HEADER_COMMAND_PROTOCOL_VERSION
Jtagice3Command.JTAGICE3_HEADER_COMMAND_SEQUENCE
Jtagice3Command.JTAGICE3_HEADER_COMMAND_SOF_TOKEN
Jtagice3Command.JTAGICE3_HEADER_EVENT_HANDLER_ID
Jtagice3Command.JTAGICE3_HEADER_EVENT_PAYLOAD_START
Jtagice3Command.JTAGICE3_HEADER_EVENT_PROTOCOL_VERSION
Jtagice3Command.JTAGICE3_HEADER_EVENT_SEQUENCE
Jtagice3Command.JTAGICE3_HEADER_EVENT_SOF_TOKEN
Jtagice3Command.JTAGICE3_HEADER_RESPONSE_HANDLER_ID
Jtagice3Command.JTAGICE3_HEADER_RESPONSE_PAYLOAD_START
Jtagice3Command.JTAGICE3_HEADER_RESPONSE_SEQUENCE
Jtagice3Command.JTAGICE3_HEADER_RESPONSE_SOF_TOKEN
Jtagice3Command.JTAGICE3_PROTOCOL_VERSION
Jtagice3Command.JTAGICE3_TOKEN
Jtagice3Command.jtagice3_command_response()
Jtagice3Command.jtagice3_command_response_raw()
Jtagice3Command.validate_response()
Jtagice3Protocol
Jtagice3Protocol.CMD_GET
Jtagice3Protocol.CMD_QUERY
Jtagice3Protocol.CMD_SET
Jtagice3Protocol.CMD_VERSION0
Jtagice3Protocol.CMD_VERSION1
Jtagice3Protocol.FAILURE_OK
Jtagice3Protocol.JTAGICE3_ERRORS
Jtagice3Protocol.PROTOCOL_DATA
Jtagice3Protocol.PROTOCOL_FAILED
Jtagice3Protocol.PROTOCOL_HEADER_RESPONSE_ID
Jtagice3Protocol.PROTOCOL_HEADER_RESPONSE_PAYLOAD
Jtagice3Protocol.PROTOCOL_HEADER_RESPONSE_VERSION
Jtagice3Protocol.PROTOCOL_LIST
Jtagice3Protocol.PROTOCOL_OK
Jtagice3Protocol.SETGET_FAILURE_HANDLER_ERROR
Jtagice3Protocol.SETGET_FAILURE_ILLEGAL_STATE
Jtagice3Protocol.SETGET_FAILURE_INVALID_CLOCK_SPEED
Jtagice3Protocol.SETGET_FAILURE_INVALID_VALUE
Jtagice3Protocol.SETGET_FAILURE_JTAGM_INIT_ERROR
Jtagice3Protocol.SETGET_FAILURE_NOT_IMPLEMENTED
Jtagice3Protocol.SETGET_FAILURE_NOT_SUPPORTED
Jtagice3Protocol.SETGET_FAILURE_OK
Jtagice3Protocol.check_response()
Jtagice3Protocol.error_as_string()
Jtagice3Protocol.get_byte()
Jtagice3Protocol.get_le16()
Jtagice3Protocol.get_le32()
Jtagice3Protocol.peel_response()
Jtagice3Protocol.poll_events()
Jtagice3Protocol.query()
Jtagice3Protocol.set_byte()
Jtagice3Protocol.set_le16()
Jtagice3Protocol.set_le32()
Jtagice3ResponseError
- pyedbglib.protocols.selftestprotocol
SelftestProtocol
SelftestProtocol.CMD_SELFTEST_DELAY_MS
SelftestProtocol.CMD_SELFTEST_DELAY_S
SelftestProtocol.CMD_SELFTEST_DELAY_US
SelftestProtocol.CMD_SELFTEST_DGI_PIN_RAW_READ
SelftestProtocol.CMD_SELFTEST_PLATFORM
SelftestProtocol.CMD_SELFTEST_SHORT_DELAY
SelftestProtocol.CMD_SELFTEST_TIMEOUT_MS
SelftestProtocol.CMD_SELFTEST_TIMER_EXPIRED
SelftestProtocol.CMD_SELFTEST_TIMER_START
SelftestProtocol.HANDLER_SELFTEST
SelftestProtocol.RSP_SELFTEST_DATA
SelftestProtocol.RSP_SELFTEST_FAILED
SelftestProtocol.RSP_SELFTEST_FAILED_WITH_DATA
SelftestProtocol.RSP_SELFTEST_LIST
SelftestProtocol.RSP_SELFTEST_OK
SelftestProtocol.SELFTEST_DGI_PINS
SelftestProtocol.SELFTEST_FAILED_INVALID_PARAMETER_VALUE
SelftestProtocol.SELFTEST_FAILED_NOT_SUPPORTED
SelftestProtocol.SELFTEST_FAILED_OK
SelftestProtocol.VERSION0
SelftestProtocol.selftest_delay_ms()
SelftestProtocol.selftest_delay_s()
SelftestProtocol.selftest_delay_us()
SelftestProtocol.selftest_short_delay()
SelftestProtocol.selftest_timeout_ms()
SelftestProtocol.selftest_timer_expired()
SelftestProtocol.selftest_timer_start()
- pyedbglib.protocols.ati
- pyedbglib.serialport
- pyedbglib.util
pyedbglib.pyedbglib_errors¶
pyedbglib specific exceptions
- exception pyedbglib.pyedbglib_errors.PyedbglibError(msg=None, code=0)¶
Bases:
Exception
Base class for all pyedbglib specific exceptions
- exception pyedbglib.pyedbglib_errors.PyedbglibHidError(msg=None, code=0)¶
Bases:
PyedbglibError
Error from the HID transport layer
- exception pyedbglib.pyedbglib_errors.PyedbglibNotSupportedError(msg=None, code=0)¶
Bases:
PyedbglibError
Signals that an attempted operation is not supported
Python EDBG protocol communication library¶
pyedbglib is a low-level protocol library for communicating with Microchip CMSIS-DAP based debuggers.
Overview¶
- pyedbglib is available:
install using pip from pypi: https://pypi.org/project/pyedbglib
browse source code on github: https://github.com/microchip-pic-avr-tools/pyedbglib
read API documentation on github: https://microchip-pic-avr-tools.github.io/pyedbglib
read the changelog on pypi: https://pypi.org/project/pyedbglib
pyedbglib uses hidapi package with a USB-level driver such as libusb.
Library usage¶
The protocol library has no application usage on its own, but provides USB-protocol-level tool drivers to applications such as pymcuprog. In general a two-stage stack implementation is required for using pyedbglib:
Create transport HID layer
Create protocol implementation using this transport layer
All protocols implemented in the library generally take the transport layer as a parameter to their constructors.
To use pyedbglib as a library for applications, the following usage patterns can be used:
# Import and instantiate transport object:
from pyedbglib.hidtransport.hidtransportfactory import hid_transport
transport = hid_transport()
# Connect to any PKOB nano (nEDBG) tool. Serial number and product are optional, but must
# be provided if more than one matching unit is connected:
status = transport.connect(serial_number="", product="nedbg")
# Example of application using housekeeping protocol to read out the target voltage:
from pyedbglib.protocols.housekeepingprotocol import Jtagice3HousekeepingProtocol
housekeeper = Jtagice3HousekeepingProtocol(transport)
housekeeper.start_session()
voltage = housekeeper.get_le16(Jtagice3HousekeepingProtocol.HOUSEKEEPING_CONTEXT_ANALOG,
Jtagice3HousekeepingProtocol.HOUSEKEEPING_ANALOG_VTREF)
voltage = voltage / 1000.0
housekeeper.end_session()
print ("Target is running at {0:.02f}V".format(voltage))