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
adamgreig[m] has joined #rust-embedded
<adamgreig[m]> <huszty[m]> "Hi! I am doing a project on an..." <- you'll probably find load/store are ok but other atomic operations are not, because they use the arm ldrex/strex operations
<adamgreig[m]> in armv7m, those operations "must be performed only on memory with the Normal memory attribute" says the architecture reference manual, and the stm32h7 reference manual says the FMC SDRAM banks are "device memory"
<adamgreig[m]> so yea, I think the fault is expected if annoying, because atomic operations on device memory in theory aren't supported
sroemer has joined #rust-embedded
sroemer has quit [Quit: WeeChat 4.3.4]
sroemer has joined #rust-embedded
sroemer has quit [Changing host]
sroemer has joined #rust-embedded
sroemer has quit [Client Quit]
sroemer has joined #rust-embedded
sroemer has joined #rust-embedded
sroemer has quit [Changing host]
<sroemer> quit
<sroemer> quit
sroemer has quit [Quit: WeeChat 4.3.4]
sroemer has joined #rust-embedded
sroemer has quit [Quit: WeeChat 4.3.4]
sroemer has joined #rust-embedded
sroemer has quit [Quit: WeeChat 4.3.4]
sroemer has joined #rust-embedded
cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #rust-embedded
VaradShinde[m] has joined #rust-embedded
<VaradShinde[m]> I am trying to run a loop function which receives continuous CAN data from motor , but when i start the motor, the program seems to hang up , is there any particular thing i should be looking for , the code is similar to this : stm32f4xx-hal/examples/can-send.rs at master · stm32-rs/stm32f4xx-hal (github.com)
<VaradShinde[m]> with some calculations in between inside the loop. Any help is appreciated.
<VaradShinde[m]> The motor and ESC are from Zubax
sroemer has quit [Ping timeout: 248 seconds]
emerent has quit [Ping timeout: 272 seconds]
emerent has joined #rust-embedded
thejpster[m] has quit [Quit: Idle timeout reached: 172800s]
thejpster[m] has joined #rust-embedded
<thejpster[m]> I’d be looking at the power rails with a scope first
<VaradShinde[m]> <thejpster[m]> "I’d be looking at the power..." <- Hi thanks for the reply, can you elaborate on the procedure if possible for this? I am really confused on how i can start off to solve the problem :(
<VaradShinde[m]> * problem :(. If you are mentioning that i should use a CAN bus analyser then i will tell you that the feed does not stop from the motor when given some RPM but the STM board does hang up at the moment i start the motor
ak79[m] has joined #rust-embedded
<ak79[m]> <VaradShinde[m]> "Hi thanks for the reply, can you..." <- I don't know the details of the board you are using, but if it has a LED, you could toggle it in your loop (e.g. every second). By that you could check if your program hang up or still runs.
<JamesMunns[m]> <VaradShinde[m]> "Hi thanks for the reply, can you..." <- I believe JP was suggesting that you look at the 5v or 3.3v power to your MCU when you turn on the motor. The suggesting is that starting or stopping the motor could cause voltage dips or spikes that could disrupt your MCU operating.
<JamesMunns[m]> s/suggesting/suggestion/
<VaradShinde[m]> <JamesMunns[m]> "I believe JP was suggesting that..." <- Yes , is there any workaround for the same if this is happening?
<thejpster[m]> A better power supply, or more bulk capacitance. If that’s your problem.
<VaradShinde[m]> <thejpster[m]> "A better power supply, or more..." <- I am sure i cant change the power supply so ig capacitance is the onl option, do you recommend any capacitance cofiguration that i can use , like an y example which i can follow?
Ralph[m] has quit [Quit: Idle timeout reached: 172800s]
DanielDuque[m] has joined #rust-embedded
<DanielDuque[m]> Hi all, I have something I want to do at home which I think is the perfect beginner project for me. I have zero experience programming a microcontroller, dealing with peripherals, etc.... (full message at <https://catircservices.org/_irc/v1/media/download/ASO9j8o1JDd00LpiBdETuHg9LcO86elWyY32tkYj7ubeOd9AOc39Icy5ncwQTxC6sjGdsVbAsY64NR3aZgs6zOlCeSpcdekQAGNhdGlyY3NlcnZpY2VzLm9yZy9xZElXZ2xkS2Fod0ZVQ0JIS2p0bVdha2c>)
rafael[m] has joined #rust-embedded
<rafael[m]> <VaradShinde[m]> "I am sure i cant change the..." <- I am working on a hobby project where i need to drive motors, too. I found this as a starting point: https://www.ti.com/lit/an/slvaft0/slvaft0.pdf?ts=1729334782861&ref_url=https%253A%252F%252Fwww.google.com%252F. There is a rule-of-thumb formula inside to estimate the capacitance required, including one example calculation.
<rafael[m]> <DanielDuque[m]> "Hi all, I have something I..." <- > <@dduque:matrix.org> Hi all, I have something I want to do at home which I think is the perfect beginner project for me. I have zero experience... (full message at <https://catircservices.org/_irc/v1/media/download/AVsqkZ1kqNd8wIyRP8C2zMdS3L16jLJmgEy8VsgAgPMmTVByd0V3pGDWau9pI86kKVpG7SCJKS2hdgLNRiwIiJRCeSpdLS6wAGNhdGlyY3NlcnZpY2VzLm9yZy9yZ2JQZUhza0dIemxGbG5JWm1iQXJUT1Q>)
<thejpster[m]> The Pi Pico also has some nice baseboards with screens and so on. Your might find something you like at pimoroni or The Pi Hut.
<VaradShinde[m]> <rafael[m]> "I am working on a hobby project..." <- Thanks man will surely look ino i
romancardenas[m] has joined #rust-embedded
<romancardenas[m]> s/requires/required/
<huayra1[m]> has embedded just given up on x86?
<huayra1[m]> is the hardware just too much?
i509vcb[m] has joined #rust-embedded
<i509vcb[m]> x86 still exists where Linux exists in embedder
<i509vcb[m]> s/embedder/embedded/
<i509vcb[m]> Although for a microcontroller, the issues are a combination of power consumption and IP
henriquegogo has joined #rust-embedded
dirbaio[m] has quit [Quit: Idle timeout reached: 172800s]
henriquegogo has quit [Ping timeout: 252 seconds]
tschundler has quit [Ping timeout: 260 seconds]
tschundler has joined #rust-embedded
ni has quit [Remote host closed the connection]