-
Notifications
You must be signed in to change notification settings - Fork 584
Feat h7 current sensing #460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
askuric
commented
Mar 19, 2025
- This PR adds the low-side current sensing for H7 boards.
- There are some cleanups of the driver code as well, minimal though
- The current sensing does not work with portenta for the moment - did not have on me at the moment so I could not really test the MBED integration properly.
- Also I've added portenta and a few other MBED boards to the compile CI
…into feat_h7_current_sensing
…' into feat_h7_current_sensing
H7 low-side is working, I've tested it with the SimpleFOCMini v2. I did find something strange though. In the case where the repetition counter is handled in the software (in the interrupt handler) where we count and use every second measurement, for H7 we have to start from the 2nd call of the interrupt while the other architectures were starting from the 1st call. There is a shift of one interrupt call. I am not sure where does it come from. We need to investigate this! Here is the code for h7: Arduino-FOC/src/current_sense/hardware_specific/stm32/stm32h7/stm32h7_mcu.cpp Lines 146 to 149 in 302719c
And for g4: Arduino-FOC/src/current_sense/hardware_specific/stm32/stm32g4/stm32g4_mcu.cpp Lines 158 to 161 in 302719c
|