All Projects → probe-rs → Cargo Flash

probe-rs / Cargo Flash

Licence: other
a cargo extension for programming microcontrollers

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to Cargo Flash

Cargo Embed
a cargo extension for working with microcontrollers
Stars: ✭ 100 (-25.37%)
Mutual labels:  arm, cargo, embedded, flash, debugging
Paddle Lite
Multi-platform high performance deep learning inference engine (『飞桨』多平台高性能深度学习预测引擎)
Stars: ✭ 5,808 (+4234.33%)
Mutual labels:  arm, embedded
F9 Kernel
An efficient and secure microkernel built for ARM Cortex-M cores, inspired by L4
Stars: ✭ 596 (+344.78%)
Mutual labels:  arm, embedded
Stm32l4xx Hal
A Hardware abstraction layer for the stm32l432xx series chips written in rust.
Stars: ✭ 65 (-51.49%)
Mutual labels:  arm, embedded
Eclipse Plugins
The Eclipse Embedded CDT plug-ins for Arm & RISC-V C/C++ developers (formerly known as the GNU MCU Eclipse plug-ins). Includes the archive of previous plug-ins versions, as Releases.
Stars: ✭ 507 (+278.36%)
Mutual labels:  arm, embedded
Platformio Core
PlatformIO is a professional collaborative platform for embedded development 👽 A place where Developers and Teams have true Freedom! No more vendor lock-in!
Stars: ✭ 5,539 (+4033.58%)
Mutual labels:  arm, embedded
Spiffs
Wear-leveled SPI flash file system for embedded devices
Stars: ✭ 1,105 (+724.63%)
Mutual labels:  embedded, flash
Trezor Mcu
🔒 Don't use this repo, use the new monorepo instead:
Stars: ✭ 315 (+135.07%)
Mutual labels:  arm, embedded
Bitbox
The bitbox console (example, firmwares, doc)
Stars: ✭ 78 (-41.79%)
Mutual labels:  arm, embedded
Easyflash
Lightweight IoT device information storage solution: KV/IAP/LOG. | 轻量级物联网设备信息存储方案:参数存储、在线升级及日志存储 ,全新一代版本请移步至 https://github.com/armink/FlashDB
Stars: ✭ 1,236 (+822.39%)
Mutual labels:  embedded, flash
Ehal
Embedded Hardware Abstraction Library
Stars: ✭ 84 (-37.31%)
Mutual labels:  arm, embedded
Embedded Notes
嵌入式linux软件开发、嵌入式linux驱动开发、c语言、单片机开发、IOT开发等面试要点记录
Stars: ✭ 487 (+263.43%)
Mutual labels:  arm, embedded
Qpc
QP/C real-time embedded framework/RTOS for embedded systems based on active objects (actors) and hierarchical state machines
Stars: ✭ 379 (+182.84%)
Mutual labels:  arm, embedded
Pyocd
Open source Python library for programming and debugging Arm Cortex-M microcontrollers
Stars: ✭ 550 (+310.45%)
Mutual labels:  arm, embedded
Distortos
object-oriented C++ RTOS for microcontrollers
Stars: ✭ 354 (+164.18%)
Mutual labels:  arm, embedded
Mylinux
myLinux is a small UNIX like OS for embedded systems based on Westermo NetBox
Stars: ✭ 53 (-60.45%)
Mutual labels:  arm, embedded
drone-cortexm
ARM® Cortex®-M platform crate for Drone, an Embedded Operating System.
Stars: ✭ 31 (-76.87%)
Mutual labels:  arm, embedded
Tock
A secure embedded operating system for microcontrollers
Stars: ✭ 3,258 (+2331.34%)
Mutual labels:  arm, embedded
Daplink
Stars: ✭ 1,162 (+767.16%)
Mutual labels:  arm, embedded
Jesfs
Jo's Embedded Serial File System (for Standard Serial NOR-Flash)
Stars: ✭ 104 (-22.39%)
Mutual labels:  arm, flash

cargo-flash

crates.io documentation Actions Status chat

This crate provides a cargo subcommand to flash ELF binaries onto ARM chips.

Various chip families including but not limited to nRF5x, STM32 and LPC800 can be flashed using DAPLink, ST-Link or J-Link. To check if your specific chip is supported, use cargo flash --list-chips

Support

If you think cargo-flash makes your embedded journey more enjoyable or even earns you money, please consider supporting the project on Github Sponsors for better support and more features.

Installation

You can install this utility with cargo, after installing the necessary prerequisites:

cargo install cargo-flash

Binary releases are not available.

Usage

You can use it like any cargo command would be used

cargo flash <args>

which will then build your binary and download the contents onto the connected target.

Examples

Flash the debug version of the current crate

cargo flash --chip nrf58122

Specifying manually what options should be used

cargo flash --release --chip nRF51822 --target thumbv6m-none-eabi --example gpio_hal_blinky

Use a custom chip definition from a non-builtin file

cargo flash --release --chip-description-path nRF51822.yaml --target thumbv6m-none-eabi --example gpio_hal_blinky

Manually selecting a chip

To manually select a chip, you can use the --chip <chip name> argument. The chip name is an identifier such as nRF51822 or STM32F042. Capitalization does not matter; Special characters do matter.

Specifying a chip family description file

You can add a temporary chip family description by using the --chip-description-path <chip description file path> or -c argument. You need to pass it the path to a valid yaml family description. All the targets of the family will then be added to the registry temporarily and will override existing variants with the same name. You can use this feature to tinker with a chip family description until it works and then submit it to upstream for inclusion.

Extracting a chip family description file from a CMSIS-Pack

You can extract the family description file by running target-gen on a .pack file with cargo run -- file.pack out_dir. You can obtain the pack from ARM for example. Their online registry is a good start :) You can also reference to an already unziped pack directory instead of the file.pack archive file.

Add more chip definitions

If you have a chip you want to flash, feel free to contribute to probe-rs.

Building

cargo-flash can be built using cargo, after installing the necessary prerequisites. See the list below for your operating system.

FTDI support

FTDI support is optional. You can enable it with the ftdi feature. You also need the correct prerequisites from the next section installed.

Prerequisites

cargo-flash depends on the libusb and optionally on libftdi libraries, which need to be installed to build cargo-flash.

Linux

On Ubuntu, the following packages need to be installed:

> sudo apt install -y pkg-config libusb-1.0-0-dev libftdi1-dev

Windows

On Windows you can use vcpkg to install the prerequisites:

# dynamic linking 64-bit
> vcpkg install libftdi1:x64-windows libusb:x64-windows
> set VCPKGRS_DYNAMIC=1

# static linking 64-bit
> vcpkg install libftdi1:x64-windows-static-md libusb:x64-windows-static-md

macOS

On macOS, homebrew is the suggested method to install libftdi:

> brew install libftdi

Sentry logging

We use Sentry to record crash data. This helps us trace crashes better. No data will ever be transmitted without your consent! All data is transmitted completely anonymously. This is an OPT-IN feature. On crash, cargo-flash will ask you whether to transmit the data or not. You can also set whether to do this for all times with an environment variable to omit the message in the future. If you do not wish to have sentry integrated at all, you can also build cargo-flash without sentry by using --no-default-features.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].