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


How to flash QSPI-Flash of STM32F746G-Discovery, or to create a binary file for ST-LINK

Hello,

I want to execute large (over 1MB) code on STM32F746G-Discovery. So, I want to flash my code to QSPI-Flash, but I have failed.

I wrote LinkerScript.ld as


/* Specify the memory areas */
MEMORY
{
FLASH (rx)  : ORIGIN = 0x08000000, LENGTH = 1024K
RAM (xrw)  : ORIGIN = 0x20000000, LENGTH = 307K
...(snif)
QSPI_FLASH (rx)  : ORIGIN = 0x90000000, LENGTH = 4096K
EXT_RAM (xrw)  : ORIGIN = 0xC0000000, LENGTH = 8192K
}
...(snif)
.genCode :
{
. = ALIGN(4);
*/foobar.o (.text .text*) # sample name
...(snif)
. = ALIGN(4);
} >QSPI_FLASH

.genData : {
. = ALIGN(4);
*/foobar.o (.rodata .rodata*) # sample name
...(snif)
. = ALIGN(4);
} >QSPI_FLASH
...(snif)



I build binary file foobar.bin (sample name) and it’s size is 2,283,945,064 (0x88223C68) bytes. From it, I got an elf file and it’s size is 3,186,360 bytes.

I don’t know how to flash QSPI-Flash by System Workbench for STM32 and don’t know how to create a binary file for ST-Link.

What should I do?

Best Regards,
Katsuhiro Mihara

Hello Giangiacomo,

When I start my program on System Workbench’s Debug perspective, console shows text below.

> Info : flash1 ‘micron n25q128’ id = 0x18ba20 size = 16384kbytes
> Info : Padding image section 0 with 56 bytes
(...snif)

System Workbench seems to program QSPI-Flash. I should debug my program before afraid.

Thanks,
Katsuhiro Mihara

@katsuhiro_mihara are u able to find solution? Even I am facing same issue.
I push Debug button on System Workbench and System Workbench programs QSPI-Flash and start the program. System Workbench seems to be able to program QSPI-Flash of STM32F746G-Discovery.