cancel
Showing results for 
Search instead for 
Did you mean: 

STM32N6 .tsv file with application

Tuomas95
Associate III

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: 0x05

This 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!

3 REPLIES 3
Kouthair
ST Employee

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.bin

 Let me know if this works for you too.

In order 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.
Tuomas95
Associate III

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.bin

But 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!

Tuomas95
Associate III

I can flash the Appli in two stages like this:

  • Set BOOT0 to 1
  • reset MCU
  • flash FSBL with CubeProgrammer:
#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
  • reset MCU (without this the Id 0x4 of the next stage is rejected)
  • flash Appli with CubeProgrammer:
#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.bin
  • set BOOT0 to 0
  • reset MCU -> Appli runs

This is a bit of a workaround i think, and not a proper solution