SanchayanMaity has quit [Server closed connection]
SanchayanMaity has joined #rust-embedded
cr1901_ has joined #rust-embedded
cr1901 has quit [Ping timeout: 260 seconds]
IlPalazzo-ojiisa has joined #rust-embedded
<re_irc>
<@monacoprinsen:matrix.org> Hey guys,
<re_irc>
I have created a group on LinkedIn for embedded Rust.
<re_irc>
Also any moderators here are welcome to be admins in that group.
<re_irc>
Is it ok to use the logo for this group?
<re_irc>
I think it is a great way of promoting and encouraging the use of Rust in embedded systems for professionals.
m5zs7k has quit [Ping timeout: 246 seconds]
<re_irc>
<@monacoprinsen:matrix.org> * from
m5zs7k has joined #rust-embedded
starblue1 has quit [Ping timeout: 240 seconds]
starblue1 has joined #rust-embedded
kenny has quit [Ping timeout: 250 seconds]
kenny has joined #rust-embedded
emerent has quit [Ping timeout: 246 seconds]
emerent has joined #rust-embedded
<re_irc>
<@ryan-summers:matrix.org> : I actually do not think it's okay to use the logo on linkedin because of copyright allowance on the Rust logo
<re_irc>
<@ryan-summers:matrix.org> Only "officially sanctioned" working groups are allowed to use it. I know there was some discussion on this about the rust-embedded-community a while back
<re_irc>
<@jamesmunns:beeper.com> : not a lawyer, but you can probably _use_ the logo, when talking about the language, but probably not when "acting as"
<re_irc>
<@ryan-summers:matrix.org> Because usage of the rust-embedded logo on linkedin may cause a user to think that linked in group is formally part of the rust foundation
<re_irc>
<@jamesmunns:beeper.com> so like, making a post with the logo in it, probably fine
<re_irc>
<@jamesmunns:beeper.com> making it your profile photo and making "the rust embedded linkedin group" is probably not okay, imo
<re_irc>
<@jamesmunns:beeper.com> (unless the embedded wg IS running it, like the twitter/cohost/masto accounts)
<re_irc>
<@diondokter:matrix.org> Yeah, I know, but it seems the trademark is incompatible with making the rust embedded WG logo be CC-BY which states that you can do pretty much anything with it as long as it is attributed
<re_irc>
<@ryan-summers:matrix.org> That's for art, not for representing identity
<re_irc>
<@ryan-summers:matrix.org> i.e. use it all you want, but don't use it to indicate you could be a formal member of the rust foundation (or sanctioned thereof)
<re_irc>
<@diondokter:matrix.org> Hmmmm... Well I'm not a lawyer either, so 🤷♂️
<Shell>
CC-BY explicitly states that "Patent and trademark rights are not licensed under this Public License."
<re_irc>
<@diondokter:matrix.org> Ah!
<re_irc>
<@diondokter:matrix.org> Maybe it's good I'm not a lawyer because apparently I can't read :P
<re_irc>
<@jamesmunns:beeper.com> Yeah, the rewg logo has two "dependencies", the artwork of the person who designed it, granted to us under cc-by, and the written permission of the foundation, to use the rust logo as a derivative work
<re_irc>
<@jamesmunns:beeper.com> that's how the re-c logo works: it's a derivative of the rewg logo, but using ferris (public domain) instead of the rust sprocket logo
Foxyloxy_ has joined #rust-embedded
Foxyloxy has quit [Ping timeout: 250 seconds]
<re_irc>
<@monacoprinsen:matrix.org> Thanks for all the response guys!
<re_irc>
It is obviously a tricky question...
<re_irc>
It seems like the correct choice is to use another logo.
<re_irc>
Anyways feel free to join, share and let me know if some of you want to help as admins.
<re_irc>
<@ryan-summers:matrix.org> I would imagine the rust-embedded-community wouldn't have issue with you using that logo. I think made it?
<re_irc>
<@eldruin:matrix.org> from my side, feel free to use the rust-embedded-community logo
<re_irc>
<@eldruin:matrix.org> I would rather advise against using the rust logo
fooker has quit [Ping timeout: 255 seconds]
<re_irc>
<@Ablu:matrix.org> How do I correctly set the sysroot of the linker when cross-compiling? "CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER" only seems to allow me to set the executable, but no args?
fooker has joined #rust-embedded
<re_irc>
<@fuse117:matrix.org> this is probably a basic question, but how do i switch between panic handlers for different build profiles? i want to use "panic-reset" and "panic-rtt-target" at times during development. im not sure how to do this. i keep hitting duplicate lang item panic-impl errors
<re_irc>
<@diondokter:matrix.org> I'm not sure that's possible...
<re_irc>
What would work is if you created your own panic handler. That's what I do most of the time anyways
<re_irc>
<@jamesmunns:beeper.com> Yeah, feature flags should work, I think I've done that for panic-defmt and panic-reset.
<re_irc>
<@jamesmunns:beeper.com> If you ARE using features, and seeing duplicate lang items, you maybe have dependencies that are activating one accidentally
<re_irc>
<@jamesmunns:beeper.com> (or other feature resolver problems)
kenny has quit [Ping timeout: 250 seconds]
kenny has joined #rust-embedded
<re_irc>
<@fuse117:matrix.org> it is not possible to override default features, correct?
<re_irc>
<@jamesmunns:beeper.com> you can set "default-features = false"
<re_irc>
<@jamesmunns:beeper.com> and then add back any features you need
<re_irc>
<@datdenkikniet:matrix.org> I may or may not have accidentally pushed updating smoltcp (and force pushed to get rid of it again)
<re_irc>
<@datdenkikniet:matrix.org> would appreciate not having to facepalm so hard next time because I make dumb mistakes that no automagic can help me fix :P
<re_irc>
<@dirbaio:matrix.org> whoopsie :D
limpkin has quit [Server closed connection]
limpkin has joined #rust-embedded
<re_irc>
<@htms:matrix.org> Hi, does someone successfully use low power modes with Rust? I have 600 uA current while expected value is much lower on STM32L451. Code:
<re_irc>
use cortex_m::asm;
<re_irc>
use cortex_m_rt::entry;
<re_irc>
use stm32l4xx_hal::{prelude::*, pwr};
<re_irc>
#[entry]
<re_irc>
fn main() -> ! {
<re_irc>
let mut cp = stm32l4xx_hal::pac::CorePeripherals::take().unwrap();
<re_irc>
let mut dp = stm32l4xx_hal::pac::Peripherals::take().unwrap();
<re_irc>
let mut pwr = dp.PWR.constrain(&mut rcc.apb1r1);
<re_irc>
let mut flash = dp.FLASH.constrain();
<re_irc>
let clocks = rcc.cfgr.sysclk(80.MHz()).freeze(&mut flash.acr, &mut pwr);
<re_irc>
cp.SCB.set_sleepdeep();
<re_irc>
cp.SYST.disable_interrupt();
<re_irc>
asm::dsb();
<re_irc>
loop {
<re_irc>
asm::wfi();
<re_irc>
}
<re_irc>
}
<re_irc>
<@htms:matrix.org> Hi, does someone successfully use low power modes with Rust? I have 600 uA current while expected value is much lower on STM32L451. Code:
<re_irc>
use cortex_m::asm;
<re_irc>
use cortex_m_rt::entry;
<re_irc>
use stm32l4xx_hal::{prelude::*, pwr};
<re_irc>
#[entry]
<re_irc>
fn main() -> ! {
<re_irc>
let mut cp = stm32l4xx_hal::pac::CorePeripherals::take().unwrap();
<re_irc>
let mut dp = stm32l4xx_hal::pac::Peripherals::take().unwrap();
<re_irc>
let mut pwr = dp.PWR.constrain(&mut rcc.apb1r1);
<re_irc>
let mut flash = dp.FLASH.constrain();
<re_irc>
let clocks = rcc.cfgr.sysclk(80.MHz()).freeze(&mut flash.acr, &mut pwr);
<re_irc>
cp.SCB.set_sleepdeep();
<re_irc>
cp.SYST.disable_interrupt();
<re_irc>
asm::dsb();
<re_irc>
loop {
<re_irc>
asm::wfi();
<re_irc>
}
<re_irc>
}
<re_irc>
<@htms:matrix.org> +Did I forget something?
<re_irc>
<@dirbaio:matrix.org> I believe in stm32 you have to touch some RCC bits to enter low power modes, switching off the high-frequency clocks. jsut "wfi" is not enough.
<re_irc>
<@dirbaio:matrix.org> * just
dc740 has joined #rust-embedded
<re_irc>
<@firefrommoonlight:matrix.org> There are various modes that depend on the model.
<re_irc>
<@firefrommoonlight:matrix.org> Look for things like Sleep, Stop, and Shutdown