cancel
Showing results for 
Search instead for 
Did you mean: 

Flashing Zephyr Application to External Flash on Nucleo-H7S3L8

laya
Associate

 

I am working with Zephyr RTOS on the Nucleo-H7S3L8 board and have successfully flashed and run the blinky example on internal flash.

However, I noticed that Zephyr does not provide official documentation for flashing applications into external flash.

My question:

  • Does Zephyr offer any official method or west command to flash applications directly into external flash, similar to how west flash works for internal flash?
1 ACCEPTED SOLUTION

Accepted Solutions
Erwan Gouriou
ST Employee

Please follow up on https://github.com/zephyrproject-rtos/zephyr/pull/99647

This will introduce support of building and flashing of application on external flash using MCUBoot as bootloader, similarly to what is supported on DK Board (see https://docs.zephyrproject.org/latest/boards/st/stm32h7s78_dk/doc/index.html#application-in-external-flash)

 

View solution in original post

3 REPLIES 3
Saket_Om
ST Employee

Hello @laya 

STM32CubeProgrammer is setup as the default west runner for STM32 boards supported by Zephyr. For your case you can use STM32cubeProgrammer GUI instead of west commande to flash the code in external memory. 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Saket_Om
Dor_RH
ST Employee

Hello @laya,

I suggest that you program the external memory from the internal flash. So, you will XIP from external memory, then jump to internal flash in order to program the external memory then jump back to XIP.

I hope my answer has been helpful. When your question is resolved, please mark this topic as the solution. This will help others find the answer more quickly.

Thank you for your contribution.

Best regards,
Dor_RH

 

 

Erwan Gouriou
ST Employee

Please follow up on https://github.com/zephyrproject-rtos/zephyr/pull/99647

This will introduce support of building and flashing of application on external flash using MCUBoot as bootloader, similarly to what is supported on DK Board (see https://docs.zephyrproject.org/latest/boards/st/stm32h7s78_dk/doc/index.html#application-in-external-flash)