<thejpster[m]>
It notes that on some systems the hypervisor cannot read the guest memory. So it couldn’t manually emulate the instruction even if it wanted to.
<whitequark[cis]>
right, the execute-only feature
<whitequark[cis]>
probably also whatever arm's version of SEV is called
<whitequark[cis]>
it's still cursed but i have to concede that the motivation is legitimate. i guess now we have to consider MMIO as a part of the ABI?
<thejpster[m]>
Rust has no mechanism for that though
<thejpster[m]>
It knows about function calls and types with special rules, but not loads and stores. So it has to be written in assembly, which is what safe-mmio does.
<whitequark[cis]>
yeah I know, I meant "we" as in "the community of compiler devs"
<whitequark[cis]>
since this problem isn't going away
<Socke>
how can I use probe-rs to flash the esp32c3 with a different partition table?
<Socke>
probe-rs run seems to only accept the elf binary
<Socke>
I can come up with something like espflash flash --partition-table=.. target/... && probe-rs attach target/... but that seems... long :D
<Socke>
(and also I cannot put it as a runner into the .cargo/config.toml)
<DnielBuga[m]>
Socke: `--idf-partition-table`
<Socke>
DnielBuga[m]: nice! thanks!
<Socke>
oh... I skipped the "DOWNLOAD CONFIGURATION" section when reading through the help because I thought "no, I want to upload" m(
<Socke>
well :D
<DnielBuga[m]>
yeah if you have two options to name something, both will be used 😅
<Socke>
is it expected, that I sometimes loose log messages logged through the rtt_target crate? they just don't seem to show up, especially when I have long messages. is that a bug?
<DnielBuga[m]>
if you log a lot and the rtt buffer gets full, then yes, probe-rs will not set RTT channels to block automatically
<DnielBuga[m]>
except for defmt
rainbyte has quit [Read error: Connection reset by peer]
rainbyte has joined #rust-embedded
OlivierCornu[m] has quit [Quit: Idle timeout reached: 172800s]
GenTooMan has joined #rust-embedded
<Socke>
can I somehow set them to block or do I have to use defmt?
wassasin[m] has quit [Quit: Idle timeout reached: 172800s]
<az1[m]>
Socke: yeah, you can set channels to blocking mode. it should be in the rtt-target docs.
<Socke>
okay thanks :)
<az1[m]>
However I think probe-rs sets defmt channels to block by default.
<az1[m]>
You can change that behavior on the command line.
sroemer has joined #rust-embedded
<thejpster[m]>
Yeah that .gnu.sgstubs thing is an LLD issue. arm-none-eabi-ld is happy with the script as written.
<diondokter[m]>
Yup, I had discovered that in the past as well 🙃
<thejpster[m]>
ugh
<thejpster[m]>
is this an LLD bug?
gkoebel has quit [Read error: Connection reset by peer]
gkoebel has joined #rust-embedded
gkoebel has joined #rust-embedded
gkoebel has quit [Changing host]
RobinMueller[m] has joined #rust-embedded
<RobinMueller[m]>
Hi!
<RobinMueller[m]>
I recently created a workshop with the intention to teaching Embedded Rust + embassy to students and employees at my workplace using a micro:bit v2. feedback so far was very positive, and everything is open source :)