Hi All.
I have been playing with the Tiva-TM4C123GXL evaulation-board, and am running into weird issues when I define a 1000-sized char array on the stack (but things work fine when I define the array globally).
Upon looking around, it seems that the default-stack for the board is really small, and that might be causing the issues. So, how can I define custom-sized stack? Presently, I am using the default-shipped TM4C123GH6PM.ld file as follows ::
MEMORY
{
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x00040000
SRAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0X00008000
}
SECTIONS
{
/* code */
.text :
{
_text = .;
/* ensure ISR vectors are not removed by linker */
KEEP(*(.isr_vector))
*(.text*)
*(.rodata*)
_etext = .;
} > FLASH
/* static data */
.data : AT(ADDR(.text) + SIZEOF(.text))
{
_data = .;
*(vtable)
*(.data*)
_edata = .;
} > SRAM
/* static uninitialized data */
.bss :
{
_bss = .;
*(.bss*)
*(COMMON)
_ebss = .;
} > SRAM
}
Will be really grateful for any help.
Thanks and Regards,
Ajay