k66 and USB dedicated RAM

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

k66 and USB dedicated RAM

跳至解决方案
2,402 次查看
andrewparlane2
Contributor III

I was just looking through a .map file for my K66 based project and noticed 0x800 bytes (+ alignment) being used for USB_RAM_GAP.

Looking in my linker script I see that indeed we align to 512 bytes and reserve 0x800 bytes in the .bss section for this USB RAM stuff. However as far as I can tell the K66 doesn't support this at all, so we are just wasting 2KB of RAM here.

Am I correct in thinking I can remove this, and the m_usb_bdt and m_usb_global sections for both projects that don't use USB and projects that do. My tests suggest that I can indeed do this with no negative repercussions.

Thanks

Andy

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
2,157 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Andrew:

Yes, you are correct, that section can be removed.

I checked the latest version of KSDK 2.2, this section is not in linker script.

Regards

Daniel

在原帖中查看解决方案

2 回复数
2,157 次查看
andrewparlane2
Contributor III

Thanks.

0 项奖励
回复
2,158 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Andrew:

Yes, you are correct, that section can be removed.

I checked the latest version of KSDK 2.2, this section is not in linker script.

Regards

Daniel