How do I get U-Boot to detect a single quad-SPI memory so that I can program it with STM32CubeProgrammer?
Hi.
I'm using the v2.1.0 ecosystem to build for a target that will boot TF-A & U-Boot from a single ISSI IS25LP016D-JNLE 2 mebibyte quad-SPI NOR flash connected with the rest of the system in e.MMC. (This is to work around the bug in the rev.B STM32MP1 silicon BOOTROM regarding e.MMC boot.)
I've used STM32CubeIDE 1.5.1 on Ubuntu 20.04 Linux to configure the device tree and I can read and write the device in Linux booted from e.MMC and have enabled NOR & nor-sdcard features in the machine/config/stm32mp153c-veethree-mx.conf file.
However I cannot get U-Boot to detect the 'nor0' flash device in the same way as I can on my STM32MP157A-EV1 kit using mtd list so that attempting to program the NOR flash with STM32CubeProgrammer results in a 'no such device nor0' error.
I've added
CONFIG_SPI_FLASH_SFDP_SUPPORT=y
CONFIG_SPI_FLASH_ISSI=y
to build-veethreeconnectbox2-stm32mp1-connectbox2/workspace/sources/u-boot-stm32mp/configs/stm32mp15_trusted_defconfig and I've added the line
{ INFO("is25lp032", 0x9d6015, 0, 64 * 1024, 32, 0) },
before
{ INFO("is25lp032", 0x9d6016, 0, 64 * 1024, 64, 0) },
to build-veethreeconnectbox2-stm32mp1-connectbox2/workspace/sources/u-boot-stm32mp/drivers/mtd/spi/spi-nor-ids.c to support the smaller device.
I've searched the STM32MP1 ecosystem wiki but cannot find any instructions that I'm not already following concerning configuring U-Boot.
What else do I need to do to get U-Boot to detect the flash?
