cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32mp157 Programming NOR flash

uouox
Associate II

Trying to load TF-A and uboot into NOR flash, but I always get this error.

SF: Detected w25q256 with page size 256 Bytes, erase size 64 KiB, total 32 MiB

mtdids=nor0=nor0 & mtdparts=mtdparts=nor0:256k(fsbl1),256k(fsbl2),2m(ssbl),512k(u-boot-env),-(nor_user)

MTD device nor0: size=33554432 erasesize=65536

 available address = 0x0..0x2000000

 erase size = 0x10000

 full_update = 1

id : Opt Phase   Name target.n dev.n addr   size   part_off part_size

01 : 1 04     fsbl1 00.1 03.00 00000000 02000000 00000000 00040000

Error: fsbl1 (0x4): Bad size for partition 1 (fsbl1) at 0x0 = 0x2000000 <> 0x40000 expected

It looks like no mtd partition table loaded but the mtdparts seems correct.

1 ACCEPTED SOLUTION

Accepted Solutions
uouox
Associate II

Solved. The flash layout must include an empty partition to fill all unused space.

View solution in original post

2 REPLIES 2
uouox
Associate II

Solved. The flash layout must include an empty partition to fill all unused space.

PatrickF
ST Employee

Hi @uouox​ ,

Glad to see you solved your issue. Maybe this would have helped

https://wiki.st.com/stm32mpu/wiki/STM32_MPU_Flash_mapping#NOR_memory_mapping

Regards,

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

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.