cancel
Showing results for 
Search instead for 
Did you mean: 

Really *** question - Running software without debugger

bibble235
Associate III

Hi,

Developing software on STM32 MCUs - in the case STM32F3discovery.

I am using rust and reasonably (no expert) used to developing and running code using the environment but I am unsure how to run the code outside of the debugger.

I build a release version and flash but it never seems to be running.

My scope is not near my desk so it is quite inconvenient to stretch this across the house, not to mention the wife :)

What am I doing wrong.

What I am doing generally is 

cargo run --release --bin mybin

cargo flash --release --bin mybin --chip stm32f303vctx

I am sure this is very obvious and people are saying "got a right one here" but hey I have a free day tomorrow from work and chores and would be great to be able to focus

Thanks,

 

1 ACCEPTED SOLUTION

Accepted Solutions
bibble235
Associate III

In case anyone else is reading this

The issue was with the out of date libraries I was using. I found this from help in room #stm32-rs on Element

[dependencies]
cortex-m = "0.7.7"
cortex-m-rt = "0.7.4"

stm32f3xx-hal = { version = "0.10.0", features = ["rt", "stm32f303xc"] }
lazy_static = { version = "1.3.0", features = ["spin_no_std"] }
panic-probe = { version = "0.3.1", features = ["defmt"] }

atomic = "0.6.0"

This all works now.

A day doing STM32 what more could one ask

Thanks

View solution in original post

2 REPLIES 2
Andrew Neil
Evangelist III

I don't know Rust, and I don't think there's a large Rust population here.

https://community.st.com/t5/stm32-mcus-products/is-anyone-using-rust-here-any-toughts/td-p/95496 

https://community.st.com/t5/stm32-mcus-embedded-software/rust-support/td-p/234668 

 

Does this help: https://medium.com/digitalfrontiers/rust-on-a-stm32-microcontroller-90fac16f6342 ?

 

Are you familiar with developing for STM32 (and/or any other microcontrollers) using "conventional" C tools?

 


@bibble235 wrote:

I am using rust and reasonably (no expert) used to developing and running code using the environment but I am unsure how to run the code outside of the debugger.


So, with Rust,  how does running code "inside" the debugger currently work?

Does it actually download code to the target, or is it just in some sort of simulator?

 


@bibble235 wrote:

My scope is not near my desk so it is quite inconvenient to stretch this across the house, not to mention the wife :)


Having decent test instrument access is really key to this!

 

 

 

bibble235
Associate III

In case anyone else is reading this

The issue was with the out of date libraries I was using. I found this from help in room #stm32-rs on Element

[dependencies]
cortex-m = "0.7.7"
cortex-m-rt = "0.7.4"

stm32f3xx-hal = { version = "0.10.0", features = ["rt", "stm32f303xc"] }
lazy_static = { version = "1.3.0", features = ["spin_no_std"] }
panic-probe = { version = "0.3.1", features = ["defmt"] }

atomic = "0.6.0"

This all works now.

A day doing STM32 what more could one ask

Thanks