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
#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.
#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 [emoji3]

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

Sent from my Pixel 4 XL using Tapatalk
[Image: 81e31ddb185aca09fe1d2185258ea3c3.jpg]
#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.
#5
I have just discovered the wonderful world of Discord... So we can now talk more about the right way to do things [emoji3][Image: a06395edcb505013330fb61eaa3f998c.jpg]

Sent from my Pixel 4 XL using Tapatalk


Possibly Related Threads…
Thread Author Replies Views Last Post
  PineTime BLE connection pinemike 2 3,188 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,751 06-28-2021, 07:39 AM
Last Post: Mpoint
  Switching your PineTime between InfiniTime and Wasp-os Peetz0r 1 3,794 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,802 03-25-2021, 05:22 AM
Last Post: jojuma
  Flash firmware - Bloody beginner tutorial needed jojuma 9 10,921 03-20-2021, 05:54 AM
Last Post: jojuma
  First time working on the PineTime Dev Kit Msaulnier1 3 5,286 02-10-2021, 06:13 PM
Last Post: Msaulnier1
  Article: OpenOCD on Raspberry Pi: Better with SWD on SPI lupyuen 5 9,177 04-05-2020, 06:47 PM
Last Post: johns
  Article: My First Week As Embedded FOSS Advocate lupyuen 3 6,066 03-26-2020, 07:10 PM
Last Post: aalevy

Forum Jump:


Users browsing this thread: 1 Guest(s)