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 CCS Technical Support

PIC24 spewing CAN messages even in reset

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



Joined: 18 Jun 2024
Posts: 1

View user's profile Send private message

PIC24 spewing CAN messages even in reset
PostPosted: Tue Jun 18, 2024 11:16 pm     Reply with quote

I have a PIC24EP512GU810 and we are using both CAN bus interfaces for an application. We've been having trouble with spurious messages appearing on the CAN1 bus. They are always the same four messages, with ID's 521, 522, 523 and 524 hex. They are always six bytes long. They contain alternating data.

We've tried everything to stop them. I can even power down the board, ground MCLR with a jumper, then power the board back on - and they still appear. How can we be getting these when the PIC is in hardware reset? Is there a config bit or something that allows the CAN bus interface to always transmit, even in reset?

[/img]
Ttelmah



Joined: 11 Mar 2010
Posts: 19538

View user's profile Send private message

PostPosted: Wed Jun 19, 2024 1:26 am     Reply with quote

I'd be looking at how the lines driving the CAN transceivers are biased.
Understand that if the PIC is in reset, most of the lines are floating. Now
if the enable on the can transceiver can float into the active state, you
are then driving the bus. You need to ensure that when the PIC is not
driving the enable line, this by default is resistively pulled to the inactive
state.
bryant@balancebitsconsult



Joined: 21 Nov 2023
Posts: 38

View user's profile Send private message

PostPosted: Wed Jun 19, 2024 5:01 pm     Reply with quote

Good news I suppose. We're on the same team - it seems there was a random device that was publishing CAN messages on the same lines that the PIC was connected to.

Fun times.

PIC was fine all along.
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