Article: Build and Flash Rust+Mynewt Firmware for PineTime Smart Watch
#4
(01-08-2020, 08:51 AM)lupyuen Wrote:
(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/

Ah, indeed, thank you for pointing that out. Yes, then a ST-Link will likely be a better solution for a showcase. I was just reading this, and assume that this would also apply to your build / demo?
You can find me on IRC, Discord and Twitter




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

Possibly Related Threads…
Thread Author Replies Views Last Post
  PineTime BLE connection pinemike 2 3,192 01-19-2022, 07:45 AM
Last Post: pinemike
  Amazfish connect to pinetime espenbo 0 1,291 09-25-2021, 04:58 PM
Last Post: espenbo
  Switching between two PineTime in Wasp-os Mpoint 4 5,752 06-28-2021, 07:39 AM
Last Post: Mpoint
  Switching your PineTime between InfiniTime and Wasp-os Peetz0r 1 3,796 06-09-2021, 04:18 AM
Last Post: danielt
  Flashing PineTime with 3rd party bootloader Mpoint 2 4,381 04-07-2021, 08:37 AM
Last Post: wibble
  Need HELP with firmware update jojuma 4 5,805 03-25-2021, 05:22 AM
Last Post: jojuma
  Flash firmware - Bloody beginner tutorial needed jojuma 9 10,926 03-20-2021, 05:54 AM
Last Post: jojuma
  First time working on the PineTime Dev Kit Msaulnier1 3 5,289 02-10-2021, 06:13 PM
Last Post: Msaulnier1
  Build issue on Windows 10 thibww67 0 2,367 08-11-2020, 06:17 AM
Last Post: thibww67
  Article: OpenOCD on Raspberry Pi: Better with SWD on SPI lupyuen 5 9,181 04-05-2020, 06:47 PM
Last Post: johns

Forum Jump:


Users browsing this thread: 1 Guest(s)