flasher

package
v0.0.0-...-7b92d88 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdafruitNRFUtil

type AdafruitNRFUtil struct {
	Port string
}

AdafruitNRFUtil will flash the board with `nrfutil` application. For now it only works if `adafruit-nrfutil` application is in current PATH.

So, by default, if it is installed into venv - it will not work.

https://docs.zephyrproject.org/latest/boards/arm/nrf52840dongle_nrf52840/doc/index.html#option-1-using-the-built-in-bootloader-only

func NewAdafruitNRFUtil

func NewAdafruitNRFUtil() *AdafruitNRFUtil

func (AdafruitNRFUtil) Flash

func (n AdafruitNRFUtil) Flash(ctx context.Context, device *config.Device, workDir string) error

type MCUBoot

type MCUBoot struct{}

MCUBoot will flash the board that has mcuboot. https://docs.zephyrproject.org/latest/boards/arm/nrf52840dongle_nrf52840/doc/index.html#option-2-using-mcuboot-in-serial-recovery-mode

func (MCUBoot) Flash

func (MCUBoot) Flash(ctx context.Context, device *config.Device, workDir string) error

type NRFUtil

type NRFUtil struct {
	Port string
}

NRFUtil will flash the board with `nrfutil` application. https://docs.zephyrproject.org/latest/boards/arm/nrf52840dongle_nrf52840/doc/index.html#option-1-using-the-built-in-bootloader-only

func NewNRFUtil

func NewNRFUtil() *NRFUtil

func (NRFUtil) Flash

func (n NRFUtil) Flash(ctx context.Context, device *config.Device, workDir string) error

type West

type West struct {
	// contains filtered or unexported fields
}

func (West) Flash

func (w West) Flash(ctx context.Context, device *config.Device, workDir string) error

func (*West) UnmarshalYAML

func (w *West) UnmarshalYAML(node *yaml.Node) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL