PINE64
Article: Debug Rust+Mynewt Firmware for PineTime on Raspberry Pi - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PineTime (https://forum.pine64.org/forumdisplay.php?fid=134)
+--- Forum: PineTime Tutorials (https://forum.pine64.org/forumdisplay.php?fid=138)
+--- Thread: Article: Debug Rust+Mynewt Firmware for PineTime on Raspberry Pi (/showthread.php?tid=8883)



Article: Debug Rust+Mynewt Firmware for PineTime on Raspberry Pi - lupyuen - 01-22-2020

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


RE: Article: Debug Rust+Mynewt Firmware for PineTime on Raspberry Pi - wibble - 01-23-2020

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.


Article: Debug Rust+Mynewt Firmware for PineTime on Raspberry Pi - lupyuen - 01-23-2020

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]


RE: Article: Debug Rust+Mynewt Firmware for PineTime on Raspberry Pi - wibble - 01-24-2020

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.


Article: Debug Rust+Mynewt Firmware for PineTime on Raspberry Pi - lupyuen - 01-24-2020

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