Article: Build and Flash Rust+Mynewt Firmware for PineTime Smart Watch
#3
(01-08-2020, 06:41 AM)Luke Wrote: Superb, I'll get it flashed for FOSDEM as one of the Demos Smile

[edit] I assume that a ROCK64 running Debian will do the same job as the RPI -- if so, then I could run this live at FOSDEM stall Smile

Erm Luke some bad news for ROCK64 ;-) If you check my config for OpenOCD...

https://github.com/lupyuen/pinetime-rust...swd-pi.ocd

...you can see that it's using the Broadcom GPIO driver (bcm2835gpio). Which means that it only works with Raspberry Pi. The driver needs to support very precise GPIO timing. I don't think there's a similar driver for ROCK64 OpenOCD. Bummer.

I think you might be better off running Linux on PineBook Pro and using VSCode + ST-Link to flash PineTime?

The installation on Linux should be quite similar to the macOS steps in my article. Just need to update the OpenOCD path in the scripts flash-boot.sh and flash-app.sh in this folder...

https://github.com/lupyuen/pinetime-rust-mynewt/blob/master/scripts/nrf52/


Messages In This Thread
RE: Article: Build and Flash Rust+Mynewt Firmware for PineTime Smart Watch - by lupyuen - 01-08-2020, 08:51 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Switching your PineTime between InfiniTime and Wasp-os Peetz0r 1 328 06-09-2021, 04:18 AM
Last Post: danielt
  Flashing PineTime with 3rd party bootloader Mpoint 2 665 04-07-2021, 08:37 AM
Last Post: wibble
  Need HELP with firmware update jojuma 4 714 03-25-2021, 05:22 AM
Last Post: jojuma
  Flash firmware - Bloody beginner tutorial needed jojuma 9 3,611 03-20-2021, 05:54 AM
Last Post: jojuma
  First time working on the PineTime Dev Kit Msaulnier1 3 1,084 02-10-2021, 06:13 PM
Last Post: Msaulnier1
  Build issue on Windows 10 thibww67 0 798 08-11-2020, 06:17 AM
Last Post: thibww67
  Article: OpenOCD on Raspberry Pi: Better with SWD on SPI lupyuen 5 3,632 04-05-2020, 06:47 PM
Last Post: johns
  Article: My First Week As Embedded FOSS Advocate lupyuen 3 2,278 03-26-2020, 07:10 PM
Last Post: aalevy
  Article: Visual Rust for PineTime Smart Watch lupyuen 1 1,656 03-09-2020, 05:47 PM
Last Post: tllim
  Article: CHIP-8 Game Emulator in Rust for PineTime Smart Watch lupyuen 0 1,048 03-04-2020, 08:13 PM
Last Post: lupyuen

Forum Jump:


Users browsing this thread: 1 Guest(s)