cancel
Showing results for 
Search instead for 
Did you mean: 

[STM32CubeProgrammer]How to upgrade the system partially by cube programmer?

Kin
Associate

Hi Sir,

     I am working with the STM32CubeProgrammer to fully upgrade my STM32MP157 MPU system, but I would like to ask how to partially upgrade the system?

     For example, the BOOT paritition and the ROOTFS partition has not been changed very frequently, all the focus will be on the changes happen in the USERFS paritition.

     So with the STM32CubeProgrammer, how can I just upgrade the USERFS partition? Or how can I upgrade the partition I want instead of doing the full upgrade?

2 REPLIES 2
Pwxn
ST Employee

Hello,

 

You can modify your tsv file to adapt which partition you want to update. 

You can refer to this wiki page : https://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer_flashlayout#Field1-_Options

You could also get inspired by the dd and scp command to update part of OSTL like the kernel, uboot... https://wiki.stmicroelectronics.cn/stm32mpu/wiki/How_to_cross-compile_with_the_Developer_Package

 

Regards,

Hi Pwxn

    Thanks for the information.

    I prefer to adapt to the STM32CubeProgammer, so I checked the "2.2. Field1: Options".

    The partitions, which doesn't need to be updated, are marked as "PE" in the .tsv file.

    Then the STM32CubeProgammer will just modified other partitions except the "PE" ones.

    So we have a way for the partial update of the system.

 

     And I have done the following test with the STM32CubeProgammer

     Insteading of being marked as "PE" in the .tsv file, the partitions, which doesn't need to be updated, will not be written in the .tsv file, and in the .tsv file, only partitions that need to be updated are written and marked as "P".

     But if I do it this way, the GPT will be modified on my system.

 

     My expectation is the GPT is not changed, only the partitions that needed to be updated are changed.

     But it seems, all the partitions must be written in the .tsv file and the partition files (.ext4 file in my case) must be present even though some of them are not need for the update (marked as "PE" in the .tsv file).

 

     So I would like to ask if we can:

     1. delete all the information about the unwanted paritions from the .tsv file and delete the partition files related to the unwanted partitions?

      2. tell the STM32CubeProgammer not to change the GPT while updating the partition that we want?

      Can we do the partial update in this way?

      Thanks.