Skip to content

Latest commit

 

History

History
70 lines (51 loc) · 2.31 KB

README.md

File metadata and controls

70 lines (51 loc) · 2.31 KB

rg35xx-rust

Example of a simple rust app developed on windows and cross compiled to run on a RG35XX.

Prerequsites

Develop

In windows, modify the files in this-repo (I use VS Code)

Build

In your WSL Terminal

# Navigate to where you cloned this repo
# e.g. "cd /mnt/c/Users/your-name/rg35xx-rust"

# Build the Rust app
cross build --target armv7-unknown-linux-musleabihf

Deploy

In your Windows Terminal

# Navigate to this cloned repo
# e.g. "cd c:\Users\your-name\rg35xx-rust"

# Navigate to the built app
cd target\armv7-unknown-linux-musleabihf\debug

# Copy it to the device
\path\to\adb.exe push --sync .\hellorust "/mnt/mmc/hellorust"

Run

In your Windows Terminal

# Open a shell on your device
\path\to\adb.exe shell

# Run the app
/mnt/mmc/hellorust

Acknowledgements