Workaround for POS (Power on self-test) failure messages(s) not output on "native" USB connect.

Fixed handling of NVS buffer allocation, size was not increased as expected when physical NVS is capable of holding more than 2 Kbytes.
This could lead to POS failure or plugins not initializing when a large tool table is configured.
This commit is contained in:
Terje Io
2025-10-23 10:40:01 +02:00
parent ba222d16aa
commit 720f6bd552
7 changed files with 157 additions and 77 deletions

7
nvs.h
View File

@@ -30,6 +30,13 @@ Minimum 1024 bytes required, more if > 5 axes enabled, space for driver and/or p
#define NVS_SIZE 2048
#endif
#ifndef NVS_SIZE_MAX
/*! \brief Max size in bytes of the NVS buffer in RAM.
Must be >= NVS_SIZE.
*/
#define NVS_SIZE_MAX 4096 // Limit to 4K for now
#endif
//! Number of bytes used for storing CRC values. Do not change this!
#ifndef NVS_CRC_BYTES
#define NVS_CRC_BYTES 2