USB with graphical interface with IMXRT1062

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

USB with graphical interface with IMXRT1062

3,558 次查看
marcellocampani
Contributor II

Good morning everyone

I'm using the mimxrt1060-evk

I need to integrate usb host functionality in a design with graphical interface.

To do this I mixed the examples "emwin slide show" and the host_msd_fafts_bm.‌

Because of the memory needed by emwin I need to use the external SDRAM for data.

With this configuration the usb example doesn't work.

To isolate the problem I tried simply to change the memory used by the usb example alone from the default SRAM_DTC to board_sdram moving up this latter to the first position in memory configuration. With this memory configuration the usb example doesn't work anymore. Any suggestion?

Thank you in advance for collaboration.

pastedImage_1.png

标签 (1)
0 项奖励
回复
6 回复数

3,353 次查看
jackking
Senior Contributor I

I have a similar question outstanding for both USB host examples and FatFS...  so far the only resolution was to place the entire Heap and Stack into a noncached memory section. 

I would love to know which control structures for FatFS and USB Host need to explicitly reside in non-cached memory.

0 项奖励
回复

3,353 次查看
marcellocampani
Contributor II

Hello Mr. King

How did you place the heap and stack in noncached memory? I tried with these settings but the program crashes..

pastedImage_1.png

pastedImage_3.png

Thank you for collaboration.

Best regards

0 项奖励
回复

3,353 次查看
jackking
Senior Contributor I

Sorry, it should be the Global Data placement:

Properties_for_evkmimxrt1060_hello_world_fresh.jpg

0 项奖励
回复

3,353 次查看
marcellocampani
Contributor II

Hello Mr. King

With global data placement in SRAM_DTC you put ALL the data in that section. the usb works but the emwin graphical interface overflows. Are you using the graphical interface with usb?

Best regards

0 项奖励
回复

3,353 次查看
jackking
Senior Contributor I

Sorry, I'm not using emWin, but are you able to place the frame buffer used by emWin into a different memory segment explicitly? 

0 项奖励
回复

3,353 次查看
marcellocampani
Contributor II

I placed the frame buffer in external SDRAM and now it works correctly.

Thank you for collaboration.

0 项奖励
回复