PIC16F676 + MCP2515 PICtail Demo Board - Firmware

Guest #3336454
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
Guest #3336807
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
Guest #3336937
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

A question of your own? This thread is over 13 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.