I would like to change the Chip Select (CS) pin for OSPI to store data in a different memory location. I am using the MX25LM51245GM flash memory with the RA6M5 device. I have updated the Chip Select setting in the Stack Configuration and am trying to use address 0x8000000 with Chip Select 0. However, I am currently unable to read from or write to the OSPI memory. Could you please help me configure and use Chip Select 0 properly for OSPI operations?
0x8000000
Hi Mukesh,
Can you please measure the CS pin to check if this problem is related to CS pin? Does the OSPI works well when you haven't changed the CS pin?
Also we have an official sample project for RA6M5 OSPI, can you please test it: ra-fsp-examples/example_projects/ek_ra6m5/ospi/ospi_ek_ra6m5_ep at master · renesas/ra-fsp-examples · GitHub
BR,
NP_Renesas
I tested the example code with my EVK-RA6M5 board, and it works correctly with CS1. However, when I switch to CS0, I encounter the same issue. I have also updated the address from 0x70001000 to 0x68001000. Could you please let me know if there is anything else I need to change to get CS0 working?
When you change the CS pin, do you also change the hardware connection?
No, i have canged the CS alone and the address in the code
I don't think the OSPI can work after changing the CS pin, because on the EK board all the OSPI pins has been confirmed, you cannot change it:
NP_Renesas said:Can you please measure the CS pin to check if this problem is related to CS pin? Does the OSPI works well when you haven't changed the CS pin? Also we have an official sample project for RA6M5 OSPI, can you please test it: ra-fsp-examples/example_projects/ek_ra6m5/ospi/ospi_ek_ra6m5_ep at master · renesas/ra-fsp-examples · GitHub BR, NP_Renesas
If OSPI fails after changing the CS pin, it's likely misconfigured. Check with a logic analyzer—CS should go low during transfers. OSPI works fine with the default CS pin. If it works before the pin change, the issue is with your new pin setup. mymilestonecard payment