2023-11-20 05:47 AM
Hi,
Using own custom board based on stm32mp151
I'm using STM32CubeProgrammer to program to nand, but I'm getting error
Error: ssbl1 (0x6): Bad size for partition 2 (ssbl1) at 0x200000 = 0xfe00000 <> 0x200000 expected
my .tsv file is
#Opt Id Name Type IP Offset Binary
- 0x01 fsbl1-boot Binary none 0x0 tf-a-stm32mp15xc-ya151c-256d-t-serialboot.stm32
- 0x03 ssbl-boot Binary none 0x0 u-boot-stm32mp15xc-ya151c-256d-t-trusted.stm32
P 0x04 fsbl Binary(2) nand0 0x00000000 tf-a-stm32mp15xc-ya151c-256d-t-serialboot.stm32
P 0x06 ssbl1 Binary nand0 0x00200000 u-boot-stm32mp15xc-ya151c-256d-t-trusted.stm32
P 0x07 ssbl2 Binary nand0 0x00400000 u-boot-stm32mp15xc-ya151c-256d-t-trusted.stm32
And the mtdparts command on u-boot
STM32MP> mtdparts
---mtdparts_init---
last_ids : nand0=nand0
env_ids : nand0=nand0
last_parts: mtdparts=nand0:2m(fsbl),2m(ssbl1),2m(ssbl2),-(UBI)
env_parts : mtdparts=nand0:2m(fsbl),2m(ssbl1),2m(ssbl2),-(UBI)
last_partition : nand0,0
env_partition : nand0,0
---list_partitions---
device nand0 <nand0>, # parts = 4
#: name size offset mask_flags
0: fsbl 0x00200000 0x00000000 0
1: ssbl1 0x00200000 0x00200000 0
2: ssbl2 0x00200000 0x00400000 0
3: UBI 0x0fa00000 0x00600000 0
--- mtd_part_info: partition number 0 for device nand0 (nand0)
active partition: nand0,0 - (fsbl) 0x00200000 @ 0x00000000
defaults:
mtdids : nand0=nand0
mtdparts: mtdparts=nand0:2m(fsbl),2m(ssbl1),2m(ssbl2),-(UBI)
Please advise me about the possible solution.
Thanks in advance.
2023-11-22 04:21 PM
Hello @timetoeatmaffin ,
Maybe this wiki article could help you : https://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer_flashlayout#NAND_flash_memory
Kind regards,
Erwan.