Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

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.

 

Newest Forum Posts

  1. Монтаж камина с грилем в Москве - установка и барбекю by KpddomErorb, 2025-05-10 18:28
  2. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  9. Build a project in "release" mode by tang, 2025-02-20 10:36
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35

Last-Modified Blogs