Skip to content

Commit f8499a4

Browse files
committed
Remove filesystem from linker script.
1 parent 570353b commit f8499a4

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

ports/stm/boards/STM32F411_nvm_flash.ld renamed to ports/stm/boards/STM32F411_nvm_nofs.ld

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
/*
2-
GNU linker script for STM32F411 with nvm and an external flash chip, and reserves
3-
more space for the CircuitPython firmware and less for the filesystem
4-
(since the filesystem will be on the external flash chip).
2+
GNU linker script for STM32F411 with nvm and an external flash chip.
3+
No space is reserved for a filesystem.
54
*/
65

76
/* Specify the memory areas */
87
MEMORY
98
{
109
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 512K /* entire flash */
1110
FLASH_ISR (rx) : ORIGIN = 0x08000000, LENGTH = 16K /* sector 0 */
12-
FLASH_FS (rx) : ORIGIN = 0x08004000, LENGTH = 32K /* sectors 1,2 are 16K */
13-
FLASH_NVM (rwx) : ORIGIN = 0x0800C000, LENGTH = 16K /* sector 3 is 16K */
14-
FLASH_FIRMWARE (rx) : ORIGIN = 0x08010000, LENGTH = 448K /* sector 4 is 64K, sectors 5,6,7 are 128K */
11+
FLASH_NVM (rwx) : ORIGIN = 0x08004000, LENGTH = 16K /* sector 1 is 16K */
12+
FLASH_FIRMWARE (rx) : ORIGIN = 0x08008000, LENGTH = 480K /* sector 2,3 is 16k, sector 4 is 64K, sectors 5,6,7 are 128K */
1513
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
1614
}
1715

ports/stm/boards/thunderpack_v12/mpconfigboard.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828

2929
// Non-volatile memory config
3030
#define CIRCUITPY_INTERNAL_NVM_SIZE (0x4000)
31-
#define CIRCUITPY_INTERNAL_NVM_START_ADDR (0x0800C000)
32-
#define CIRCUITPY_INTERNAL_NVM_SECTOR FLASH_SECTOR_3
31+
#define CIRCUITPY_INTERNAL_NVM_START_ADDR (0x08004000)
32+
#define CIRCUITPY_INTERNAL_NVM_SECTOR FLASH_SECTOR_1
3333
#define NVM_BYTEARRAY_BUFFER_SIZE 512
3434

3535
// Flash config

ports/stm/boards/thunderpack_v12/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ MCU_VARIANT = STM32F411xE
1818
MCU_PACKAGE = UFQFPN48
1919

2020
LD_COMMON = boards/common_nvm.ld
21-
LD_FILE = boards/STM32F411_nvm_flash.ld
21+
LD_FILE = boards/STM32F411_nvm_nofs.ld

0 commit comments

Comments
 (0)