Skip to content

Commit bc606d9

Browse files
committed
memory/smarteeprom: skip initialization reboot during factorysetup
During factorysetup, we don't do any smarteeprom read/writes, but the reboot is messing with RTT by initializing it twice.
1 parent 526de5c commit bc606d9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/memory/smarteeprom.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <inttypes.h>
2020
#include <memory/memory.h>
2121
#include <memory/nvmctrl.h>
22+
#include <platform/platform_config.h>
2223
#include <screen.h>
2324
#include <stdint.h>
2425
#include <string.h>
@@ -101,7 +102,9 @@ void smarteeprom_bb02_config(void)
101102
*/
102103
if (!smarteeprom_is_enabled()) {
103104
smarteeprom_setup();
105+
#if FACTORYSETUP == 0
104106
reboot();
107+
#endif
105108
}
106109
NVMCTRL->SEECFG.bit.WMODE = SMARTEEPROM_WRITE_MODE_BUFFERED;
107110
if (NVMCTRL->SEESTAT.bit.LOAD != 0) {

0 commit comments

Comments
 (0)