This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: 關於 Main Domain MCAN設定 IO expander 卡住?!

Part Number: TDA4VM
Other Parts Discussed in Thread: TCA6424

EVM: J721EXCP01EVM

SDK: ti-processor-sdk-rtos-j721e-evm-08_06_01_03

Refer: mcan_evm_loopback_app_main_k3.c

J721EXCP01EVM 打算使用

(MCU1_0) MCU MCAN0 – J30 (J29)

(MCU2_1) Main MCAN0 – J27 (J24)

目前設定Main MCAN0時候,IO Expander (TCA6424) 都會發生卡在下列設定。 

當使用 I2C_transfer() 無法 return value到 status,程序 hang 在這邊。

想請問是設定TCA6424 時候,周邊沒有搭配好嗎? 或是發生問題!? 謝謝。

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
void padConfig_prcmEnable()
{
/* UART Init */
Board_initCfg boardCfg;
Board_STATUS boardStatus;
I2C_Params i2cParams;
I2C_Handle handle = NULL;
uint8_t dataToSlave[4];
boardCfg = BOARD_INIT_MODULE_CLOCK |
BOARD_INIT_PINMUX_CONFIG;
boardStatus = Board_init(boardCfg);
if (boardStatus != BOARD_SOK)
{
App_ConsolePrintf("[Error] Board init failed!!\n");
}
#if 0 // No use GESI board.
/* Pin mux for CAN STB used in GESI board */
*(volatile unsigned int *)(0x0011c0f4) = 0x20007;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

x 出现错误。请重试或与管理员联系。