RT1050EVKB "host_msd_fatfs_freertos sdram_debug" would be fail if LCD controller enabled

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

RT1050EVKB "host_msd_fatfs_freertos sdram_debug" would be fail if LCD controller enabled

310 次查看
James12
Contributor II

I use RT1050EVKB (SDK 2.14.0) to run "host_msd_fatfs_freertos sdram_debug" and find something strange.

If LCD controller is enabled, open-write-read-verify-close round testing for flash disk would sure be fail after several handreds rounds testing.

If LCD controller is disabled, testing will never be fail.

If MIMXRT1052xxxxx_sdram.scf is modified with following 2 lines
* (NonCacheable.init)
* (*NonCacheable)
moved from RW_m_ncache(SDRAM) to RW_m_data2(DTCM), testing round would never be fail with LCD controller enabled.

Why non-cacheable SDRAM is not suitable for USB host memory? Can memory allocated for USB host only be in DTCM?

The attached source code is for your reference.

BTW, this awk example binds ucHeap with non-cachable memory. In real application, nobody will let ucHeap to be in non-cachable memory space because system perfermance will decrease a lot.

 

0 项奖励
1 回复

258 次查看
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @James12 ,

 

It is ok to put buffer used by USB module in TCM memory, or non-cacheable SDRAM, but non-cacheable SDRAM is much recommended as it has larger size.

 

Have a great day,
Kan


-------------------------------------------------------------------------------
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.
-------------------------------------------------------------------------------

标记 (1)
0 项奖励