RT1176的SDRAM如何在系统使用

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

RT1176的SDRAM如何在系统使用

2,166 次查看
jiangUndefine
Contributor I

SDRAM驱动和DCD配置已经弄好了,但是想和内部RAM一样直接使用malloc,在KEIL5的配置IRAM改地址和增加地址都无法增加RAM大小,不知道如何配置SDRAM才能和内部RAM一样使用,或者只使用SDRAM也可以。

0 项奖励
回复
8 回复数

2,147 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
我不是很清楚你的问题,能否再解释一下。
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复

2,138 次查看
jiangUndefine
Contributor I

SDRAM的驱动已经完成,能读写SDRAM内部数据,地址是0x80000000,例程给的代码是 SEMC_SDRAMReadWrite16Bit之类的函数测试,而不能通过库函数自带的malloc函数来调用SDRAM的空间进行读写。

0 项奖励
回复

2,117 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,
感谢回复。
首先,TCM类型RAM与OCRAM,SDRAM是不同的,尤其是不受cache缓存的影响,其次,你说的库函数自带的malloc函数来调用SDRAM的空间进行读写,能否给出具体的代码以及描述一下错误现象。
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复

2,114 次查看
jiangUndefine
Contributor I

我截取了M7核的SCF配置文件如下


#define m_flash_config_start 0x30000400
#define m_flash_config_size 0x00000C00

#define m_ivt_start 0x30001000
#define m_ivt_size 0x00001000

#define m_interrupts_start 0x30002000
#define m_interrupts_size 0x00000400

#define m_text_start 0x30002400
#define m_text_size 0x00FBDC00

#define m_text2_start 0x00000000
#define m_text2_size 0x00040000

#define m_ncache_start 0x80000000
#define m_ncache_size 0x04000000

#define m_interrupts_ram_start 0x20000000
#define m_interrupts_ram_size __ram_vector_table_size__

#define m_data_start (m_interrupts_ram_start + m_interrupts_ram_size)
#define m_data_size (0x40000 - m_interrupts_ram_size)

使用的m_data_size 只有256KByte,当我需要更大内存时,是无法调用其他RAM和SDRAM块的区域,所有我想提高RAM使用的大小

0 项奖励
回复

2,097 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,
感谢回复。
请选择如下的option,这样工程会选择适合SDRAM应用的linker文件。

jeremyzhou_0-1652954725759.png


Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复

2,088 次查看
jiangUndefine
Contributor I

这里面缺少了双核和FlexSpi启动的配置,按照这个配置改了m_data_start为0x80000000后网口会卡死

0 项奖励
回复

2,075 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,

现在我对你的真正需求有点困惑,如何你只是想要一个合适的liker file,你参考SDK中与你功能相近的工程的linker file就好,如果不是,我觉得你最好重新描述你的需求。

Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复

2,135 次查看
jiangUndefine
Contributor I

就是说我想把SDRAM空间作为内部空间,像是与0x20000000地址一样在内部使用

0 项奖励
回复