Article: Debug Rust on PineCone BL602 with VSCode and GDB
#3
(12-14-2020, 08:42 AM)barray Wrote: 1. Is the USB only for power? Does the device not allow for flashing via USB? I kind of hoped there would be a USB to serial flashing process.

2. How mature is the Rust library now? Is it functioning and if so, is it using binary blobs?

3. What is the compelling argument for using Rust over C for the stack?

So glad to have you onboard PineCone and RISC-V! :-)

1.  The USB port is connected to PineCone's UART port. That's how we flash firmware over USB (and UART). Debugging is not supported over USB. More details here

The UART flashing protocol is non-standard, that's why I chose to use a JTAG Debugger instead. It just works better with Rust, GDB and VSCode. :-)

2.  Many features are still missing in the Rust libraries for BL602, e.g. I2C, SPI. Check the docs here

BLE and WiFi are still not supported in the Rust BL602 libraries. We need to reverse engineer the blobs then get them working with Rust. 

3.  About C vs Rust: Yep it's perfectly fine to use C! :-) I'll be porting Mynewt OS to PineCone, which is mostly C anyway.

Rust seems friendlier for folks who are new to embedded coding. But it can get unnecessarily complex.

I wrote about Rust because the Sipeed Community has ported it to BL602. And it has GDB config files that actually work for flashing and debugging PineCone. So we can adapt them for our C projects as well.


Messages In This Thread
RE: Article: Debug Rust on PineCone BL602 with VSCode and GDB - by lupyuen - 12-14-2020, 09:00 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Article: The Advantages of mobile Linux over AOSP amosbatto 2 841 10-20-2026, 02:38 PM
Last Post: zetabeta
  Article: Will Linux phones become a viable alternative to the Android/iOS duopoly? amosbatto 11 2,526 10-19-2026, 09:52 AM
Last Post: amosbatto
  [article] Linux Phone Takeover Juergen 4 7,217 10-08-2025, 02:31 PM
Last Post: zech.dexos
  [Article] RISC-V Ox64 BL808: UART Interrupt and Platform-Level Interrupt Controller lupyuen 2 13,094 09-03-2025, 10:51 PM
Last Post: PrinceMorissette
  [Article] Creating the Unicorn Emulator for Avaota-A1 SBC (Apache NuttX RTOS) lupyuen 0 3,823 04-12-2025, 06:04 PM
Last Post: lupyuen
  [Article] Porting Apache NuttX RTOS to Avaota-A1 SBC (Allwinner A527 SoC) lupyuen 2 5,248 03-22-2025, 07:30 PM
Last Post: lupyuen
  [Article] StarPro64 EIC7700X RISC-V SBC: Maybe LLM on NPU on NuttX? lupyuen 2 5,793 03-08-2025, 09:20 PM
Last Post: tllim
  [Article] Test Bot for NuttX Pull Requests ... Tested on Real Hardware (Oz64 SG2000) lupyuen 0 3,531 02-15-2025, 11:26 AM
Last Post: lupyuen
  [Article] RISC-V Emulator for Pine64 Oz64 SBC lupyuen 2 5,128 07-07-2024, 04:19 AM
Last Post: lupyuen
  [Article] Rust Apps on Ox64 BL808 RISC-V SBC and Apache NuttX RTOS lupyuen 2 4,882 07-06-2024, 06:51 PM
Last Post: lupyuen

Forum Jump:


Users browsing this thread: 1 Guest(s)