samd/boards/SAMD_GENERIC_D51xxx: Fix VFS settings for internal flash.

Fixes in this commit:
- The wrong loader script was assigned for SAMD_GENERIC_D51X20, causing the
  VFS block count to be wrong.
- Change the VFS block size from 1536 to 2048.  With the setting of 1536,
  writing more that 1536 bytes at once failed.  This applies to
  SAMD_GENERIC_D51X19 and SAMD_GENERIC_D51X20.  No other SAMD51 board uses
  the internal flash for the file system.

Signed-off-by: robert-hh <robert@hammelrath.com>
This commit is contained in:
robert-hh 2025-04-15 16:57:53 +02:00 committed by Damien George
parent ff9e01782b
commit c22c2c8066
2 changed files with 3 additions and 5 deletions

View file

@ -1,13 +1,11 @@
MCU_SERIES = SAMD51
CMSIS_MCU = SAMD51P20A
LD_FILES = boards/samd51x19a.ld sections.ld
LD_FILES = boards/samd51x20a.ld sections.ld
TEXT0 = 0x4000
# The ?='s allow overriding in mpconfigboard.mk.
# MicroPython settings
# The size of a MCU flash filesystem will be
# 1008k - MICROPY_HW_CODESIZE - MICROPY_HW_VFSROMSIZE
# 1008k - MICROPY_HW_CODESIZE
# The default for MICROPY_HW_VFSROMSIZE is 64K
MICROPY_HW_CODESIZE ?= 752K
MICROPY_HW_VFSROMSIZE ?= 128K

View file

@ -23,7 +23,7 @@ unsigned long trng_random_u32(void);
#define MICROPY_FATFS_MAX_SS (4096)
#define MICROPY_FATFS_LFN_CODE_PAGE 437 /* 1=SFN/ANSI 437=LFN/U.S.(OEM) */
#define VFS_BLOCK_SIZE_BYTES (1536) //
#define VFS_BLOCK_SIZE_BYTES (2048) //
#ifndef MICROPY_HW_UART_TXBUF
#define MICROPY_HW_UART_TXBUF (1)