Skip to content

Commit 8258f51

Browse files
authored
Merge pull request micropython#5061 from evildave666/blackpill-remove-nvm
remove unused nvm reserved space from stm32f411ce_blackpill_with_flash
2 parents a5d7003 + f059bab commit 8258f51

File tree

2 files changed

+27
-8
lines changed

2 files changed

+27
-8
lines changed

ports/stm/boards/STM32F411_nofs.ld

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
GNU linker script for STM32F411 without nvm and an external flash chip.
3+
No space is reserved for a filesystem.
4+
*/
5+
6+
/* Specify the memory areas */
7+
MEMORY
8+
{
9+
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 512K /* entire flash */
10+
FLASH_ISR (rx) : ORIGIN = 0x08000000, LENGTH = 16K /* sector 0 */
11+
FLASH_FIRMWARE (rx) : ORIGIN = 0x08004000, LENGTH = 496K /* sectors 1,2,3 are 16k, sector 4 is 64K, sectors 5,6,7 are 128K */
12+
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
13+
}
14+
15+
/* produce a link error if there is not this amount of RAM for these sections */
16+
_minimum_stack_size = 24K;
17+
_minimum_heap_size = 16K;
18+
19+
/* Define the top end of the stack. The stack is full descending so begins just
20+
above last byte of RAM. Note that EABI requires the stack to be 8-byte
21+
aligned for a call. */
22+
_estack = ORIGIN(RAM) + LENGTH(RAM);
23+
24+
/* RAM extents for the garbage collector */
25+
_ram_start = ORIGIN(RAM);
26+
_ram_end = ORIGIN(RAM) + LENGTH(RAM);

ports/stm/boards/stm32f411ce_blackpill_with_flash/mpconfigboard.mk

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,4 @@ MCU_VARIANT = STM32F411xE
1515
MCU_PACKAGE = UFQFPN48
1616

1717
LD_COMMON = boards/common_default.ld
18-
LD_FILE = boards/STM32F411_nvm_nofs.ld
19-
20-
# Too big for the flash
21-
CIRCUITPY_AUDIOCORE = 0
22-
CIRCUITPY_AUDIOPWMIO = 0
23-
CIRCUITPY_SYNTHIO = 0
24-
CIRCUITPY_BITMAPTOOLS = 0
25-
CIRCUITPY_VECTORIO = 0
18+
LD_FILE = boards/STM32F411_nofs.ld

0 commit comments

Comments
 (0)