ChanServ changed the topic of #rust-embedded to: Welcome to the Rust Embedded IRC channel! Bridged to #rust-embedded:matrix.org and logged at https://libera.irclog.whitequark.org/rust-embedded, code of conduct at https://www.rust-lang.org/conduct.html
crabbedhaloablut has joined #rust-embedded
loki_val has quit [Ping timeout: 255 seconds]
starblue has quit [Ping timeout: 255 seconds]
starblue has joined #rust-embedded
IlPalazzo-ojiisa has quit [Remote host closed the connection]
fabic_ has joined #rust-embedded
lehmrob has joined #rust-embedded
lehmrob has quit [Client Quit]
fabic_ has quit [Ping timeout: 268 seconds]
fabic_ has joined #rust-embedded
crabbedhaloablut has quit [Ping timeout: 255 seconds]
crabbedhaloablut has joined #rust-embedded
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #rust-embedded
IlPalazzo-ojiisa has joined #rust-embedded
<re_irc> <@admin:orangemurker.com> Is there a way to store the contents of a file in a variable at compile time?
<re_irc> <@k900:0upti.me> "include_bytes!"?
<re_irc> <@admin:orangemurker.com> Oh. I haven't realised that it did it at compile time. Thank you.
starblue has quit [Ping timeout: 255 seconds]
fabic_ has quit [Ping timeout: 255 seconds]
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #rust-embedded
starblue has joined #rust-embedded
<re_irc> <@barafael:matrix.org> I'm using hs-probe + "cargo embed" to flash + defmt my raspberry pi pico. It's very nice, but I wanted to try probe-run like I use in my other projects.
<re_irc> user@machine > probe-run --chip RP2040 thing/target/thumbv6m-none-eabi/debug/thing
<re_irc> Error: A ARM specific error occured.
<re_irc> Caused by:
<re_irc> 0: An error occured in the communication with an access port or debug port.
<re_irc> 1: Target device did not respond to request.
<re_irc> and
<re_irc> <@barafael:matrix.org> I'm using hs-probe + "cargo embed" to flash + defmt my raspberry pi pico. It's very nice, but I wanted to try probe-run like I use in my other projects.
<re_irc> user@machine > probe-run --chip RP2040 thing/target/thumbv6m-none-eabi/debug/thing
<re_irc> Error: A ARM specific error occured.
<re_irc> 1: Target device did not respond to request.
<re_irc> 0: An error occured in the communication with an access port or debug port.
<re_irc> Caused by:
<re_irc> and
<re_irc> user@machine > probe-rs-cli info
<re_irc> Probing target via JTAG
<re_irc> Error identifying target using protocol JTAG: Probe does not support JTAG
<re_irc> Probing target via SWD
<re_irc> Error showing ARM chip information: An error occured in the communication with an access port or debug port.
<re_irc> <@barafael:matrix.org> I'm using hs-probe + "cargo embed" to flash + defmt my raspberry pi pico. It's very nice, but I wanted to try probe-run like I use in my other projects.
<re_irc> user@machine > probe-run --chip RP2040 thing/target/thumbv6m-none-eabi/debug/thing
<re_irc> Caused by:
<re_irc> 1: Target device did not respond to request.
<re_irc> Error: A ARM specific error occured.
<re_irc> 0: An error occured in the communication with an access port or debug port.
<re_irc> and
<re_irc> user@machine > probe-rs-cli info
<re_irc> ra@rafael-thinkpad ~/mt21-rs (main) [1]> probe-rs-cli info
<re_irc> Probing target via JTAG
<re_irc> Error identifying target using protocol JTAG: Probe does not support JTAG
<re_irc> Probing target via SWD
<re_irc> Debug Port: Version 2, MINDP, Designer: Raspberry Pi Trading Ltd, Part: 0x1002, Revision: 0x0
<re_irc> <@barafael:matrix.org> hang on, now it worked
<re_irc> <@adamgreig:matrix.org> does "probe-rs-cli run --chip rp2040" work?
<re_irc> <@adamgreig:matrix.org> ah, heh
<re_irc> <@barafael:matrix.org> yes, that also works
<re_irc> <@barafael:matrix.org> could it be a wiring issue, even though "cargo embed" worked just fine?!
crabbedhaloablut has quit [Ping timeout: 255 seconds]
crabbedhaloablut has joined #rust-embedded
starblue has quit [Ping timeout: 248 seconds]
cosj[m] has joined #rust-embedded
<re_irc> <@yatekii:matrix.org> I think cargo embed might do softreset while the others do hardreset or such. but other than that I don't see it
starblue has joined #rust-embedded
<re_irc> <@barafael:matrix.org> it works now with both methods and I've switched my runner to probe-run. This stuff is just so good. I like hs-probe, too.
<re_irc> <@barafael:matrix.org> btw is there a way to have 2 runners? One using elf2uf2 (for usb) and the other for probe-run?
<re_irc> <@9names:matrix.org> No, but cargo embed doesn't use cargo run so you can leave elf2uf2 as runner
<re_irc> <@dirbaio:matrix.org> you can make a script that calls either
<re_irc> <@dirbaio:matrix.org> and set _that_ as cargo runner, so you can do "cargo run -- elf2uf2" or "cargo run -- probe-run"
<re_irc> <@barafael:matrix.org> nice!
<re_irc> <@jannic:matrix.org> Or you could override the configuration on the command line.
<re_irc> CARGO_TARGET_THUMBV6M_NONE_EABI_RUNNER=elf2uf2 cargo run
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #rust-embedded