EmbDev.net

Forum: µC & Digital Electronics PIC16F676 + MCP2515 PICtail Demo Board - Firmware


Author: Peter (Guest)
Posted on:

Rate this post
0 useful
not useful
Hello,
we have bought some MCP2515 PICtail Demo Boards to evaluate them and
then to develop a CAN interface system with the PIC16F676/677 for
our purpose on the same basis.

Now the problem:
We have downloaded the firmware - provided in the MCP2515 PICtail
Demo Board folder - from the original MicrChip website 00023R2.c
dated 2007 and other gadgets files.
Then we have compiled the supplied firmware with the MPLAB-X modern
XC8 compiler in free mode and then programmed into the Demo Board.
The Demo Board is not running - all LEDs are ON and not blinking
as in the normal state to indicate CAN activities.

When we program the supplied original HEX-file from MicrChip.com Site, 
the Demo Board is running well.

Our question:
Has anybody the same board - and if so - the suppied source files
was running without code changes???
If so - what must we do to get it to run - maybe a other compiler
or what else changes in the source?

What we have see too - the hex file is a other revision - 2005
and the source is from 2007.
Maybe here is a mistake by MicroChip


Regards . Peter

Author: fchk (Guest)
Posted on:

Rate this post
0 useful
not useful
Why don't you use a PIC18 with integrated CAN? It's cheaper, smaller, 
and faster. Just have a look at the PIC18F25K80. Its ECAN peripherial is 
an improved version of the 2515 CAN.

fchk

Author: Der Rächer der Transistormorde (Guest)
Posted on:

Rate this post
0 useful
not useful
Peter wrote:
> When we program the supplied original HEX-file from MicrChip.com Site,
> the Demo Board is running well.


config register settings are usually unknown to C-sources

Check if your settings are same as in original project.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.