Skip to content

Latest commit

 

History

History
executable file
·
42 lines (20 loc) · 943 Bytes

README.md

File metadata and controls

executable file
·
42 lines (20 loc) · 943 Bytes

Instruction

A cortex-m3 based embedded rust program that implements ed25519 key generation by calling iot sdk. The program can be run via qemu or downloaded directly to the stm32f103 development board.The program was compiled on an X86_64 Ubuntu 18.04.6 LTS system.

Build io sdk library

git clone [email protected]:machinefi/web3-iot-sdk.git

cd  web3-iot-sdk

cmake -DGIT_SUBMODULE_UPDATE=ON -DBUILD_IOTEX_F=ON -DCRYPTO_IMPL="MbedTLS"  -S ./ -B ./build-out

cmake --build build-out

Build embedded rust program

Run program in qemu

cd no_std/app

cargo run --target  thumbv7m-none-eabi  --toollchian  nightly-x86_64-unknown-linux-gnu

Generate a binary program to run on the stm32fl03 development board

cd no_std/app

cargo  objcopy  --bin app --release  --features "uart_print"  -- -O binary app.bin   --target  thumbv7m-none-eabi  --toollchian  nightly-x86_64-unknown-linux-gnu