On Mon, Apr 3, 2023 at 10:54 AM Peter Maydell <peter.maydell@linaro.org
<mailto:peter.maydell@linaro.org>> wrote:
On Mon, 3 Apr 2023 at 13:51, Lucas Villa Real <lucasvr@gmail.com
<mailto:lucasvr@gmail.com>> wrote:
>
> stm32vldiscovery comes with 8KB of SRAM, which may be too low when
> running some workloads on QEMU. The command line argument "-m
mem_size"
> is not recognized by the current implementation, though, so one
cannot
> easily override the default memory size.
>
> This patch fixes that by adding a memory subregion according to the
> value provided on that command line argument. If absent, the default
> value of 8KB still applies.
>
> Signed-off-by: Lucas Villa Real <lucas@osdyne.com
<mailto:lucas@osdyne.com>>
Does the real hardware have (options for) more than 8K of SRAM here ?
thanks
-- PMM
Yes, it's possible to add more (p)SRAM via the STM32F10xxx's FSMC
(flexible static memory controller). The new memory is mapped to FSMC
bank 1 at 0x6000_0000, though (as opposed to the embedded SRAM's fixed
address at 0x2000_0000), as I have now realized. I'm happy to send an
updated patch so that "-m mem_size" creates a memory subregion at
0x6000_0000 instead.
Best regards,
Lucas