Module implementing the device interface class for STM32 STLink boards.
None |
STLinkDevice | Class implementing the device for PyBoard boards. |
createDevice | Function to instantiate a MicroPython device object. |
Class implementing the device for PyBoard boards.
DeviceVolumeName |
None |
STLinkDevice | Constructor |
__createSTLinkMenu | Private method to create the STLink submenu. |
__deviceVolumeMounted | Private method to check, if the device volume is mounted. |
__findWorkspace | Private method to find the workspace directory. |
__firmwareVersionResponse | Private slot handling the response of the latest version request. |
__flashMicroPython | Private slot to flash a MicroPython firmware. |
__resetDevice | Private slot to reset the connected device. |
__showDeviceInfo | Private slot to show some information about connected STLink devices. |
__showFirmwareVersions | Private slot to show the firmware version of the connected device and the available firmware version. |
__stflashAvailable | Private method to check the availability of the 'st-flash' firmware flashing tool. |
__stinfoAvailable | Private method to check the availability of the 'st-info' tool. |
__stlinkToolAvailable | Private method to check the availability of the given STLink tool. |
addDeviceMenuEntries | Public method to add device specific entries to the given menu. |
canRunScript | Public method to determine, if a script can be executed. |
canStartFileManager | Public method to determine, if a File Manager can be started. |
canStartPlotter | Public method to determine, if a Plotter can be started. |
canStartRepl | Public method to determine, if a REPL can be started. |
deviceName | Public method to get the name of the device. |
forceInterrupt | Public method to determine the need for an interrupt when opening the serial connection. |
getDocumentationUrl | Public method to get the device documentation URL. |
getFirmwareUrl | Public method to get the device firmware download URL. |
getWorkspace | Public method to get the workspace directory. |
hasFlashMenuEntry | Public method to check, if the device has its own flash menu entry. |
runScript | Public method to run the given Python script. |
setButtons | Public method to enable the supported action buttons. |
supportsLocalFileAccess | Public method to indicate file access via a local directory. |
None |
Constructor
Private method to create the STLink submenu.
Private method to check, if the device volume is mounted.
Private method to find the workspace directory.
Private slot handling the response of the latest version request.
Private slot to flash a MicroPython firmware.
Private slot to reset the connected device.
Private slot to show some information about connected STLink devices.
Private slot to show the firmware version of the connected device and the available firmware version.
Private method to check the availability of the 'st-flash' firmware flashing tool.
Private method to check the availability of the 'st-info' tool.
Private method to check the availability of the given STLink tool.
Note: supported tools are st-info and st-flash
Public method to add device specific entries to the given menu.
Public method to determine, if a script can be executed.
Public method to determine, if a File Manager can be started.
Public method to determine, if a Plotter can be started.
Public method to determine, if a REPL can be started.
Public method to get the name of the device.
Public method to determine the need for an interrupt when opening the serial connection.
Public method to get the device documentation URL.
Public method to get the device firmware download URL.
Public method to get the workspace directory.
Public method to check, if the device has its own flash menu entry.
Public method to run the given Python script.
Public method to enable the supported action buttons.
Public method to indicate file access via a local directory.
Function to instantiate a MicroPython device object.