![]() |
BSL430.NET
1.3.4
|
Public interface of BSL430.NET library. More...
Public Member Functions | |
| ScanAllResult | ScanAllEx (ScanOptions ScanOpt=ScanOptions.None) |
| Detailed Scan for all available devices in multimode (FTDI, libftdi, USB and Serial). Returns ScanAllResult with 4 specific ScanResult classes, each with Status and List of Devices - Bsl430NetDevice childs. More... | |
| ScanResult< Bsl430NetDevice > | ScanAll (ScanOptions ScanOpt=ScanOptions.None) |
| Scan for all available devices in multimode (FTDI, libftdi, USB and Serial). Returns generic ScanResult class with Status and List of Devices - Bsl430NetDevice. More... | |
| ScanResult< Tdev > | Scan< Tdev > (ScanOptions ScanOpt=ScanOptions.None) |
| Detailed Scan for available devices in single mode (FTDI / libftdi / USB / Serial). Returns generic ScanResult class with Status and List of Devices - Bsl430NetDevice. More... | |
| StatusEx | Erase (Bsl430NetDevice Device=null) |
| Mass erase deletes the entire flash memory area except Information Memory if protocol 5xx6xx is used. Please see MCU datasheet for detailed information, or TI BSL doc (slau319t.pdf). More... | |
| StatusEx | Erase (string DeviceName) |
| Mass erase deletes the entire flash memory area except Information Memory if protocol 5xx6xx is used. Please see MCU datasheet for detailed information, or TI BSL doc (slau319t.pdf). device_name case dont matter. More... | |
| StatusEx | Upload (string FirmwarePath, Bsl430NetDevice Device=null, byte[] Password=null) |
| Uploads data from firmware_path to target MCU. Supported file formats are TI-TXT, Intel-HEX and ELF. If none, null or invalid password is entered, mass erase is executed first. Password is last 16-byte (F543x-non-A only) or 32-byte (others) of IVT (FFE0-FFFF), if newer 5xx/6xx MCU is used. If MCU from older series is used (1xx/2xx/4xx), password is exactly 20-byte long. Mostly it is 32-byte. More... | |
| StatusEx | Upload (string FirmwarePath, string DeviceName, byte[] Password=null) |
| Uploads data from firmware_path to target MCU. Supported file formats are TI-TXT, Intel-HEX and ELF. If none, null or invalid password is entered, mass erase is executed first. device_name case dont matter. Password is last 16-byte (F543x-non-A only) or 32-byte (others) of IVT (FFE0-FFFF), if newer 5xx/6xx MCU is used. If MCU from older series is used (1xx/2xx/4xx), password is exactly 20-byte long. Mostly it is 32-byte. More... | |
| StatusEx | Download (byte[] Password, int AddrStart, int DataSize, out List< byte > Data, Bsl430NetDevice Device=null) |
| Downloads bytes from target MCU starting from address AddrStart to AddrStart + DataSize. If wrong password is entered, mass erase is auto executed as a safety measure, erasing entire flash. Password is last 16-byte (F543x-non-A only) or 32-byte (others) of IVT (FFE0-FFFF), if newer 5xx/6xx MCU is used. If MCU from older series is used (1xx/2xx/4xx), password is exactly 20-byte long. Mostly it is 32-byte. More... | |
| StatusEx | Download (byte[] Password, int AddrStart, int DataSize, out List< byte > Data, string DeviceName) |
| Downloads bytes from target MCU starting from address AddrStart to AddrStart + DataSize. If wrong password is entered, mass erase is auto executed as a safety measure, erasing entire flash. device_name case dont matter. Password is last 16-byte (F543x-non-A only) or 32-byte (others) of IVT (FFE0-FFFF), if newer 5xx/6xx MCU is used. If MCU from older series is used (1xx/2xx/4xx), password is exactly 20-byte long. Mostly it is 32-byte. More... | |
| Status | SetBaudRate (BaudRate BaudRate) |
| Sets baud rate. Default is 9600 bps (9600). Baud rate is applicable only in UART mode and only in some BSL revs. More... | |
| Status | SetInvokeMechanism (InvokeMechanism InvokeMechanism) |
| Sets invoke mechanism mode. Default is DTR_RST__RTS_TEST (0). Note that USB HID mode requires manual BSL invocation. More... | |
| Status | SetMCU (MCU Mcu) |
| Sets MCU family. Default is MSP430_F5xx (4). Please see TI BSL doc (slau319t.pdf) for supported MCUs and their modes. More... | |
| BaudRate | GetBaudRate () |
| Returns currently set baud rate. More... | |
| InvokeMechanism | GetInvokeMechanism () |
| Returns currently set invoke mechanism. More... | |
| MCU | GetMCU () |
| Returns currently set MCU family. More... | |
| Mode | GetMode () |
| Returns current BSL430.NET instance operating mode (UART_FTDXX, UART_libftdi, UART_Serial, USB_HID). More... | |
Public interface of BSL430.NET library.
| StatusEx BSL430_NET.IBsl430Net.Download | ( | byte[] | Password, |
| int | AddrStart, | ||
| int | DataSize, | ||
| out List< byte > | Data, | ||
| Bsl430NetDevice | Device = null |
||
| ) |
Downloads bytes from target MCU starting from address AddrStart to AddrStart + DataSize. If wrong password is entered, mass erase is auto executed as a safety measure, erasing entire flash. Password is last 16-byte (F543x-non-A only) or 32-byte (others) of IVT (FFE0-FFFF), if newer 5xx/6xx MCU is used. If MCU from older series is used (1xx/2xx/4xx), password is exactly 20-byte long. Mostly it is 32-byte.
| Bsl430NetException |
Implemented in BSL430_NET.BSL430NET.
| StatusEx BSL430_NET.IBsl430Net.Download | ( | byte[] | Password, |
| int | AddrStart, | ||
| int | DataSize, | ||
| out List< byte > | Data, | ||
| string | DeviceName | ||
| ) |
Downloads bytes from target MCU starting from address AddrStart to AddrStart + DataSize. If wrong password is entered, mass erase is auto executed as a safety measure, erasing entire flash. device_name case dont matter. Password is last 16-byte (F543x-non-A only) or 32-byte (others) of IVT (FFE0-FFFF), if newer 5xx/6xx MCU is used. If MCU from older series is used (1xx/2xx/4xx), password is exactly 20-byte long. Mostly it is 32-byte.
| Bsl430NetException |
Implemented in BSL430_NET.BSL430NET.
| StatusEx BSL430_NET.IBsl430Net.Erase | ( | Bsl430NetDevice | Device = null | ) |
Mass erase deletes the entire flash memory area except Information Memory if protocol 5xx6xx is used. Please see MCU datasheet for detailed information, or TI BSL doc (slau319t.pdf).
| Bsl430NetException |
Implemented in BSL430_NET.BSL430NET.
| StatusEx BSL430_NET.IBsl430Net.Erase | ( | string | DeviceName | ) |
Mass erase deletes the entire flash memory area except Information Memory if protocol 5xx6xx is used. Please see MCU datasheet for detailed information, or TI BSL doc (slau319t.pdf). device_name case dont matter.
| Bsl430NetException |
Implemented in BSL430_NET.BSL430NET.
| BaudRate BSL430_NET.IBsl430Net.GetBaudRate | ( | ) |
Returns currently set baud rate.
Implemented in BSL430_NET.BSL430NET.
| InvokeMechanism BSL430_NET.IBsl430Net.GetInvokeMechanism | ( | ) |
Returns currently set invoke mechanism.
Implemented in BSL430_NET.BSL430NET.
| MCU BSL430_NET.IBsl430Net.GetMCU | ( | ) |
Returns currently set MCU family.
Implemented in BSL430_NET.BSL430NET.
| Mode BSL430_NET.IBsl430Net.GetMode | ( | ) |
Returns current BSL430.NET instance operating mode (UART_FTDXX, UART_libftdi, UART_Serial, USB_HID).
Implemented in BSL430_NET.BSL430NET.
| ScanResult<Tdev> BSL430_NET.IBsl430Net.Scan< Tdev > | ( | ScanOptions | ScanOpt = ScanOptions.None | ) |
Detailed Scan for available devices in single mode (FTDI / libftdi / USB / Serial). Returns generic ScanResult class with Status and List of Devices - Bsl430NetDevice.
| Bsl430NetException |
Implemented in BSL430_NET.BSL430NET.
| Tdev | : | Bsl430NetDevice |
| ScanResult<Bsl430NetDevice> BSL430_NET.IBsl430Net.ScanAll | ( | ScanOptions | ScanOpt = ScanOptions.None | ) |
Scan for all available devices in multimode (FTDI, libftdi, USB and Serial). Returns generic ScanResult class with Status and List of Devices - Bsl430NetDevice.
| Bsl430NetException |
Implemented in BSL430_NET.BSL430NET.
| ScanAllResult BSL430_NET.IBsl430Net.ScanAllEx | ( | ScanOptions | ScanOpt = ScanOptions.None | ) |
Detailed Scan for all available devices in multimode (FTDI, libftdi, USB and Serial). Returns ScanAllResult with 4 specific ScanResult classes, each with Status and List of Devices - Bsl430NetDevice childs.
| Bsl430NetException |
Implemented in BSL430_NET.BSL430NET.
Sets baud rate. Default is 9600 bps (9600). Baud rate is applicable only in UART mode and only in some BSL revs.
Implemented in BSL430_NET.BSL430NET.
| Status BSL430_NET.IBsl430Net.SetInvokeMechanism | ( | InvokeMechanism | InvokeMechanism | ) |
Sets invoke mechanism mode. Default is DTR_RST__RTS_TEST (0). Note that USB HID mode requires manual BSL invocation.
Implemented in BSL430_NET.BSL430NET.
Sets MCU family. Default is MSP430_F5xx (4). Please see TI BSL doc (slau319t.pdf) for supported MCUs and their modes.
Implemented in BSL430_NET.BSL430NET.
| StatusEx BSL430_NET.IBsl430Net.Upload | ( | string | FirmwarePath, |
| Bsl430NetDevice | Device = null, |
||
| byte[] | Password = null |
||
| ) |
Uploads data from firmware_path to target MCU. Supported file formats are TI-TXT, Intel-HEX and ELF. If none, null or invalid password is entered, mass erase is executed first. Password is last 16-byte (F543x-non-A only) or 32-byte (others) of IVT (FFE0-FFFF), if newer 5xx/6xx MCU is used. If MCU from older series is used (1xx/2xx/4xx), password is exactly 20-byte long. Mostly it is 32-byte.
| Bsl430NetException |
Implemented in BSL430_NET.BSL430NET.
| StatusEx BSL430_NET.IBsl430Net.Upload | ( | string | FirmwarePath, |
| string | DeviceName, | ||
| byte[] | Password = null |
||
| ) |
Uploads data from firmware_path to target MCU. Supported file formats are TI-TXT, Intel-HEX and ELF. If none, null or invalid password is entered, mass erase is executed first. device_name case dont matter. Password is last 16-byte (F543x-non-A only) or 32-byte (others) of IVT (FFE0-FFFF), if newer 5xx/6xx MCU is used. If MCU from older series is used (1xx/2xx/4xx), password is exactly 20-byte long. Mostly it is 32-byte.
| Bsl430NetException |
Implemented in BSL430_NET.BSL430NET.
1.8.16