Loading...
 

SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world. And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4.
You can get more information from the ac6-tools website and download (registration required) various documents highlighting:

System Workbench for STM32


storing Bitmap in a STM32 - STM32F407VGT6 - Discovery Board

Hello Everybody,

I need Your help.

I’m trying to store a Bitmap (320*240 in RGB565 system) inside my microcontroller STM32F407VGT6 - Discovery Board (1MB Flash, 192KB SRAM).
The bitmap is converted into .c file and inside main function is used as a variable to draw a picture on LCD by calling function to draw pixel by pixel.

But as a result displays shows nothing - in debugging program stops in interuppt “exception handling”.

Summarizing I suppose that something is wrong with too small memory size. I think the MCU stores Bitmap inside SRAM.

So my question would be - how to store it inside Flash???

PS: For picture up to 100*100 everything works correctly.

France

Hi,

Depending on how you declare your variable in the C file, it may be placed in RAM or Flash. You could check in the output.map file that is created in the Debug folder.

To place the image in flash, you should declare it as const; then it should be placed in the .rodata section that is loaded in flash instead of SRAM; there you should have ample space to save quite big images.

Bernard (Ac6)