Skip to content

Commit 1016c03

Browse files
committed
Portenta: set 3V1 rail to provide 1.5A
The ripple on that rail with low power consumption was creating issues with Bluetooth module initialization
1 parent 87ec4b4 commit 1016c03

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

variants/PORTENTA_H7_M7/variant.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,22 @@ extern "C" {
5353
}
5454
}
5555

56+
#include "drivers/I2C.h"
57+
58+
void fixup3V1Rail() {
59+
mbed::I2C i2c(PB_7, PB_6);
60+
char data[2];
61+
data[0]=0x42;
62+
data[1]=(1);
63+
i2c.write(8 << 1, data, sizeof(data));
64+
}
65+
5666
void initVariant() {
5767
RTCHandle.Instance = RTC;
5868
// Turn off LED from bootloader
5969
pinMode(PK_6, OUTPUT);
6070
digitalWrite(PK_6, HIGH);
71+
fixup3V1Rail();
6172
}
6273

6374
#ifdef SERIAL_CDC

0 commit comments

Comments
 (0)