Sure @DanNguyenDuy , we have used CANoe as Master ECU and have developed a tool using it to upload the Srec file. The Tool performs all the UDS related request and then starts transmitting the data in chunks of 256 bytes. So, after every 256 bytes of data is transmitted I'm using the Method linTransmitHeader() to get the positive response. PFA. First image is of CAPL script and second image is of Trace Window


So, after Transmitting 39 sequences. It is supposed to get a positive response but as the ECU is going into reset it is unable to do so. (you can refer the write window)

Please help us to resolve this issue.
I'm also uploading the Zip file of the NXP code that we have used as reference to develop the functions to transmit and receive Lin Frame for s12 microcontroller.
Thanks in advance
Regards Abhijit.