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
Why do you involve any variable? Text is text. Code is code. The scatter file can manage the location of a function into RAM without involving any variable.
And why did you start a new thread - the use of a scatter file has already been debated in your previous thread even if you seem to have ignored that debate.
Hello, Thank you for the prompt reply. I will continue the discussion in the other thread http://www.keil.com/forum/post.aspthat I have already opened. Sorry for the second thread
Thanks George