Skip to content

Added nucleo board description with properties in known_boards.rs 's files#131

Open
vladagr-151107 wants to merge 3 commits into
WyliodrinEmbeddedIoT:mainfrom
vladagr-151107:main
Open

Added nucleo board description with properties in known_boards.rs 's files#131
vladagr-151107 wants to merge 3 commits into
WyliodrinEmbeddedIoT:mainfrom
vladagr-151107:main

Conversation

@vladagr-151107

@vladagr-151107 vladagr-151107 commented Jul 9, 2026

Copy link
Copy Markdown

Pull Request Overview

TODO

This pull request still needs revision of work done.

Checks

Please tick off what you did, and specify what features you've tested on hardware.
Vlada Grushchenko vladagrushchenko@gmail.com

@vladagr-151107

Copy link
Copy Markdown
Author

@eva-cosma hello! please check the PR when you'll have time, so that i know if i am moving in the correct direction and what mistakes I should correct. I am rewriting boards from board_interface.py.

@eva-cosma

Copy link
Copy Markdown
Collaborator

Only add nucleo u545 , since this is the board we have on hand. After we have the board we need to test it manually to see that tockloader functions

@vladagr-151107

Copy link
Copy Markdown
Author

@eva-cosma i've tested the commands and these are the logs I got listed below. It seems that there is some problem with info and error commands mentioned during running. Rest seems to be ok. Please check the log and let me know what do i need to fix.
vlada@fedora:~/tockloader-rs$ cargo run -p tockloader -- info --board nucleo-u545re-q
Finished dev profile [unoptimized + debuginfo] target(s) in 0.11s
Running target/debug/tockloader info --board nucleo-u545re-q

Which debug probe do you want to use? STLink V3 -- 0483:374e:002800193133510836303739 (ST-LINK)
[2026-07-10T08:41:39Z INFO tockloader_lib::connection] ProbeRS connection opened succesfully.
thread 'main' (21531) panicked at tockloader-lib/src/command_impl/info.rs:12:68:
called Result::unwrap() on an Err value: Probe(Communication(Arm(Probe(ProbeSpecific(CommandFailed(SwdApFault))))))
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

vlada@fedora:~/tockloader-rs$ cargo run -p tockloader -- install --board nucleo-u545re-q
Finished dev profile [unoptimized + debuginfo] target(s) in 0.11s
Running target/debug/tockloader install --board nucleo-u545re-q
thread 'main' (21634) panicked at tockloader-cli/src/main.rs:234:75:
called Option::unwrap() on a None value
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

@vladagr-151107

Copy link
Copy Markdown
Author

I also checked the same commands on microbit-v2 to compare and install seems to fail there as well, however info one is ok.

@vladagr-151107 vladagr-151107 changed the title Added hald of the boards description with properties in known_boards.rs in tockloader-lib Added nucleo board description with properties in known_boards.rs 's files Jul 10, 2026
@eva-cosma

Copy link
Copy Markdown
Collaborator

Make sure you installed tock properly. The probers issues marks a communication error. Try this as well
https://probe.rs/docs/getting-started/probe-setup/

Microbit v2 should work. If it does not please investigate.

@eva-cosma

Copy link
Copy Markdown
Collaborator

Did you not provide a tab file to the install command? Can you look why the tab file is not marked as required, it should have given you an error on clap's side.

@vladagr-151107

Copy link
Copy Markdown
Author

Okay, so I tested the install command of c_hello on the board and it works, even though it throws this warning using tockloader listen i receive hello world as i am supposed to. log will be displayed below: vlada@fedora:~/tockloader-rs$ cargo run -p tockloader -- install ~/libtock-c/examples/c_hello/build/c_hello.tab --board nucleo-u545re-q
Finished dev profile [unoptimized + debuginfo] target(s) in 0.12s
Running target/debug/tockloader install /home/vlada/libtock-c/examples/c_hello/build/c_hello.tab --board nucleo-u545re-q

Which debug probe do you want to use? STLink V3 -- 0483:374e:002800193133510836303739 (ST-LINK)
[2026-07-10T12:01:23Z INFO tockloader_lib::connection] ProbeRS connection opened succesfully.
[2026-07-10T12:01:23Z INFO tockloader_lib::command_impl::install] tock apps len 2
[2026-07-10T12:01:24Z INFO tockloader_lib::command_impl::reshuffle_apps] first intial configuration:
final intial configuration:
[2026-07-10T12:01:24Z INFO tockloader_lib::command_impl::reshuffle_apps] sorted rust apps []
[2026-07-10T12:01:24Z INFO tockloader_lib::command_impl::reshuffle_apps] checking for intermediate
[2026-07-10T12:01:24Z INFO tockloader_lib::command_impl::reshuffle_apps] checking for last gap 0x8021000, obtained with addr 0x8020000, size 4096
[2026-07-10T12:01:24Z INFO tockloader_lib::command_impl::reshuffle_apps] checking for intermediate
[2026-07-10T12:01:24Z INFO tockloader_lib::command_impl::reshuffle_apps] checking for last gap 0x8023000, obtained with addr 0x8022000, size 4096
[2026-07-10T12:01:24Z INFO tockloader_lib::command_impl::reshuffle_apps] obtained config before padding check [
Index {
installed: true,
idx: Some(
0x0,
),
ram_address: None,
address: 0x8020000,
size: 0x1000,
},
Index {
installed: false,
idx: None,
ram_address: None,
address: 0x8021000,
size: 0x1000,
},
Index {
installed: true,
idx: Some(
0x1,
),
ram_address: None,
address: 0x8022000,
size: 0x1000,
},
Index {
installed: false,
idx: None,
ram_address: None,
address: 0x8021000,
size: 0x1000,
},
Index {
installed: false,
idx: Some(
0x2,
),
ram_address: None,
address: 0x8024000,
size: 0x1000,
},
]

thread 'main' (43044) panicked at tockloader-lib/src/command_impl/reshuffle_apps.rs:415:27:
attempt to subtract with overflow
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

@vladagr-151107

Copy link
Copy Markdown
Author

regarding the info, it seems that the board rejects to provide data to the computer. I don't know how to deal with it yet. cargo run -p tockloader -- info --board nucleo-u545re-q
Finished dev profile [unoptimized + debuginfo] target(s) in 0.12s
Running target/debug/tockloader info --board nucleo-u545re-q

Which debug probe do you want to use? STLink V3 -- 0483:374e:002800193133510836303739 (ST-LINK)
[2026-07-10T12:02:59Z INFO tockloader_lib::connection] ProbeRS connection opened succesfully.

thread 'main' (43149) panicked at tockloader-lib/src/command_impl/info.rs:12:68:
called Result::unwrap() on an Err value: Probe(Communication(Arm(Probe(ProbeSpecific(CommandFailed(SwdApFault))))))
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

@eva-cosma

Copy link
Copy Markdown
Collaborator

Find the reasons for the crashes. These are not warnings, these are full on errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants