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
Solved! Go to Solution.
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
Thanks.
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