Tool/software:
Hi Maters,
I am working on a MSP432E401Y launch pad and want to collect some samples (about 1000) through and external ADC and store in an array for frequency calculation. As I declare an array, the code run into the infinite loop in startup_msp432e401y_ccs.c. When I change the size of the array from 1000 to 2, the code runs well. As I increase the size of the array from 2 one by one till 13, the code runs well. But when the array size is 14, the code runs into the infinite loop.
the code is here.
void main(void)
{
uint32_t systemClock;
systemClock = SysCtlClockFreqSet((SYSCTL_XTAL_25MHZ |
SYSCTL_OSC_MAIN |
SYSCTL_USE_PLL |
SYSCTL_CFG_VCO_480),120000000);
uint32_t i,ii,N, i32Idx;
uint32_t N_sample=100;
uint32_t sample_data[14];
sample_data[0]=1;
The array starts from the address of 0x20000348. I checked the microcontroller's memory; this part (0X2000.0000 to 0X3FFF.FFFF) can store data, and there should not be conciliation.
I also copy the variables with their addresses as follows.
Please help,
Thank you very much,
Zhonghai