UJA1169 in Normal Mode

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

UJA1169 in Normal Mode

3,125 次查看
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 项奖励
回复
5 回复数

3,104 次查看
guoweisun
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复

2,276 次查看
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 项奖励
回复

2,271 次查看
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 项奖励
回复

1,253 次查看
walkingg
Contributor I

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

0 项奖励
回复

1,236 次查看
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 项奖励
回复