albus_dandelion[ has quit [Quit: Idle timeout reached: 172800s]
sroemer has joined #rust-embedded
<tiwalun[m]>
I'm trying to compile for riscv32emc, should I be able to do this using the stable release now? The release notes for 1.83 mention that riscv32emc is now a tier 3 target.
<tiwalun[m]>
But when I try to add it using `rustup target add riscv32emc-unknown-none-elf`, I only get an error that it's not available.
vollbrecht[m] has joined #rust-embedded
<vollbrecht[m]>
tiwalun[m]: Tier3 targets are not part of rust stable releases, e.g you need to have a nightly compiler.
ivmarkov[m] has joined #rust-embedded
<ivmarkov[m]>
vollbrecht[m]: `riscv32emc-unknown-none-elf` is Tier 2 in the meantime, no?
<tiwalun[m]>
Also nightly doesn't seem to have it:
<tiwalun[m]>
`error: toolchain 'nightly-aarch64-apple-darwin' does not support target 'riscv32emc-unknown-none-elf'; did you mean 'riscv32imc-unknown-none-elf'?`
<M9names[m]>
rv32e is rv32i, but with only half the number of registers
<ivmarkov[m]>
OK, then my bad, this is as vollbrecht either Tier 3 or not available in your nightly at all. So you neded to use -Zbuild-std, if it is even available in your nightly
<ivmarkov[m]>
* as vollbrecht says either Tier
<ivmarkov[m]>
* OK, then my bad, this is as vollbrecht says either Tier 3 or not available in your nightly at all. So you need to use -Zbuild-std, if it is even available in your nightly
<M9names[m]>
i recommend using a ch32v003 project as a starting point, it's rv32ec so what works for that should work for you too.
<tiwalun[m]>
I have a working setup with a custom target json, I was hoping that I could get it of it :(
<tiwalun[m]>
s/it/rid/
<JamesMunns[m]>
tiwalun[m]: if you (and maybe a +1) are willing to be a target maintainer, you can likely propose to promote the rv32emc target to tier 2.
barafael[m] has quit [Quit: Idle timeout reached: 172800s]
<tiwalun[m]>
I think I didn't really understand the tier 3 part, but it seems that at least now I don't need my json file anymore, but I can just use build-core and specify the target, and it works. So at least the target definition is now part of the compiler.
Ralph[m] has quit [Quit: Idle timeout reached: 172800s]
rafael[m] has quit [Quit: Idle timeout reached: 172800s]
elpiel[m] has quit [Quit: Idle timeout reached: 172800s]
fisch02 has quit [Quit: Client closed]
davidmpye[m] has joined #rust-embedded
<davidmpye[m]>
Is there a way for an embassy task to self terminate? I've got one which tries to initialise an i2c peripheral, and it it is there it continues to work with it. But if the peripheral isn't present, I'd like the task to self terminate
<davidmpye[m]>
I appreciate I could try to initialise the peripheral in main and only spawn the task after it has been proven to exist
<dirbaio[m]>
davidmpye[m]: to self-terminate the task can simply return. when it returns it'll stop doing things.
<davidmpye[m]>
I'd defined all my tasks to not return ie ! . I'd assumed that was required but I'm guessing not! Simpler than I'd thought....
birdisword has quit [Ping timeout: 252 seconds]
AlexandrosLiarok has quit [Quit: Idle timeout reached: 172800s]
rom4ik has quit [Quit: bye]
sroemer has quit [Quit: WeeChat 4.4.2]
rom4ik has joined #rust-embedded
berkus[m] has quit [Quit: Idle timeout reached: 172800s]
crabbedhaloablut has quit []
crabbedhaloablut has joined #rust-embedded
thejpster[m] has quit [Quit: Idle timeout reached: 172800s]