Add memheap, CCM and SRAM code