Hello everyone,
I'm porting U-Boot on SPI Flash and I'd like to protect sectors. I'm working on the Hitex LPC4350. My SPI Flash is the S25FL064P.
As I understood, there is no function provided to do this in the spifi lib.
I try to send commands one by one but without success, here how I proceed :
Reading the SPIFI command register after WREN returns 0xEBD30001. The most significant byte (0xEB) stands for : Quad I/O High Performance Read. I think the pSpifi->cmd doesn't work because the cancel_mem_mode is working (I'm not able to read data then).
Is there anyone who succeed to protect sectors ? Or maybe I'm missing something ?
Thanks in advance,
Regards
Cyril
Some information here (see Drivers/lib/spifi_reportv0.1) :
For further information,
opers.protect is two bytes long : the most significant byte determines the configuration register of the SPI flash and the least determines the status register.
You can configure these SPI Flash registers using the spifi_program function with source = dest, length = 0 and no option.
After each operation, these two registers are accessible in obj.stat.hw.
I found needed information for protecting my SPI flash using high level functions :
First :