parent
3f2488eec2
commit
6dcf150b1f
@ -1,6 +0,0 @@ |
||||
with (import <nixpkgs> {}); |
||||
|
||||
stdenv.mkDerivation { |
||||
name = "bad-rust-env"; |
||||
buildInputs = with pkgs; [ rustup clangStdenv cargo-flash openocd ]; |
||||
} |
@ -0,0 +1,3 @@ |
||||
#!/bin/sh |
||||
|
||||
|
@ -0,0 +1,6 @@ |
||||
# This is required to make it work with my fake stm32 |
||||
set CPUTAPID 0x2ba01477 |
||||
source [find interface/stlink.cfg] |
||||
|
||||
source [find target/stm32f1x.cfg] |
||||
|
@ -0,0 +1,19 @@ |
||||
target remote :3333 |
||||
|
||||
# print demangled symbols |
||||
set print asm-demangle on |
||||
|
||||
# detect unhandled exceptions, hard faults and panics |
||||
break DefaultHandler |
||||
break UserHardFault |
||||
break rust_begin_unwind |
||||
|
||||
# *try* to stop at the user entry point (it might be gone due to inlining) |
||||
break main |
||||
|
||||
monitor arm semihosting enable |
||||
|
||||
load |
||||
|
||||
# start the process but immediately halt the processor |
||||
stepi |
@ -0,0 +1,9 @@ |
||||
with (import <nixpkgs> {}); |
||||
|
||||
stdenv.mkDerivation { |
||||
name = "bad-rust-env"; |
||||
buildInputs = with pkgs; [ |
||||
rustup clangStdenv gcc-arm-embedded |
||||
cargo-flash cargo-binutils openocd |
||||
]; |
||||
} |
Loading…
Reference in new issue