Difference between revisions of "STM32 HAL LittleFS"
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
{ | { | ||
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K | RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K | ||
− | FLASH | + | FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 512K |
} | } | ||
</pre> | </pre> |
Latest revision as of 01:09, 21 June 2021
This page contains some notes getting LittleFS running using parts of the internal flash memory. For now this will be targeting Black Pill boards with the STM32F411 MCU.
Modifying Linker Script
The linker script
STM32F411CEUX_FLASH.ld
defines the layout of the memory - both flash and ram of the STM32F411 MCU. At the beginning is:
/* Memories definition */ MEMORY { RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 512K }