2026-02-24 7:10 AM
Hello,
What is the correct layout for the .tsv file for the STM32N6 with application?
In this tutorial the FlashLayout.tsv is shown, however it only has the FSBL program in it. I cannot figure out what Id to use for the Appli (also Appli non secure), i tried 0x05 but i get error:
Error: unable to get the associate alternate setting of partition ID: 0x 5
Error: please make sure that your alternate settings have string descriptors with the right format
Error: unable to switch to partition with index: 0x05This document describes the Id's but i don't think that any of them apply, and the document is for the MPU's anyway.
Thanks!
2026-02-25 2:17 AM - edited 2026-02-25 2:18 AM
Hello there @Tuomas95,
I have followed the tutorial with the following .tsv setup and I got it to run successfully:
#Opt Id Name Type IP Offset Binary
P 0x1 fsbl-openbl Binary none 0x0 OpenBootloader_STM32N6570-DK-trusted.stm32
P 0x3 fsbl-extfl Binary none 0x0 MX66UW1G45G_STM32N6570-DK-OBL.bin
P 0x4 fsbl-app Binary nor0 0x0000000 GPIO_IOToggle_FSBL_Trusted.binLet me know if this works for you too.
2026-02-25 2:48 AM
Hello @Kouthair
That works, however what if i also have Application in addition to FSBL? I think that is should then be something like this:
#Opt Id Name Type IP Offset Binary
P 0x1 fsbl-openbl Binary none 0x0 OpenBootloader_STM32N6570-DK-trusted.stm32
P 0x3 fsbl-extfl Binary none 0x0 MX25UM51245G_STM32N6570-NUCLEO.stldr
P 0x4 fsbl-app Binary nor0 0x0000000 GPIO_IOToggle_FSBL_Trusted.bin
P 0x5 appli-app Binary nor0 0x0100000 GPIO_IOToggle_Appli_Trusted.binBut i cannot find any documentation for what Id to use for the appli-app? With the above .tsv it writes the fsbl-openbl, fsbl-extfl and fsbl-app correctly, and then fails in appli-app. I have tried with various Id values, but i always get the error:
Error: unable to get the associate alternate setting of partition ID: 0x 5
Error: please make sure that your alternate settings have string descriptors with the right format
Error: unable to switch to partition with index: 0x05
Thanks!
2026-03-02 5:10 AM
I can flash the Appli in two stages like this:
#Opt Id Name Type IP Offset Binary
P 0x1 fsbl-openbl Binary none 0x0 OpenBootloader_STM32N6570-DK-trusted.stm32
P 0x3 fsbl-extfl Binary none 0x0 MX25UM51245G_STM32N6570-NUCLEO.stldr
P 0x4 fsbl-app Binary nor0 0x0000000 GPIO_IOToggle_FSBL_Trusted.bin#Opt Id Name Type IP Offset Binary
P 0x1 fsbl-openbl Binary none 0x0 OpenBootloader_STM32N6570-DK-trusted.stm32
P 0x3 fsbl-extfl Binary none 0x0 MX25UM51245G_STM32N6570-NUCLEO.stldr
P 0x4 appli-app Binary nor0 0x0100000 GPIO_IOToggle_Appli_Trusted.binThis is a bit of a workaround i think, and not a proper solution