Skip to content

Test run any program on D1 Nezha board flash

Notifications You must be signed in to change notification settings

darkberg/test-d1-flash-bare

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

test-d1-flash-bare

Prerequisites: you need to install Rust and build target riscv64imac-unknown-none-elf.

Build project

cargo build

Dump assembly code

rust-objdump target\riscv64imac-unknown-none-elf\debug\test-d1-flash-bare -d

Get flash binary

rust-objcopy target\riscv64imac-unknown-none-elf\release\test-d1-flash-bare --binary-architecture=riscv64 --strip-all -O binary target\flash.bin

Jump over header instuction

0000000000000000 <head_jump>:
       0: 6f 00 40 06   j       0x64

About

Test run any program on D1 Nezha board flash

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%