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.

MSP430FR5969: code line not executed

Part Number: MSP430FR5969


Hi I am trying to run a program some lines in the program are getting skipped, IN the send_data() function the delay_loop() function is called but it is not getting executed 

uint8_t send_data(const uint8_t buf2[], uint16_t length2) /* Data to be send to spi flash */
{
uint8_t looper62,tx_buf_1; /* variable declaration */
uint16_t length12;
uint8_t dat2;
(void)cs_status(1U); /* CS low */
length12 = length2 - 1U;
for(looper62=0U;looper62<length12;looper62++)
{
tx_buf_1 = spi_transfer(buf2[looper62]); /* Transfer data into NAND flash */
P3OUT = 0x80;
P3DIR = 0xA0;
(void)delay_loop(100);
UCA1TXBUF = tx_buf_1;

}
dat2 = spi_transfer(buf2[looper62]); /* Transferring data */
return dat2;
}

uint8_t delay_loop(uint16_t looper) /* function to create a delay */
{
uint16_t looper_101; /* vriable declaration */
for(looper_101 = 0U;looper_101<looper;looper_101++) /* increamenting the looper */
{} /* no desired function */
return 1; /* no return value */
}

**Attention** This is a public forum