TJA1043 Not working after Power on Reset of Micro

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TJA1043 Not working after Power on Reset of Micro

3,278 Views
anwarhusengokav
Contributor II

Hi

I am using the TJA1043 Transceiver in my project. I am facing the below issue.

In TJA1043 there are two pins i.e. En and STBN to control the different modes of the it.

I am confrolling these pins using the Digital output pins of a microcontroller in MSCAN initialization function before enabling the CAN(First enabling the TJA1043 then after some delay MSCAN initilization).

Issue description:
Step1:
Flash the code on MC9S12ZVC64 and run from the debugger the CAN communication is working fine. I am able to transmit and receive the CAN frames.

Step2:
When I perform the power on reset of a microcontroller, the CAN communication is not working. Other functionalities are working fine.

Find the snapshot of the interfacing circuit of a CAN Transceiver with the microcotroller.

Please let us know the possible reason and solution to resolve this issue at the earliest possible.

Thanks,
Anwar

Labels (1)
Tags (1)
0 Kudos
Reply
3 Replies

2,782 Views
anwarhusengokav
Contributor II

Hello Radek,

Thank you for your support.

Thanks,

Anwar

0 Kudos
Reply

2,782 Views
RadekS
NXP Employee
NXP Employee

Hi Anwar,

When something working on MCU in the special mode and not working in normal mode, the typical reason is some writes into write-once registers.

The typical case is for example MODRR0 register. This register may be written just once in normal mode.

The example of correct approach:

MODRR0=0x36; // SCL0 on PJ1; SDA0 on PJ0; TXD1 on PT1; RXD1 on PT0; TXD0 on PS1; RXD0 on PS0; MISO0 on PS0; MOSI0 on PS1; SCK0 on PS2; SS0 on PS3; MSCAN and CANPHY routed externally.

The example of wrong approach:

MODRR0_SCI1RR = 1;  // TXD1 on PT1; RXD1 on PT0

MODRR0_ SCI0RR = 1;  // TXD0 on PS1; RXD0 on PS0

MODRR0_M0C0RR = 0x6; // MSCAN and CANPHY routed externally

 

The similar situation presents CPMUVREGCTL register. Please ensure that you modify this register just once.

 

Unfortunately, the TJA1043 powering isn’t clear from your part of schematic (what are sources of VCC_5V and VCC_Sel signals?).

 

The possible reason may be also some status change of TJA1043 CAN transceiver. When we reset MCU, the GPIO pins becomes inputs and only some of them have default pull-up. From your schematic isn’t clear which MCU GPIO pins you used for EN and STBN signals. Please check Table 1-6. MC9S12ZVC-Family Pin Summary in RM and look at default pull-device at specific pins after reset.

 

Personally, I think that TJA1043 will be a not root cause of this issue. However, I cannot exclude it from the suspect list.  

I hope it helps you.

Have a great day,
Radek

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

2,782 Views
sreekanthreddyc
Contributor I

Hello Radek,

Thanks for the reply.

Currently CAN is working fine with the solution that you have suggested.

Thanks and Regards

Sreekanth

0 Kudos
Reply