tock / libtock-rs

Rust userland library for Tock

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flashing step is skipped for `nucleo_F429zi` platform

JOE1994 opened this issue Β· comments

Hello πŸ¦€ ,

I tried to build and flash the hello_world example to my NucleoF429ZI board, but the flashing stage is entirely skipped.
It seems that currently tools/flash.sh entirely skips the flashing stage for certain platforms.
Is there a workaround to flash a Rust program to my board?
May I ask for advice on how to change the tools/flash.sh script to work for my platform? (NucleoF429ZI)?

Thank you for checking out this issue πŸ‘ πŸ‘

  • Terminal output
lonelyjoe@lonelyjoe-desktop:~/workspace/libtock-rs$ make nucleo_f429zi
PLATFORM=nucleo_f429zi cargo build --release --target=thumbv7em-none-eabi --examples 
   Compiling libtock v0.2.0 (/home/lonelyjoe/workspace/libtock-rs)
    Finished release [optimized + debuginfo] target(s) in 1.95s
lonelyjoe@lonelyjoe-desktop:~/workspace/libtock-rs$ make flash-nucleo_f429zi EXAMPLE=hello_world
PLATFORM=nucleo_f429zi cargo run --release --target=thumbv7em-none-eabi --example hello_world 
   Compiling libtock v0.2.0 (/home/lonelyjoe/workspace/libtock-rs)
    Finished release [optimized + debuginfo] target(s) in 1.09s
     Running `/home/lonelyjoe/workspace/libtock-rs/./tools/flash.sh target/thumbv7em-none-eabi/release/examples/hello_world`
++ basename target/thumbv7em-none-eabi/release/examples/hello_world
+ artifact=hello_world
+++ dirname target/thumbv7em-none-eabi/release/examples/hello_world
++ cd target/thumbv7em-none-eabi/release/examples/../..
++ pwd -P
+ rust_target_folder=/home/lonelyjoe/workspace/libtock-rs/target/thumbv7em-none-eabi
+ '[' -z 1024 ']'
+ '[' -z 1024 ']'
+ case "${PLATFORM}" in
+ tockloader_flags=
+ binary_name=cortex-m4.elf
+ tockload=n
+ libtock_target_path=/home/lonelyjoe/workspace/libtock-rs/target/thumbv7em-none-eabi/tab/nucleo_f429zi/hello_world
+ elf_file_name=/home/lonelyjoe/workspace/libtock-rs/target/thumbv7em-none-eabi/tab/nucleo_f429zi/hello_world/cortex-m4.elf
+ tab_file_name=/home/lonelyjoe/workspace/libtock-rs/target/thumbv7em-none-eabi/tab/nucleo_f429zi/hello_world.tab
+ mkdir -p /home/lonelyjoe/workspace/libtock-rs/target/thumbv7em-none-eabi/tab/nucleo_f429zi/hello_world
+ cp target/thumbv7em-none-eabi/release/examples/hello_world /home/lonelyjoe/workspace/libtock-rs/target/thumbv7em-none-eabi/tab/nucleo_f429zi/hello_world/cortex-m4.elf
+ elf2tab -n hello_world -o /home/lonelyjoe/workspace/libtock-rs/target/thumbv7em-none-eabi/tab/nucleo_f429zi/hello_world.tab /home/lonelyjoe/workspace/libtock-rs/target/thumbv7em-none-eabi/tab/nucleo_f429zi/hello_world/cortex-m4.elf --stack 2048 --app-heap 1024 --kernel-heap 1024 --protected-region-size=64
+ '[' n == n ']'
+ echo 'Skipping flashing for platform "nucleo_f429zi"'
Skipping flashing for platform "nucleo_f429zi"
+ exit 0

Tockloader doesn't support flashing this platform. You will need to flash it manually, check the Tock Makefile for how to do this.

Thank you!