CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Can Bootloader Problem - No Open TX Buffers

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
BKR



Joined: 25 Jan 2008
Posts: 3
Location: Brazil

View user's profile Send private message

Can Bootloader Problem - No Open TX Buffers
PostPosted: Mon Feb 16, 2009 1:06 pm     Reply with quote

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...
Guest








PostPosted: Mon Mar 09, 2009 8:59 am     Reply with quote

Hi BKR

Are you find the solution ?

i am interested
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group