Search found 4 matches

by nikol900
Mon Feb 15, 2021 9:59 am
Forum: Development of MicroPython
Topic: STM32 Increasing Stack, Heap and/or Filesystem size
Replies: 13
Views: 48827

Re: STM32 Increasing Stack, Heap and/or Filesystem size

This is a bit complicated because of the variable-sized flash blocks. It will require some changes to stm32/flash.c and stm32/flashbdev.c yes, I got it already. I decided to expand FlashFS by 128Kb (sector 5) the scheme in "stm32f405.ld" is as follows: FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 102...
by nikol900
Mon Feb 15, 2021 7:29 am
Forum: Development of MicroPython
Topic: STM32 Increasing Stack, Heap and/or Filesystem size
Replies: 13
Views: 48827

Re: STM32 Increasing Stack, Heap and/or Filesystem size

I don't see where you're defining _sstack, but what it looks like is happening is that you're now making the heap use the entire SRAM1+SRAM2 (after ebss), which means it will collide with the stack. I imagine this will look like it's working until it doesn't. 0x20020000 is the same as ORIGIN(RAM) +...
by nikol900
Fri Feb 12, 2021 5:26 am
Forum: Development of MicroPython
Topic: STM32 Increasing Stack, Heap and/or Filesystem size
Replies: 13
Views: 48827

Re: STM32 Increasing Stack, Heap and/or Filesystem size

The heap is limited by the available RAM. The default configuration uses all available RAM (left over after .bss and .data). The only exception is that the CCM is reserved for the block cache. Making that available to the heap would require supporting multiple non-contiguous regions, but isn't curr...
by nikol900
Thu Feb 11, 2021 12:43 pm
Forum: Development of MicroPython
Topic: STM32 Increasing Stack, Heap and/or Filesystem size
Replies: 13
Views: 48827

Re: STM32 Increasing Stack, Heap and/or Filesystem size

STM32F405. Flash 1024K, max Flash page size 128K, SRAM1 128K, CCM 64K (non contiguous, CPU only) I plan to submit a PR for just the L475 and F405 for code review first, then update the whole STM32 family to make it easier to adjust memory allocation. There are basically four changes: Hello! I'm try...