Giter Club home page Giter Club logo

lupyuen / bl_iot_sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pine64/bl_iot_sdk

26.0 26.0 8.0 320.63 MB

BL602 / BL604 IoT SDK featured in "The RISC-V BL602 Book"

Home Page: https://lupyuen.github.io/articles/book

License: Apache License 2.0

Shell 0.21% C 35.54% Makefile 0.30% C++ 46.28% Assembly 1.12% Batchfile 0.02% CMake 0.14% HTML 4.56% Perl 0.01% Python 0.79% GDB 0.01% XC 0.06% Roff 10.96% Rust 0.02%
bl602 bl604 grafana lora lorawan prometheus riscv riscv32 roblox rust thethingsnetwork

bl_iot_sdk's People

Contributors

avamander avatar bkpepe avatar bouffalolab2020 avatar bryanquigley avatar cgbarros avatar chinawrj avatar disdi avatar enjoycodefun avatar ferenc- avatar fortysixandtwo avatar ftk avatar gamelaster avatar gpsbabeldeveloper avatar jevere avatar jf002 avatar jvasile avatar konradybcio avatar lupyuen avatar madushan1000 avatar paulcapron avatar paulusmack avatar prozsolt avatar qarmin avatar robertlipe avatar serv-inc avatar shchen-lab avatar sthibaul avatar suculent avatar tchebb avatar yafeijin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bl_iot_sdk's Issues

Compile issue of rust sample

Using the newest of nightly version rust, the error log:

+ cargo build --target /home/milili.tech/BL602/bl_iot_sdk/customer_app/sdk_app_rust_gpio/riscv32imacf-unknown-none-elf.json -Z build-std=core
error: failed to run `rustc` to learn about target-specific information

Caused by:
  process didn't exit successfully: `rustc - --crate-name ___ --print=file-names --target /home/milili.tech/BL602/bl_iot_sdk/customer_app/sdk_app_rust_gpio/riscv32imacf-unknown-none-elf.json --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=cfg` (exit status: 1)
  --- stderr
  error: Error loading target specification: may not set is_builtin for targets not built-in. Run `rustc --print target-list` for a list of built-in targets

While checking the log in run.sh, the rustc version is rustc 1.53.0-nightly (7af1f55ae 2021-04-15), so tried this version, it works well. After some check, finally found that nightly-2021-07-17 working, but nightly-2021-07-18 produced this error. Didn't explore more about the differences between these two versions.

If you have time, please check about this.

LTO and optimize for size?

I see that Rhai seems to be exhausting the stack space on the BL602, which is a bit baffling for me, since I've seen somebody compiling a bare minimum engine for the ST32 which fits under 64KB...

Two things I can suggest:

  1. Add no_position to the rhai dependency, which saves you one entire word for each AST node

  2. Use LTO and optimize for size - not sure if this changes anything, but should yield smaller builds

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.