external SPI flash driver for BF504


I have to implement a flash driver for using an external SPI Flash memory with ADSP-BF504.

The flash part is SST26VF032BA.

I started with the existing driver for m25p16 that I found in the ADSP-BF506F folder.

I can load the driver:

I can erase all:

but other commands fail, suc as reset or program:

I don't understand how to resolve this problem.

Thank you and best regards