starblue has joined #rust-embedded
fabic has joined #rust-embedded
starblue3 has quit [Ping timeout: 240 seconds]
<re_irc> <@y​atekii:m​atrix.org> nihal.pasham: https://github.com/probe-rs/probe-rs/pull/774 can you test this?
<re_irc> <@n​ihal.pasham:m​atrix.org> yatekii: will do (just woke up so might be a while)
<re_irc> <@y​atekii:m​atrix.org> no hurry, I should sleep since 4 hrs at least so yeah
<re_irc> <@y​atekii:m​atrix.org> will be back in 8 or so
GenTooMan has quit [Ping timeout: 250 seconds]
GenTooMan has joined #rust-embedded
<re_irc> <@n​ihal.pasham:m​atrix.org> yatekii: tested it. it works. added my results (and comments) to the PR
tokomak has joined #rust-embedded
fabic has quit [Ping timeout: 252 seconds]
cr1901 has quit [Ping timeout: 258 seconds]
<re_irc> <@y​atekii:m​atrix.org> nihal.pasham: awesome, thanks!
zBeeble has quit [Remote host closed the connection]
zBeeble has joined #rust-embedded
fabic has joined #rust-embedded
<re_irc> <@l​uojia65:m​atrix.org> We are very happy to announce Tornado-os operating system kernel, after six months of development, has reached version 0.1 🥳
<re_irc> <@l​uojia65:m​atrix.org> This kernel is written in Rust, with async/await coroutine runtime used in kernel level, like drivers and file systems. The kernel provides async/await executor directly to user level.
<re_irc> <@l​uojia65:m​atrix.org> Please star our repository: https://github.com/HUST-OS/tornado-os
GenTooMan has quit [Ping timeout: 258 seconds]
GenTooMan has joined #rust-embedded
cr1901 has joined #rust-embedded
<re_irc> <@j​amesmunns:m​atrix.org> luojia65: could you please tweet about that (and mention `@rustembedded`)? I'd love to signal boost!
<re_irc> <@j​amesmunns:m​atrix.org> (also: congrats!)
<re_irc> <@n​ihal.pasham:m​atrix.org> luojia65: quick question - is `documentation` available in english?
fabic has quit [Ping timeout: 252 seconds]
GenTooMan has quit [Ping timeout: 240 seconds]
GenTooMan has joined #rust-embedded
<re_irc> <@y​atekii:m​atrix.org> Nice Faker is working on tonado-os :D
fabic has joined #rust-embedded
GenTooMan has quit [Ping timeout: 258 seconds]
GenTooMan has joined #rust-embedded
GenTooMan has quit [Excess Flood]
GenTooMan has joined #rust-embedded
GenTooMan has quit [Excess Flood]
GenTooMan has joined #rust-embedded
fabic has quit [Ping timeout: 240 seconds]
GenTooMan has quit [Ping timeout: 240 seconds]
GenTooMan has joined #rust-embedded
fabic has joined #rust-embedded
fabic has quit [Ping timeout: 250 seconds]
tokomak has quit [Ping timeout: 252 seconds]
GenTooMan has quit [Ping timeout: 240 seconds]
GenTooMan has joined #rust-embedded
GenTooMan has quit [Ping timeout: 240 seconds]
GenTooMan has joined #rust-embedded
<re_irc> <@r​icharddodd:m​atrix.org> Quick question: EASY_DMA_SIZE was removed from embassy-nrf. What should I use instead?
GenTooMan has quit [Ping timeout: 240 seconds]
GenTooMan has joined #rust-embedded
<re_irc> <@d​irbaio:m​atrix.org> richarddodd: I think it was unintentional, when refactoring all chip-specific stuff into `chips/nrf52xxx.rs`. PRs welcome
<re_irc> <@d​irbaio:m​atrix.org> should be a simple `pub use chip::EASY_DMA_SIZE` or similar
<re_irc> <@r​icharddodd:m​atrix.org> I just did a different PR
<re_irc> <@r​icharddodd:m​atrix.org> I feel silly but i can't work out how to calculate softdevice RAM usage. Is there an easy way to work out how much RAM it will need with the default config?
<re_irc> <@r​icharddodd:m​atrix.org> Actually scrap that I'm getting `SdmIncorrectInterruptConfiguration`. Absolutely no idea why.
<re_irc> <@d​irbaio:m​atrix.org> there's no easy way to calculate RAM usage. If you give it too much / too little you'll get a warning/error saying exactly how much it needs
<re_irc> <@d​irbaio:m​atrix.org> `SdmIncorrectInterruptConfiguration` is when you have some interrupt enbled at a reserved priority level
<re_irc> <@d​irbaio:m​atrix.org> priorities 0, 1, 4 are reserved for the softdevice
<re_irc> <@d​irbaio:m​atrix.org> it may be interrupts managed by embassy-nrf, in which case make sure you have this https://github.com/embassy-rs/nrf-softdevice/blob/15d2549e63d491ef8c6fa8ab4385cedeb48fb496/examples/src/bin/ble_peripheral_onoff.rs#L128-L129
<re_irc> <@d​irbaio:m​atrix.org> or it may be interrupts you've enabled on your own, in whcih case make sure you set them to a non-reserved prio
<re_irc> <@r​icharddodd:m​atrix.org> Thanks I'll go through these. Don't know why I thought it was memory error - I probably need sleep.
<re_irc> <@r​icharddodd:m​atrix.org> Right it's probably the fact that I'm using `#[embassy::main]` rather than setting up the interrupts manually (with priority 2). I haven't check yet but sounds like that's what it is.
<re_irc> <@d​irbaio:m​atrix.org> ah yeah, default prio is 0 then
<re_irc> <@r​icharddodd:m​atrix.org> Thanks! :)
<re_irc> <@d​irbaio:m​atrix.org> you can still use a custom config with the main macro
<re_irc> <@r​icharddodd:m​atrix.org> yep changing irq prio fixed it :)
<re_irc> <@r​icharddodd:m​atrix.org> tbh writing it out manually isn't a problem - it's only a few lines of code and in exchange you get rid of macro magic
<re_irc> <@d​irbaio:m​atrix.org> yea.. macro magic is meh
<re_irc> <@r​icharddodd:m​atrix.org> Actually I can't talk - I spent a while [implementing a css parser as a proc macro](https://github.com/derekdreery/style)
<re_irc> <@d​irbaio:m​atrix.org> holy shit 🤣
<re_irc> <@r​icharddodd:m​atrix.org> I thought it worked well but it got exactly zero traction.
<re_irc> <@r​icharddodd:m​atrix.org> maybe the problem was the goal of the lib, rather than the quality
<re_irc> <@d​irbaio:m​atrix.org> fun.. it definitely seems useful for writing an SPA backed by rust+wasm... I've seen somewhere a similar macro for html-in-rust
<re_irc> <@r​icharddodd:m​atrix.org> (warning, this comment is OT and boring) the biggest problem I had was with how the lexer/tokenizer handled exponentials: most number can have arbitrary suffixes (so `2.0f32` is valid, and so is `2ff2cd`), but if you try to parse `2efc14`, say, then the lexer tries to parse an exponential (because of the `e`)...
<re_irc> ... and fails.
<re_irc> <@r​icharddodd:m​atrix.org> I was gonna have a go at refactoring the lexer, but it's a big job and I was already procrastinating from my actual work.
<re_irc> <@r​icharddodd:m​atrix.org> If you solved that problem, then you can have arbitrary alphanumeric sequences in your grammar and parse them from valid (to the tokeniser) rust source.
<re_irc> <@r​icharddodd:m​atrix.org> So hex colors, for instance, become possible
<re_irc> <@r​icharddodd:m​atrix.org> (the solution would be to push actually parsing the number past the point at which proc macros run)
<re_irc> <@h​armony:m​atrix.org> How tf do you pick a voltage regulator ic
<re_irc> <@h​armony:m​atrix.org> Need 3.7-4.2V to 3.3V with low energy loss ig
<re_irc> <@h​armony:m​atrix.org> OT:
<re_irc> <@h​armony:m​atrix.org> There are thousands
<re_irc> <@r​icharddodd:m​atrix.org> dirbaio: I did the EASY_DMA_SIZE PR you requested.
fabic has joined #rust-embedded
GenTooMan has quit [Ping timeout: 252 seconds]