This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Scatter file

Hello,
Can I put a variable in .text section?

How I should modify the scatter file to do this?

I have the following scatter file
; *************************************************************
; *** Scatter-Loading Description File generated by uVision ***
; *************************************************************

LR_IROM1 0x00000000 0x00080000 { ; load region size_region ER_IROM1 0x00000000 0x00080000 { ; load address = execution address *.o (RESET, +First) *(InRoot$$Sections) *.o (+RO) } RW_IRAM1 0x10000000 0x00006000 { ; RW data .ANY (+RW +ZI) } RAM_CODE 0x10006000 0x00002000 { *(.ARM._at_0x10006000,+RO) }
} And I want the array ProgRamSpace,{ unsigned char ProgRamSpace[PROG_SIZE] __attribute__((section(".ARM._at_0x10006000")))}
to be reallocated in .text and the linker should recognize that this is a Thumb Code

Best regards