Article: Debug Rust+Mynewt Firmware for PineTime on Raspberry Pi
#1
Here's the new article that explains we may debug PineTime firmware with a Raspberry Pi...

Debug Rust+Mynewt Firmware for PineTime on Raspberry Pi
  Reply
#2
Thanks for this. I finally got the chance to give it a go, although slightly limited as my raspbian-lite has no gui, and programming is working. One oddity regarding the pinetime-rust-mynewt release v2.0.5 - the flash scripts in scripts/nrf52-pi/ call openocd/bin/openocd but fail as that's an x86_64 executable not an arm one.
  Reply
#3
Ah yes... The install-pi.sh script overwrites that with the openocd-spi version for Arm. Sorry about the mess, but it's the only way that I can get VSCode to debug properly under Windows, macOS, Pi AND PineBook Pro

Here's where openocd-spi gets copied...

Sent from my Pixel 4 XL using Tapatalk
[Image: 81e31ddb185aca09fe1d2185258ea3c3.jpg]
  Reply
#4
That seems a reasonable solution to the cross-platform complications, and well done for trying to make it work for everybody. I wasn't exactly following the instructions so it's fair to expect things not to go so smoothly.
  Reply
#5
I have just discovered the wonderful world of Discord... So we can now talk more about the right way to do things [Image: a06395edcb505013330fb61eaa3f998c.jpg]

Sent from my Pixel 4 XL using Tapatalk
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Flash firmware - Bloody beginner tutorial needed jojuma 8 1,370 01-15-2021, 07:59 PM
Last Post: jaysprout
  Article: OpenOCD on Raspberry Pi: Better with SWD on SPI lupyuen 5 2,406 04-05-2020, 06:47 PM
Last Post: johns
  Article: My First Week As Embedded FOSS Advocate lupyuen 3 1,527 03-26-2020, 07:10 PM
Last Post: aalevy
  Article: Visual Rust for PineTime Smart Watch lupyuen 1 1,082 03-09-2020, 05:47 PM
Last Post: tllim
  Article: CHIP-8 Game Emulator in Rust for PineTime Smart Watch lupyuen 0 670 03-04-2020, 08:13 PM
Last Post: lupyuen
  Article: Debug RIOT-OS on PineTime with VSCode lupyuen 0 660 02-02-2020, 01:43 AM
Last Post: lupyuen
  Article: Build and Flash Rust+Mynewt Firmware for PineTime Smart Watch lupyuen 8 2,709 01-18-2020, 01:01 AM
Last Post: clover
  Article: Optimising PineTime’s Display Driver with Rust and Mynewt lupyuen 0 693 12-28-2019, 05:46 PM
Last Post: lupyuen
  Article: Porting [druid] Rust Widgets to PineTime Smart Watch lupyuen 3 1,342 12-19-2019, 04:31 AM
Last Post: lupyuen
  Article: Building a Rust Driver for PineTime’s Touch Controller lupyuen 1 1,062 11-22-2019, 08:46 AM
Last Post: xalius

Forum Jump:


Users browsing this thread: 1 Guest(s)