Giter Site home page Giter Site logo

b4ck5p4c3 / openhaystack-zephyr Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 0.0 14 KB

📍OpenHaystack for Nordic Semi built on Zephyr RTOS

License: MIT License

JavaScript 54.35% C 33.67% CMake 11.98%
findmy openhaystack ble bluetooth nordic nrf51 nrf52 zephyr

openhaystack-zephyr's Introduction

📍OpenHaystack on Zephyr

Implementation of OpenHaystack firmware on Zephyr RTOS.

Requirements

PlatformIO for building and flashing targets, Node.js to generate code snippets with advertising key included.

Install

# Clone this repo
git clone https://github.com/b4ck5p4c3/openhaystack-zephyr

# Add a new accessory in OpenHaystack, then get the advertising key in Base64.
# Convert it to payload snippet using convert-key script
node convert-key.js YOUR-BASE64-ADVERTISING-KEY

# Paste payload snippet to the corresponding place in src/main.cpp file
nano src/main.cpp

# Adjust the Device Name in Zephyr configuration
nano zephyr/prj.conf

# Compile and upload
pio run --target=upload --environment=nrf51-jlink # nRF51 connected with J-Link
pio run --target=upload --environment=nrf51-stlink # nRF51 connected with ST-Link
pio run --target=upload --environment=nrf52-stlink # nRF52 connected with ST-Link

Full erase

If you experience weird issues on nRF51, you may want to re-flash SoftDevice using commands below.

# Download and extract S110 8.0.0 SoftDevice somewhere.
# https://www.nordicsemi.com/Products/Development-software/S110/Download?lang=en#infotabs

# Go to directory with extracted S110, then erase and upload S110 to target
nrfjprog_bin --eraseall
nrfjprog_bin --program s110_nrf51_8.0.0_softdevice.hex

openhaystack-zephyr's People

Contributors

imcatwhocode avatar mxkrsv avatar shatie avatar

Watchers

 avatar  avatar  avatar  avatar

openhaystack-zephyr's Issues

Flashing with platformio issue

hello there, I was trying to compile the project, which I did, it compiles succesfully but when I try to flash, there is an error that reads:

Building in release mode
Warning! Unknown upload protocol stlink
Checking size .pio/build/nrf51-stlink/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"

I was wondering if you modified the boards file to include the stlink

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.