SPI App on XMC4500 Relax Kit does not Work, Flash cannot be accessed

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

cross mob
User17149
Level 2
Level 2
First solution authored
Hi,

I downloaded a clean version of the SPI_EXAMPLE_XMC45 App and
after (and also before) generating the code, I started the app but it failed to access the Flash memory.

In the EraseSector() function the call to the N25Q03_StatusRead function (main.c:142) returns status == 255 but status == 2 is expected.

Does anyone have an idea what I need to do make this work. Do I need some other hardware settings?

Thank you in advance

Kuros
0 Likes
2 Replies
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

The flash mounted in the XMC4500 Relax Kit is not of the type Micron N25x but an S25FLxx.
The example works in a XMC4500 Application Kit.
To make it work in a Relax Kit the pins need to be adapted and maybe also the driver for the SPI flash.

Best regards,
Jesus
0 Likes
User17149
Level 2
Level 2
First solution authored
Thank you, now I understand. As far as the driver goes: The existing App has a N25x*.c driver file, do you know if there is an equivalent for the SL25*? I guess your answer implied that I have to modify it myself?
0 Likes