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.

CAN data frame repetition is observed while transmitting more than 8 bytes of data in polling mode after code optimization.

Part Number: TMS570LC4357

Hi,
I have been trying to transmit 30 bytes(and more) of data via polling. Following is my CAN message configuration details:
CAN id: 0x700 (Standard)
DLC: 8 bytes
Message box: Box no.1 (Range 1-64)
Type: Standard Data frame
Transmission method: Transmit polling

Scenario:
Code optimization is set to 1-local optimization and speed vs size trade-off is set to 5(speed).
A transmit data array tx_data[30] is been used for data.
A function CANSendData is used for data transmission and is been called 3 times in application which transmits the tx_data[30] array 3 times.
The received data is verified in CANoe tool and output of the same is been attached (Highlighted frames are the repeated frames).

Observation:
The data frames after the 1st frame gets repeated twice.

Note: However, if the code is not optimized the data received is proper in every transmission (i.e without repetition of frames).

Any help pertaining to the scenario is appreciated. Thank you.