Skip to content

Conversation

@radioelf
Copy link

@radioelf radioelf commented Sep 7, 2016

Hi.
error: 'AA' was not declared in this scope
byte txBuf0[] = {AA,55,AA,55,AA,55,AA,55};
byte txBuf1[] = {55,AA,55,AA,55,AA,55,AA};
changed to:
byte txBuf0[] = {0xAA,0x55,0xAA,0x55,0xAA,0x55,0xAA,0x55};
byte txBuf1[] = {0x55,0xAA,0x55,0xAA,0x55,0xAA,0x55,0xAA};

error: 'tx0Buf' was not declared in this scope
CAN0.sendMsgBuf(0x1000000, 1, 8, tx0Buf);
CAN1.sendMsgBuf(0x1000001, 1, 8, tx1Buf);
changed to:
CAN0.sendMsgBuf(0x1000000, 1, 8, txBuf0);
CAN1.sendMsgBuf(0x1000001, 1, 8, txBuf1);

coryjfowler and others added 30 commits January 28, 2015 20:25
Created the example for this library, there are drawbacks though.
This version of the library does not allow the sketch to see if a received CAN message is standard or extended in length, I suggest using the sub-development branch if you are serious about bridging.

UNTESTED! I HAVE NOT TESTED THIS
Excel document that helps determine the configuration register values.
Made serial output more useful as a CAN sniffing tool and to demonstrate using the extra bits of the ID.
Mega2560 bootloaders and can cause timeouts during upload
Triple bang is a special command for the Mega2560 boot loader.
There was an extra sendMsg() in one of the sendMsgBuf() functions.
User can enable and disable One-Shot mode from the sketch using the library...
User can enable and disable One-Shot mode from the sketch using the library...
User can enable and disable One-Shot mode from the sketch using the library...
Loop back example to test a single CAN interface.
ilium007 and others added 30 commits August 5, 2019 21:16
Static emulation of OBD ECM responses.
Improved sleep functionality
Guard DEBUG_MODE to allow control from the main program.
Fixed small spelling mistakes.
Allow clkout to be selected in CNF3 register.
The Send timeout was based on an incrementing register and a while loop that ran at system execution speeds with no delays.
I have changed it over to use the Arduino micros() function.
The Send timeout was based on an incrementing register and a while loop that ran at system execution speeds with no delays.
I have changed it over to use the Arduino micros() function.
Maintain the deterministic timeout for sendMsg().
Fixed typo...
SPI-Bus selectable in constructor
Fixing issues caused by #27
Fixing issues caused by #27
- fix setMsg to respect the len
- try to prevent buffer overflows and always limit to MAX_CHAR_IN_MESSAGE
This update introduces configurations for the MCP_CAN library to support a 10MHz crystal oscillator. The following baud rates have been tested and verified with a MIKROE-986 CAN SPI Click 3.3V on an Arduino Nano 33 IoT, in communication with a CANBED v1 from Longan Labs:
- 125 kbps,
- 250 kbps
- 500 kbps
- 1000 kbps
Added 10MHz crystal support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.