Skip to content

Conversation

bogdanarduino
Copy link
Contributor

@bogdanarduino bogdanarduino commented Aug 27, 2025

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.

…nd they were outputting wrong voltages, now this has been fixed.
@bogdanarduino bogdanarduino requested a review from pennam August 27, 2025 08:53
@CLAassistant
Copy link

CLAassistant commented Aug 27, 2025

CLA assistant check
All committers have signed the CLA.

@sebromero
Copy link
Contributor

@bogdanarduino Could you please add in the code a paragraph explaining why this sequence of commands is necessary?

@pennam
Copy link
Collaborator

pennam commented Aug 27, 2025

also drop 5061933 we will re add it at the time we will make a new release

@bogdanarduino bogdanarduino force-pushed the AE-591_configure_correctly_the_SW1_and_SW3_PMIC_output_rails branch from 5061933 to 4b22633 Compare August 28, 2025 10:09
Copy link
Contributor

@sebromero sebromero left a 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.

data[1]=0x7;
i2c.write(8 << 1, data, sizeof(data));

// SW1 to 3.0V (SW1_VOLT)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// SW1 to 3.0V (SW1_VOLT)
// SW1 turn on (turned off by OTP settings) (SW1_CTRL)

Copy link
Contributor Author

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.

bogdanarduino and others added 3 commits September 2, 2025 13:34
Co-authored-by: Sebastian Romero <s.romero.zh@gmail.com>
Copy link
Contributor

@sebromero sebromero left a 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

bogdanarduino and others added 2 commits September 2, 2025 15:56
Co-authored-by: Sebastian Romero <s.romero.zh@gmail.com>
Co-authored-by: Sebastian Romero <s.romero.zh@gmail.com>
Copy link
Contributor

@sebromero sebromero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sebromero sebromero merged commit 69a7c18 into main Sep 2, 2025
1 check passed
@sebromero sebromero deleted the AE-591_configure_correctly_the_SW1_and_SW3_PMIC_output_rails branch September 2, 2025 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants