<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]