-
-
Notifications
You must be signed in to change notification settings - Fork 7
Ae 591 configure correctly the sw1 and sw3 pmic output rails #43
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
Ae 591 configure correctly the sw1 and sw3 pmic output rails #43
Conversation
…nd they were outputting wrong voltages, now this has been fixed.
@bogdanarduino Could you please add in the code a paragraph explaining why this sequence of commands is necessary? |
also drop 5061933 we will re add it at the time we will make a new release |
5061933
to
4b22633
Compare
…roduced PMIC configuration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check my suggestions. Since we have to turn off SW2 to change the voltage but not SW1, I conclude that SW2 is on by OTP and SW1 off.
app/power/power.cpp
Outdated
data[1]=0x7; | ||
i2c.write(8 << 1, data, sizeof(data)); | ||
|
||
// SW1 to 3.0V (SW1_VOLT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// SW1 to 3.0V (SW1_VOLT) | |
// SW1 turn on (turned off by OTP settings) (SW1_CTRL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed suggested change, without the OTP mention, since the rail was turned off by prior commands and not via the OTP config.
Co-authored-by: Sebastian Romero <s.romero.zh@gmail.com>
…rails' of https://github.com/arduino/mcuboot-arduino-stm32h7 into AE-591_configure_correctly_the_SW1_and_SW3_PMIC_output_rails
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see the suggestions for the register names
Co-authored-by: Sebastian Romero <s.romero.zh@gmail.com>
Co-authored-by: Sebastian Romero <s.romero.zh@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Changed I2C command sequence in "power.cpp" to correctly configure SW1 (3V1) and SW2 (3V3) PMIC output voltages during bootloader start-up. Detailed context of the original issue and need for the fixed can be found under https://arduino.atlassian.net/browse/AE-591.