AnsweredAssumed Answered

Compiler data location management

Question asked by brucebowling on Dec 6, 2016
Latest reply on Dec 6, 2016 by stanish

I am using the S32DS tool with the KEAZ128 device, and I am creating a large number of display bitmap images. loading these in as static initialized data variables is causing issue, it appears the compiler/linker is not loading these in flash. I am receiving the following error:


xxxx.elf section `.data' will not fit in region `SRAM'


I want to specify that these data should be within section FLASH_2 section. I am trying to use pragmas to specify the placement but they are not working as far as I can tell. I am using the format:


#pragma arm section rodata


to place in section .rodata which is part of FLASH_2 definition in the linker file. FLASH_2 has a length of 0x1FBF0 which should be plenty of space.


Any documents, etc that I should be reviewing about placement of static defined variables?