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] Creating the Unicorn Emulator for Avaota-A1 SBC (Apache NuttX RTOS) lupyuen 0 420 04-12-2025, 06:04 PM
Last Post: lupyuen
  [Article] Porting Apache NuttX RTOS to Avaota-A1 SBC (Allwinner A527 SoC) lupyuen 2 837 03-22-2025, 07:30 PM
Last Post: lupyuen
  [Article] StarPro64 EIC7700X RISC-V SBC: Maybe LLM on NPU on NuttX? lupyuen 2 1,042 03-08-2025, 09:20 PM
Last Post: tllim
  [article] Linux Phone Takeover Juergen 3 1,110 02-25-2025, 08:23 AM
Last Post: Kevin Kofler
  [Article] Test Bot for NuttX Pull Requests ... Tested on Real Hardware (Oz64 SG2000) lupyuen 0 644 02-15-2025, 11:26 AM
Last Post: lupyuen
  [Article] RISC-V Emulator for Pine64 Oz64 SBC lupyuen 2 1,829 07-07-2024, 04:19 AM
Last Post: lupyuen
  [Article] Rust Apps on Ox64 BL808 RISC-V SBC and Apache NuttX RTOS lupyuen 2 1,969 07-06-2024, 06:51 PM
Last Post: lupyuen
  [Article] Coding Ox64 BL808 SBC the Drag-n-Drop Way lupyuen 3 2,452 04-02-2024, 07:38 AM
Last Post: Noahstorey
  [Article] QuickJS JavaScript Engine on a Real-Time Operating System (Ox64 + NuttX) lupyuen 0 1,361 02-17-2024, 07:24 PM
Last Post: lupyuen
  [Article] Emulate Ox64 BL808 in the Web Browser: Experiments with TinyEMU lupyuen 3 2,303 02-17-2024, 06:53 PM
Last Post: tllim

Forum Jump:


Users browsing this thread: 1 Guest(s)