STM32 HAL LittleFS

From Stm32World Wiki
Revision as of 01:09, 21 June 2021 by Lth (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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
}