Skip to content

Commit 5ebe873

Browse files
committed
chore(eeprom): disable for HALv2 support
EEPROM required some rework to support HALv2 driver, so disable it for now. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent ea5d860 commit 5ebe873

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

CI/build/examples/BareMinimum/BareMinimum.ino

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* It allows to test build of built-in libraries
44
* and can not be executed.
55
*/
6-
6+
#if defined(HAL_FLASH_MODULE_ENABLED)
77
#include <EEPROM.h>
8+
#endif
89
#ifndef STM32MP1xx
910
#include <IWatchdog.h>
1011
#endif
@@ -91,10 +92,11 @@ void setup() {
9192
}
9293
swSerial.end();
9394

95+
#if defined(HAL_FLASH_MODULE_ENABLED)
9496
// EEPROM
9597
byte value = EEPROM.read(0x01);
9698
EEPROM.write(EEPROM.length() - 1, value);
97-
99+
#endif
98100
#ifndef STM32MP1xx
99101
// IWDG
100102
if (!IWatchdog.isReset(true)) {

libraries/EEPROM/src/EEPROM.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
extern "C" {
2626
#include "utility/stm32_eeprom.h"
2727
}
28-
28+
#if defined(USE_HALV2_DRIVER)
29+
#error "EEPROM library is not yet compatible with HALv2 driver."
30+
#endif
2931
/***
3032
EERef class.
3133

0 commit comments

Comments
 (0)