Giter VIP home page Giter VIP logo

rust-sx12xx's Introduction

rust-sx12xx

Rust bindings for Semtech 12xx LoRa radios

Cloning, building, testing

You can use cargo to build: cargo build [--release]

The configuration in .cargo/config is configured to build only for the thumbv6m-none-eabi platform currently.

The code in the example directory is for the STM32L0 Discovery kit, which features the STM32L072CZ.

To upload the code, start a debug server using either JLink (Note: you can reprogram the ST-Link on the discovery kit to act like a JLink Server; you will lose the virtual UART over USB provided by the ST-Link): JLinkGDBServer -device STM32L072CZ -speed 4000 -if swd -AutoConnect -1 -port 3333

or OpenOCD server (Note: if you are using the OpenOCD server, you will want to update .cargo/config:runner to use openocd.gdb instead of jlink.gdb): openocd -f ./openocd.cfg

run the example: cargo run --example stm32l0x2 [--release]

Run tests: cargo test --target x86_64-unknown-linux-gnu --tests

Dependencies and Build Errors

Apt install all the things

Here's a quick list of things to get your started with a build system on Ubuntu

sudo apt-get install g++-multilib libc6-dev-i386 gcc-arm-none-eabi libnewlib-arm-none-eabi cmake llvm-dev

LLVM

llvm-config missing

On Ubuntu 20, for example, do:

sudo apt install llvm-dev

Libc-dev

fatal error: 'gnu/stubs-32.h' file not found

32-bit libc dev missing. On Ubuntu 20, for example, do:

sudo apt install libc6-dev-i386

rust-sx12xx's People

Contributors

lthiery avatar simmsb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.