2023-05-18 10:09 PM
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.
Solved! Go to Solution.
2023-05-18 10:49 PM
Solved. The flash layout must include an empty partition to fill all unused space.
2023-05-18 10:49 PM
Solved. The flash layout must include an empty partition to fill all unused space.
2023-05-19 05:23 AM
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'