BKR
Joined: 25 Jan 2008 Posts: 3 Location: Brazil
|
Can Bootloader Problem - No Open TX Buffers |
Posted: Mon Feb 16, 2009 1:06 pm |
|
|
Hi,
I'm using the microchip AN247 can bootloader in assembly with 2 PIC18F2480 and when I try to send a Can frame with the other PIC I get the "No Open TX Buffers" error from the can_debug...
I already tested the network with regular firmwares on both and I did get everything working well.
I guess is the baud rate that may be incorrect.
For the master (With Microchip Bit time Calculator):
Setup Criteria
Oscillator Frequency 32,000 MHz
Target CAN Bus Baud Rate 1,000 Mbps
Selected Options
BRP-1 (Baud Rate Prescaler) 1
Tq (Time Quanta) 125,000 ns
Number of Time Quanta 8
% Error of Target Baud Rate 0,0 %
Bit Timing Setup in Tq
Propagation Delay 1
Phase Segment 1 3
Phase Segment 2 3
Syncronization Jump Width (SJW) 1
////
And using the Microchip MAESTRO for the bootloader:
SSJ 1
Bit Rate Prescaler 1
WAKFIL Enabled
SEG1PH 3
SEG2PH 3
PRSEG 1
SAM 3x
ENDRHI Enabled
CANCAP Enabled
and everything else almost default.
Does anyone have any idea about what's going wrong?
Thanks!
I can post both codes if it is necessary... |
|