Hi Team,
I'm using S12ZVL128 for Reprogramming. I've made CANoe as Master and ECU as Slave. After dumping the Srec File using CANoe I'm able to see that all the UDS related test cases are giving positive response with correct data. But, there are some minor errors that are available on trace, please refer snapshot
Please Let me know how to resolve this issue.
Thanks in advance
BR
Abhijit
We always need the minimum time to transmit for each frame, that is minimum frame delay. For example, if master is sending at a baud rate of 19.2 kbps and loading frame data of 8 bytes, the minimum frame delay is 9.14ms and you need to configuration frame delay is 10ms.
So, please recheck the time delay between frames on your side.
If the problem is still not solved. Could you please share with me your project or the .ldf file and LIN version that you are using? I will try to check on my side and send it back when it's done.
Best regards,
Dan
Hi @DanNguyenDuy Thank you for the information. But, still the issue is there. For now I'm uploading the LDF File that we have created for Reprogramming.
Please let me know if you need anything.
Thanks & Regards
Abhijit.
Hi @itsnewforme,
Hardware:- S12ZVL128Software:- LIN_stack_S12_4_6_6
Best regards,
Hi, @DanNguyenDuy . The issue is resolved. Actually it was due to wrong implementation of a function to send a LIN Frame From Slave to Master.
In our previous implementation of LIN Send Function we have used Lin Send break and Lin Send Sync Methods (see below image) due to which it was showing those errors on Canoe Trace Window
Now, we have made changes to this function as follows
But now we have came across an issue where after transmitting and receiving some amount of LIN frames. our ECU is getting into reset.
can you please help us to resolve this issue
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.
Hi @itsnewforme,
Unfortunately, I can't support you in this situation because you didn't use our driver.
Best regards,
Dan
Yes we have not used LIN stack, because we have used the implementation provided in the AN5389SW which suggests to use the polling method PFA
https://www.nxp.com/docs/en/application-note/AN5389.pdf
https://www.nxp.com/docs/en/application-note-software/AN5389SW.zip
Hi @itsnewforme,
Because I can't know whether code in those materials are as same as with LIN driver or not. So, I didn't certain that I can help you in this situation.
Best regards,
Dan