Low-level driver for Serial NOR Flash of PSoC4

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
YoIs_1298666
Level 5
Level 5
250 sign-ins 100 replies posted 100 sign-ins

Hello,

Do you have the Low-level driver for Serial NOR Flash or sample code of PSoC4?

Best regards,

Yocchi

1 Solution
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hello Yocchi,

I am attaching the latest Low driver driver and example code of Interfacing Serial Flash S25FL512S with PSoC 4. Please check the attached files and let us know if you need any clarifications.

Thanks,

Krishna.

View solution in original post

0 Likes
3 Replies
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hello Yocchi,

I am attaching the latest Low driver driver and example code of Interfacing Serial Flash S25FL512S with PSoC 4. Please check the attached files and let us know if you need any clarifications.

Thanks,

Krishna.

0 Likes
NoriTan
Employee
Employee
25 sign-ins 5 questions asked 10 sign-ins

Krishna,

The Low-Level-Drivers contained in the Project.zip and the slld_v16.2.1.zip are different each other.

For example, the file slld_v16.2.1\src\slld.c in the slld_v16.2.1.zip has an API function like following.  The first argument of the function slld_ReadSecurityCmd() is device_num.

/******************************************************************************

* slld_READ_SECURITY_Cmd - Read Security Register

* This function issues the Read Security Register command to SPI Flash.

* RETURNS: SLLD_OK, SLLD_E_DEVICE_SOFTWARE_PROTECTED or SLLD_E_HAL_ERROR

*/

SLLD_STATUS slld_ReadSecurityCmd

(

        BYTE      device_num,                     //device number

        ADDRESS   sys_addr,                      // device address given by system

        BYTE     *read_buf,                      // data buffer

        BYTECOUNT len_in_bytes                   // number of bytes

)

{

    SLLD_STATUS status = SLLD_OK;

On the other hands the file Project\Design03.cydsn\slld.c in the Project.zip has following API function.  There is no argument device_num.

/******************************************************************************

* slld_READ_SECURITY_Cmd - Read Security Register

* This function issues the Read Security Register command to SPI Flash.

* RETURNS: SLLD_OK, SLLD_E_DEVICE_SOFTWARE_PROTECTED or SLLD_E_HAL_ERROR

*/

SLLD_STATUS slld_ReadSecurityCmd

(

        ADDRESS   sys_addr,                      // device address given by system

        BYTE     *read_buf,                      // data buffer

        BYTECOUNT len_in_bytes                   // number of bytes

)

{

    SLLD_STATUS status = SLLD_OK;

Which driver software is recommended for users?

Regards,

Noriaki

0 Likes
Anonymous
Not applicable

Hello Tanaka San,

The one which is attached is the latest one. I recommend the users to use the LLD attached in my previous response.  The one used in the project is older version. Version no is 13.2.1. Customer can use the code as reference. Only some functions might have changed in the newer version.

Thanks,

Krishna.