Hi All,
-> I am using SPI nor flash S25Fl128S(SPANSION) with processor AM3352 using SPI1 interface.
-> To use SPI1 interface I have did changes in MLO code for providing clocks to SPI1 interface
-> Then, after I am using command sf probe 1:0 (1 = SPI1 bus and 0=CS0) file present at /common/cmd_sf.c file in u-boot code.
-> I am getting response with 16MiB flash is detected.
-> But then after I am writing some data in flash sector1 and reading the data . I am able to do the same.
-> As SPANSION SPI flash having a property that we can lock its sectors using paasword,
Thus I am giving command for programme a password there u-boot is hanging.
Functions which I have used for read:
spi_flash_read_cmd
and for write I have used command:
spi_flash_write_cmd.
Please, someone give some directions.
Rgs,
Santosh Rai