Edit start
was able to fix this problem in the codebase and added a merge request:
Edit end
Unfortunately, that opens another problem. The diybms halts after powering up
I (11) diybms:
_ __
_| o |_) |\/| (_
(_| | \/ |_) | | __)
/
CONTROLLER - ver:602ce5a0584cb03703265cc88c7d57bb83c8cf4a compiled 2022-11-13T19:47:07.326Z
ESP32 Chip model = 1, Rev 1, Cores=2, Features=50
I (26) diybms-hal: Configure I2C
I (28) diybms-hal: Scanning i2c bus
I (34) diybms-hal: Found i2c device at address 0x21
I (44) diybms-hal: Found TCA6416A
D (45) diybms: Configure VSPI
I (46) diybms: ** Controller changed state from Unknown to PowerUp **
[ 52][E][esp32-hal-gpio.c:95] __pinMode(): Invalid pin selected
E (53) gpio: gpio_set_level(226): GPIO output gpio_num error
[ 63][E][esp32-hal-gpio.c:95] __pinMode(): Invalid pin selected
E (64) gpio: gpio_set_level(226): GPIO output gpio_num error
[ 74][E][esp32-hal-gpio.c:95] __pinMode(): Invalid pin selected
I (430) diybms-hal: CAN driver installed. Filter=1621098496 Mask=6291455
I (431) diybms-hal: CAN driver started
./components/esp_littlefs/src/littlefs/lfs.c:1071:error: Corrupted dir pair at {0x0, 0x1}
E (438) esp_littlefs: mount failed, (-84)
E (441) esp_littlefs: Failed to initialize LittleFS
[ 450][E][LittleFS.cpp:94] begin(): Mounting LittleFS failed! Error: -1
E (452) diybms: LittleFS mount failed, did you upload file system image?
E (459) diybms: SYSTEM HALTED