Hello,
I have been working with S32G274A processor. I have been working on a bootloader and the default RAM configuration are as follows in the linker file:
int_sram : ORIGIN = 0x34000000, LENGTH = 0x00080000 /* 512KB */
int_sram_stack_c0 : ORIGIN = 0x34080000, LENGTH = 0x00002000 /* 8KB */
int_sram_stack_c1 : ORIGIN = 0x34082000, LENGTH = 0x00002000 /* 8KB */
int_sram_stack_c2 : ORIGIN = 0x34084000, LENGTH = 0x00002000 /* 8KB */
// Non Cacheable
int_sram_no_cacheable : ORIGIN = 0x34500000, LENGTH = 0x00100000
I reduced the sram size to 512 Kb but the sram no cacheable starts at 0x34500000 and my bootloader blows up to 5MB. It is difficult for me to allocate application image space in between. So I reconfigured the no cacheable address to 0x34100000 with 1 MB length and made the same changes in the RM module in the peripherals. I got this working and the total bootloader size was around ~ 1.2 MB. However, when I added some more code to my existing bootloader it crashed again and the SRAM no cacheable memory start address only accepts 0x34500000. If not this address it crashes. How do I properly change this no cacheable address so that I have a compact bootloader of around 2MB and can dedicate rest of the RAM space (~6 MB) for application space. I want to have continuous memory configuration.
Best,
Vishnu