Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

CAN error at high baud rates on S7G2

$
0
0

Hi there,

I'm trying go establish a CAN connection between a S7G2 device and a PC CAN Module at 500kBits/s, which leads to an error when sending a frame from S7G2 device.

The same code works well when setting the baud rate to 50kBit/s.

 

First write command returns SSP_SUCCESS and the user callback is called with event CAN_EVENT_ERR_PASSIVE.

Subsequent writes return SSP_ERR_CAN_TRANSMIT_NOT_READY. And it seems no data is shifted out.

 

Can anyone help me find the cause of this? The Tqout settings are the same for 50 and 500 kbit, except the baud rate prescaler, which differs by factor 10. All other code remains unchanged.

 

This is my setting:

S7G2 custom board

SSP 1.2.0

PC CAN module: PEAK pcan

 

Thank you!

Philipp


Viewing all articles
Browse latest Browse all 5781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>