keithkyle

Members
  • Content Count

    2
  • Joined

  • Last visited

  1. Hi JColvin, Thank you. Did the edit. Now, for the next stack of errors: C:\mpide-0150\.\hardware\pic32\libraries\CanBus\mcp2515.c: In function 'spi_putc': C:\mpide-0150\.\hardware\pic32\libraries\CanBus\mcp2515.c:53:2: error: 'SPDR' undeclared (first use in this function) C:\mpide-0150\.\hardware\pic32\libraries\CanBus\mcp2515.c:53:2: note: each undeclared identifier is reported only once for each function it appears in C:\mpide-0150\.\hardware\pic32\libraries\CanBus\mcp2515.c:56:12: error: 'SPSR' undeclared (first use in this function) C:\mpide-0150\.\hardware\pic32\libraries\CanBus\mcp2515.c:56:23: error: 'SPIF' undeclared (first use in this function) C:\mpide-0150\.\hardware\pic32\libraries\CanBus\mcp2515.c: In function 'mcp2515_init': C:\mpide-0150\.\hardware\pic32\libraries\CanBus\mcp2515.c:125:1: error: 'DDRB' undeclared (first use in this function) C:\mpide-0150\.\hardware\pic32\libraries\CanBus\mcp2515.c:135:1: error: 'DDRD' undeclared (first use in this function) C:\mpide-0150\.\hardware\pic32\libraries\CanBus\mcp2515.c:139:2: error: 'SPCR' undeclared (first use in this function) C:\mpide-0150\.\hardware\pic32\libraries\CanBus\mcp2515.c:139:13: error: 'SPE' undeclared (first use in this function) C:\mpide-0150\.\hardware\pic32\libraries\CanBus\mcp2515.c:139:22: error: 'MSTR' undeclared (first use in this function) C:\mpide-0150\.\hardware\pic32\libraries\CanBus\mcp2515.c:139:34: error: 'SPR1' undeclared (first use in this function) C:\mpide-0150\.\hardware\pic32\libraries\CanBus\mcp2515.c:139:44: error: 'SPR0' undeclared (first use in this function) C:\mpide-0150\.\hardware\pic32\libraries\CanBus\mcp2515.c:140:2: error: 'SPSR' undeclared (first use in this function) C:\mpide-0150\.\hardware\pic32\libraries\CanBus\mcp2515.c: In function 'mcp2515_check_message': C:\mpide-0150\.\hardware\pic32\libraries\CanBus\mcp2515.c:201:1: error: 'PIND' undeclared (first use in this function) Keith
  2. Trying to compile demo from Sparkfun. It compiles properly with Arduino software. I'm new to Arduino. Not sure what I need to modify in the library. https://github.com/sparkfun/CAN-Bus_Shield Text from the demo code: "This example sketch works with the CAN-Bus shield from SparkFun Electronics. It enables the MCP2515 CAN controller and MCP2551 CAN-Bus driver, and demos using the chips to communicate with a CAN-Bus. Resources: Development environment specifics: Developed for Arduino 1.6.5 Based off of original example ecu_reader_logger by: Sukkin Pang SK Pang Electronics www.skpang.co.uk" Error is: C:\mpide-0150\.\hardware\pic32\libraries\CanBus\mcp2515.c:28:24: fatal error: util/delay.h: No such file or directory compilation terminated.