Hello @danielmartynek
I look the startup code and saw what is happening and why i am seeing the overlapping issue.
Working Project:




In this project as you can see in ROM and RAM sections for the sram_no_cacheable section after .mcal_const_no_cacheable it is taking 68 bytes of gap for the ramcode_no_cacheable. But that gap is present in both RAM and ROM which is good. SO when I am trying to copy I am able to copy the whole section from flash to sram during initialization because of same gap in RAM and ROM
Non-Working Project:




In this Non-working project as you can see in ROM and RAM sections for the sram_no_cacheable section after .mcal_const_no_cacheable it is taking 4 bytes of gap for the ramcode_no_cacheable in ROM, 68 bytes in RAM. But that gap is not same in both RAM and ROM. SO when I am trying to copy Because of difference in bytes gap in RAM and ROM while copying from flash to sram during initialization it is getting overlapping.
I attached both working and non-working one . So now my question is why it is showing different memory alignment in ROM and RAM in these two projects, How can we make the ROM and RAM to have the similar alignment and similar gaps?
In the previous reply you mentioned I need to align the 32kb as per the MPU align base address, But we are not utilizing that much non_cacheable memory. In the linker file the whole no_cacehable is only 0x4d00 bytes. What kind of changes do i need to do in the MPU?
