Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for STM32U595/5A5 #1792

Closed
jerabaul29 opened this issue Oct 3, 2023 · 4 comments
Closed

Add support for STM32U595/5A5 #1792

jerabaul29 opened this issue Oct 3, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@jerabaul29
Copy link

jerabaul29 commented Oct 3, 2023

I have a nucleo with a stm32u5a5 chip https://www.st.com/en/evaluation-tools/nucleo-u5a5zj-q.html . It seems like I cannot communicate with it using probe-rs:

kzm@kzm-bpq:~$ probe-rs --version
probe-rs 0.20.0
git commit: crates.io
kzm@kzm-bpq:~$ probe-rs chip list | grep STM32U5A5
[no hit]

I am doing anything wrong or is it correct that this chip is not supported at present? What would need to be implemented to support this chip (if it is a few trivial changes I could try to give it a look), and / or could support for this chip be added? :) .

@jerabaul29 jerabaul29 added the enhancement New feature or request label Oct 3, 2023
@jerabaul29
Copy link
Author

A smart comment by @gauteh : for now I get, using a "close family" chip kind instead of the "true correct" STM32U5A5:

kzm@kzm-bpq:~/Desktop/Git/embassy/examples/stm32u5/src/bin$ cargo run --bin blinky --release
    Finished release [optimized + debuginfo] target(s) in 0.16s
     Running `probe-rs run --chip STM32U585AIIx /home/kzm/Desktop/Git/embassy/examples/stm32u5/target/thumbv8m.main-none-eabihf/release/blinky`
     Erasing sectors ✔ [00:00:00] [##################################################################################################################################] 24.00 KiB/24.00 KiB @ 271.88 KiB/s (eta 0s )
 Programming pages   ✔ [00:00:00] [###################################################################################################################################] 20.00 KiB/20.00 KiB @ 34.74 KiB/s (eta 0s )    Finished in 0.69s
Error: This capability has not yet been implemented for this architecture: vector catch

Can this mean that the program actually gets flashed and executed, and "only" the debugging is missing? I should check later today!

@burrbull
Copy link
Contributor

burrbull commented Oct 4, 2023

probe-rs should already support U5A5. See #1744 Try git version:

cargo install probe-rs --features cli --git https://github.com/probe-rs/probe-rs

@jerabaul29
Copy link
Author

Many thanks @burrbull for the help! I just installed as you indicated, and I can indeed see the boards in the list now :)

probe-rs chip list | grep STM32U5A5
        STM32U5A5AJHx
        STM32U5A5AJHxQ
        STM32U5A5QJIx
        STM32U5A5QJIxQ
        STM32U5A5RJTx
        STM32U5A5RJTxQ
        STM32U5A5VJTx
        STM32U5A5VJTxQ
        STM32U5A5ZJTx
        STM32U5A5ZJTxQ
        STM32U5A5ZJYxQ

I don't have the board available just now, will test program upload tonight :) .

@jerabaul29
Copy link
Author

Many thanks for your help, this does work fine now :)

kzm@kzm-bpq:~/Desktop/Git/embassy/examples/stm32u5/src/bin$ cargo run --bin blinky --release
    Finished release [optimized + debuginfo] target(s) in 0.14s
     Running `probe-rs run --chip STM32U585AIIx /home/kzm/Desktop/Git/embassy/examples/stm32u5/target/thum
bv8m.main-none-eabihf/release/blinky`
     Erasing sectors ✔ [00:00:00] [#########################] 24.00 KiB/24.00 KiB @ 301.78 KiB/s (eta 0s )
 Programming pages   ✔ [00:00:00] [##########################] 20.00 KiB/20.00 KiB @ 36.86 KiB/s (eta 0s )
    Finished in 0.641s
0.000000 DEBUG rcc: Clocks { sys: Hertz(4000000), apb1: Hertz(4000000), apb1_tim: Hertz(4000000), apb2: He
rtz(4000000), apb2_tim: Hertz(4000000), apb3: Hertz(4000000), ahb1: Hertz(4000000), ahb2: Hertz(4000000), 
ahb3: Hertz(4000000) }
└─ /home/kzm/Desktop/Git/embassy/embassy-stm32/src/fmt.rs:130
0.000061 INFO Hello World!
└─ blinky.rs:14   
0.000305 INFO on! 
└─ blinky.rs:19   
0.200714 INFO off!
└─ blinky.rs:23  

Closing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants