Skip to content

almindor/pinetime-quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pinetime-quickstart

PineTime "smartwatch" quickstart repo for Rust development with HAL

This is a work in progress. As of right now this setup has been tested with the PineTime watch using a JLink Mini-Edu probe and the Segger JLinkGDBRemote software. No other probe/setup has been tested yet.

JLink hardware setup

Connect the SWD to your JLink probe and connect the probe to the computer. A breakout board might be needed so you can use standard breakout pins.

JLink software setup

Requirements

  • Segger JLink software
  • arm-none-eabi-gdb

Setup

WARNING Flashing the device removes the closed-source OS that comes with PineTime. I'm not aware of any way to get it back (there might be a hex file somewhere).

JLink & GDB direct

You should run JLinkExe for first time so you can unlock the "locked flash/ram" on the PineTime. A prompt should pop up, if not check if your Segger software is up to date. Once the re-flash is done you can continue using JLinkGDBServer as shown below:

  1. Run JLinkGDBServer -device NRF52832_XXAA -if SWD -speed 4000 -port 3333 -nogui You might get a pop up if using JLink Mini-Edu that needs to be accepted once per day
  2. Once JLinkGDBServer is connected you should be good to go and just use cargo run to execute the main program. Use the examples as required.

OpenOCD

TODO

Running

The main program is just an endless wait loop, not too interresting.

There are currently these examples, run them with cargo run --release --example <name>

  1. display - renders some basic primitives on a blue background
  2. display_ferris - draws ferris over a black background
  3. systemoff - shuts down to low power mode
  4. battery_status - one time battery info to semihosting printlns

About

PineTime "smartwatch" quickstart repo for Rust development with HAL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published