Hello,
I want to boot from a SPI Flash.
We use SPI1 CS0.
I can program the spi flash with my debugger and u-boot.
When i measure the SPI signals after a reset i see the following.
- CS 0 works
- a data read on address 0x0 is transmitted on MOSI
- after that i can see the correct data which i programmed into the flash on the MISO line.
So i think there must be an error with the image header:
I used the following layout:
- two bytes with 0xFF to mark a valid sector
- image size (4 bytes)
- loadaddress (4 bytes) in sram
Debugging the sram content after the spi read shows me, that there is not the data from the spi-flash in the memory.
What goes wrong?
Do I have to add ECC?
Regards,
Ludwig