Hi Dear Authorized,
I am aiming to use SRAM interface with SEMC. I know that IMXRT1064-EVK has SDRAM and it is possible to configure SDRAM via MCUXpresso Config Tools as seen in below picture:
I have following two question:
Q1: I want to know that how it is possible to configure and use SRAM with or without MCUXpresso Config Tools?
Q2: How can I configure SRAM to use it with SEMC?
Thanks and Regards.
Hi Dear @Omar_Anguiano ,
I have following questions related to issue:
Q1-)I found and configured INTEN register but I could not found INTR register. How can I find it? And, does it matter whether I find it or not?
Q2-)Which SRAM device mentioned in step 6 ? Does it mention SRAM attached to the EVK board?
(Step 6:Configure SRAM Control Registers with valid settings that matchs SRAM device)
Q3-)What should I do after I set these configurations correctly? (as seen below Picture 1). Is there any usage example of SRAM in SDK or anywhere, I could not find it?
||||||||||||||||||||||||||||||||||
|||||||| Picture 1: ||||||||
||||||||||||||||||||||||||||||||||
Q4-)Will I use the Arm Platform Memory Map (Reference Manual Table 3-1. as seen in Picture 2) to configure "Base address" of Base Register 6 for SRAM? For example, will I set Base address as 0x80000512 or anything between 8000_0000 and DFFF_FFFF.
||||||||||||||||||||||||||||||||||
|||||||| Picture 2: ||||||||
||||||||||||||||||||||||||||||||||
Thanks and Regards.
I will gladly answer your questions:
A1) You can find it in the memory map register:
A2) It does not mention any specific SRAM, this step details that you need to set timing parameters according to the values listed in the datasheet of the specific SRAM you are going to use.
A3) After the configuration is complete you can initialize the module and device with the parameters you just set. After this, you are able to read/write. Unfortunately, there is not an example yet but I´m working on a document that will help set SEMC for SRAM.
In that document, I´m planning to add some sample code that might be used as a reference for your SRAM application.
This document will be posted soon.
A4) Yes, you need to put memory map address in BR6 in the range of 0x8000_0000 - 0xDFFF_FFFF
You might want to use data type semc_sram_config_t, there you can set the address field at 0x8000_0000 and configure SRAM with SEMC_ConfigureSRAM().
If you have more questions do not hesitate to ask me.
Best regards,
Omar
Hello
Hope you are well. Let me answer your questions:
A1: Yes it is possible. You need to use the latest IDE and SDK release:
A2:
If you have more questions do not hesitate to ask me.
Best regards,
Omar