This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/MSP432P401R: MSP432P401R

Part Number: MSP432P401R

Tool/software: TI C/C++ Compiler

I am currently using a MSP432P401R. I coded the board to generate random values having about 14 initial values. After getting help from the TI Community i was able to successfully get the code running. However, after the code is ran and it says completed successfully I have no clue if it is actually running or if these values will actually "spit out" randomly between the 14 of them. Here is the code the works.

#include "msp.h"


/**
* main.c
*/
int main(void){

WDT_A->CTL = WDT_A_CTL_PW | WDT_A_CTL_HOLD;//stop watchdog

int x_arr[13]={74,120,60,180,300,250,170,190,55,100,175,245,145}; //an array of random values of gluclose
int output[13];
int i;

for(i=0; i<13; i++) //for loop chooses value at random from initial array
{
output[i]=x_arr[i]; //outputs values in array
}//end for loop
}//end main