Giter VIP home page Giter VIP logo

pyrus's Introduction

Pyrus

Pyrus is yet another PineTime firmware whose goal is to run bare metal, without any kind of RTOS.
This project is based on JF002's nrf52-baseproject, which is a base to get CMake to work with the nRF52 MCU and SDK.

What's working

  • ST7789 LCD Controller, with support for hardware-assisted vertical scrolling
  • nRF52's Real Time Counter, to keep track of the time
  • nRF52's BLE, advertising and bonding works:
    • AMS Client to control the current media on iOS devices
    • CTS Client to synchronize the watch clock with the smartphone

Building

You should follow the instructions of the nrf52-baseproject to get a build environment ready to compile Pyrus.
This project is currently being compiled using gcc-arm-none-eabi-10-2020-q4-major and the nRF5 SDK 17.0.2.

Once your environment is ready, you just have to run the following commands to compile this firmware:

git clone https://github.com/Arc13/Pyrus.git
cd Pyrus
mkdir build && cd build
cmake -DARM_NONE_EABI_TOOLCHAIN_PATH=[...] -DNRF5_SDK_PATH=[...] -DNRFJPROG=[...] ..

If you haven't already, you need to flash the SoftDevice only once:

cmake --build . --target FLASH_SOFTDEVICE

To compile the firmware, you can run this command:

cmake --build . --target Pyrus-fw

You will then have the generated firmware image available under the src/ directory.

Flashing

If your PineTime is directly connected to your machine (via, for instance, the nRF52-DK integrated SEGGER JLink debugger/programmer), you can flash this image to the smartwatch with the following command:

nrfjprog --program Pyrus-fw.hex --sectorerase

Acknowledgments

pyrus's People

Contributors

arc13 avatar kuruyia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pyrus's Issues

Bootloader ?

Hello,

I successfully compiled the code and flashed the app and the softdevice to my PineTime. However, the app won't run and constantly reboot.

Can you please point me to the bootloader you used with your PineTime ? I am pretty sure that my bootloader causes me troubles.

Thanks for your work!

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.