Tool/software: Code Composer Studio
i use RM48L952 and the ccs is V6.2.0.in the CCS project,i creat a function
void COD(void)
{
uint32 temp[1023];
temp[0] = 0;
uint16 i =84U;
i = i%93U;
}
in the debug mode, when run to '” i = i%93U;" the program go to system abort function. if i change uint32 temp[1023]; to uint16 temp[1023]; the program run ok. so i think it is related to the stack size set.
i change the stacks in the cmd file
MEMORY
{
VECTORS (X) : origin=0x00000000 length=0x00000020
FLASH0 (RX) : origin=0x00000020 length=0x0017FFE0
FLASH1 (RX) : origin=0x00180000 length=0x00180000
STACKS (RW) : origin=0x08000000 length=0x00004000
RAM (RW) : origin=0x08004000 length=0x0003C000
/* USER CODE BEGIN (2) */
/* USER CODE END */
}
but the noting changed.
my question is how to change the stack , is there anyting i forget? or is other reason? thanks very much!
jianlei