Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20563

BASCOM-AVR : AVR CAN BUS : REPLY

$
0
0
Hi Still problems with CAN interface. To make sure I have the correct compiler I updated again yesterday. The sample code in the CANCONFIG help file is still not working. On Canit Can_int ' define the CAN interrupt I think it should be On Can_int Can_int ..... I fixed this and then I get an error on the Breceived = Canreceive(porta) command. Error : 72 Line : 124 Getclass error [ 23] , in File : \ELPRONASPUBLICNicocanbusnoname1.bas Error : 72 Line : 124 Getclass error [ 23] , in File : \ELPRONASPUBLICNicocanbusnoname1.bas Error : 7 Line : 124 IF THEN expected [ 124] , in File : \ELPRONASPUBLICNicocanbusnoname1.bas Error : 123 Line : 124 END IF expected , in File : \ELPRONASPUBLICNicocanbusnoname1.bas I have a can 128 cpu on board. Please help me to get the CAN sorted out. I also tried to get data out by polling, setting up - sending a byte and setting up again . Nothing happening on the CAN TX Pin . The reply error code is " OK :16 " after sending. Is there a list of the possible CAN error codes to get an idea of where the bottleneck is. What is the most simple command just to get traffic on the CAN TX pin. I have a MCP2551 buffer and a CAN sniffing tool connected to a PC on the other side. Is there any forum member who can help me to get on the 'BUS ' ? Kind regards Nico

Viewing all articles
Browse latest Browse all 20563

Trending Articles



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