UJA1169 in Normal Mode

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

UJA1169 in Normal Mode

3,131 Views
RaresTudor
Contributor I

Hello, I am trying to configure the UJA1169TK/F/3 to work in Normal Mode but I am stuck at  switching the SBC from Standby mode to Normal Mode, I try to do this by writting the value 0x07 in the Mode Control register at the address 0x01. Even if I do this, when I read back the register it shows me that I am still in Stand By mode ,and the CAN communication is not working.

I want to mention that the SPI communication works fine, I have created a function to read the ID of the SBC and it returns the correct value. I have also wrote in the non volatile memory and disabled the Forced Normal mode.

Do you guys have any idea why I can switch to Normal Mode?

Thank you

 

0 Kudos
Reply
5 Replies

3,110 Views
guoweisun
NXP TechSupport
NXP TechSupport

After you write the register content ,do you read it again to verify?

0 Kudos
Reply

2,282 Views
yannichang960308
Contributor I

Set  state to  nornal mode ..but fail....still at standby mode

 

if(status == STATUS_SUCCESS)
{
status = SBC_SetMode(config->mode);
}
/* Device was initialized successfully. */

 

yannichang960308_0-1728630750814.png

 

0 Kudos
Reply

2,277 Views
yannichang960308
Contributor I

 I am trying to configure the UJA1169TK/F/3 to work in Normal Mode but I am stuck at  switching the SBC from Standby mode to Normal Mode, I try to do this by writting the value 0x07 in the Mode Control register at the address 0x01. Even if I do this, when I read back the register it shows me that I am still in Stand By mode ,and the CAN communication is not working.

I want to mention that the SPI communication works fine, I have created a function to read the ID of the SBC and it returns the correct value. I have also wrote in the non volatile memory and disabled the Forced Normal mode.

Do you guys have any idea why I can switch to Normal Mode?

Thank you

0 Kudos
Reply

1,259 Views
walkingg
Contributor I

I encountered the same problem. Does anyone know the reason?

0 Kudos
Reply

1,242 Views
RaresTudor
Contributor I
Hello,

A lot of time has passed, and I can't remember the exact solution to that problem. However, over the years, I've worked with the UJA on other projects and have gained some experience. I'll try to give you some hints that might help:

1. Ensure that you are in Forced Normal Mode:
Read register 0x74; it should return 0x08 to indicate Forced Normal Mode.

2. Make sure that you're writing the correct data to the MTPNV cells:

For Normal Mode, write:
0x00 to 0x73,
0x00 to 0x74,
0x47 to 0x75.

For Software Development Mode, write:
0x00 to 0x73,
0x04 to 0x74,
0xFB to 0x75.

Make sure to double-check these values.

3. I believe the issue I had back then was timing-related:
I didn't give the device enough time after writing the configuration. I made the mistake of reading the status register immediately after sending the command. Try adding a delay before reading the status register and see if that helps.
0 Kudos
Reply