MIMXRT1176 SEMC Configuration for Dual 16-bit SDRAM (W9812G6KH)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MIMXRT1176 SEMC Configuration for Dual 16-bit SDRAM (W9812G6KH)

Jump to solution
1,480 Views
sanjana291
Contributor III

Hello NXP Community,

I am working with the MIMXRT1176DVMAA processor and attempting to interface two W9812G6KH SDRAM chips (2M x 4 BANKS x 16 BITS each).

My goal is to test this SDRAM configuration within the NXP's IDE. I have reviewed the existing EVK example SEMC SDRAM provided, but I'm finding it challenging to adapt them specifically for interfacing two W9812G6KH devices with the MIMXRT1176.

Could anyone please provide guidance or an example on how to properly configure the SEMC for this dual-SDRAM setup? Specifically, I'm looking for details on:

  • SEMC register configurations (e.g., timing parameters, address mapping) for dual SDRAM.

  • Any necessary modifications to the linker script or memory map.

  • DCD (Device Configuration Data) for this SDRAM.

Any help or pointers to relevant documentation/examples would be greatly appreciated!

Thank you in advance.

Tags (3)
0 Kudos
Reply
1 Solution
1,266 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

DCD is attached to the image, it can be generetate by using MCUXpresso Config Tools. The DCD is written with the register values. 

Config Tools generates a C arrary that can be copied to dcd.c file on the board setting:

Omar_Anguiano_0-1749235624506.png

Best regards,
Omar

 

View solution in original post

5 Replies
1,442 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello
How are you arranging the two SDRAMS? On the EVK two 16bit SDRAM are used so it is used as one 32bits SDRAM. Are you using the both as single device or are you planning to access them separately with different CS?
The timing parameters configured on the base registers need to be set according to  specific memory parameters, let me give you some examples:
SDRAMCR0:

Omar_Anguiano_0-1748637988380.png

SDRAMCR1:

Omar_Anguiano_3-1748638119797.png


SDRAMCR2:

Omar_Anguiano_1-1748638067058.png


SDRAMCR3:

Omar_Anguiano_2-1748638078377.png

 


Best regards,
Omar

0 Kudos
Reply
1,424 Views
sanjana291
Contributor III

Yes, I'm using it as a single device, and just like the EVK here, I have a W9812G6KH.

Tags (3)
0 Kudos
Reply
1,352 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

The hw configuration can be similar to the EVK, as the memory is similar the timings can be used just changing parameters that may differ. 

Best regards,
Omar

0 Kudos
Reply
1,282 Views
sanjana291
Contributor III
Okay. Then, what about the DCD file? Can you explain how to write or generate it for this SDRAM?
0 Kudos
Reply
1,267 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

DCD is attached to the image, it can be generetate by using MCUXpresso Config Tools. The DCD is written with the register values. 

Config Tools generates a C arrary that can be copied to dcd.c file on the board setting:

Omar_Anguiano_0-1749235624506.png

Best regards,
Omar