Hi All,
I am using the tm4c129encpdt microcontroller with TI-RTOS.
I have one major concern of memory-related. Most of the time my RAM usage is greater than 98% which makes us difficult to implement something new. Since we are in restrained memory environment, I was curious to know if somehow we can use the part of FLASH memory as the RAM.
As per datasheet - https://www.ti.com/lit/ds/symlink/tm4c129encpdt.pdf?ts=1624026622136&ref_url=https%253A%252F%252Fwww.google.com%252F
Table 2-5, we can use FLASH as the data section too.
I was trying this into tm4c129encpdt.cmd file-
SECTIONS
{
.intvecs: > 0x00000000
.text : > FLASH
.const : > FLASH
.cinit : > FLASH
.pinit : > FLASH
.init_array : > FLASH
.data : > FLASH
.vtable : > SRAM
//.data : > SRAM
.bss : > SRAM
.sysmem : > SRAM
.stack : > SRAM
}
__STACK_TOP = __stack + 512;
If you see, I am trying to put the .data section into flash but it is not working. Even my code is not executing. I know RAM and FLASH are totally different but is there any way to use them this way?
Thanks
AkhiG