Other Parts Discussed in Thread: J784S4XEVM
Tool/software:
I am trying to transmit CAN data with mcan_evm_loopvack_app_main_k3.c example in my evaluation board. However, I build and install default code to mcu1_0 core and selected MCU_MCAN0 for transmission. I have selected MUX mode for CAN as shown in below configuration.
*((uint32_t *)(0x04301C0A8)) = 0x00060000; *((uint32_t *)(0x04301C0AC)) = 0x00060000;
When I tried to transmit data with selecting "MCAN Node Type" to 1 (Transmitter Side), It is not successfully send data. Application is not get transmission interrupt value successfully. I stuck in a infinitely while loop here.
txMsg->dlc = loopCnt; /* Write message to Msg RAM */ MCAN_writeMsgRam(gMcanModAddr, MCAN_MEM_TYPE_BUF, 1U, txMsg); /* Add request for transmission */ testStatus = MCAN_txBufAddReq(gMcanModAddr, 1U); if (CSL_PASS != testStatus) { App_ConsolePrintf("\nError in Adding Transmission Request...\n"); break; } while (gMcanIsrIntr0Flag) {} gMcanIsrIntr0Flag = 1U; MCAN_getProtocolStatus(gMcanModAddr, &protStatus);
- SDK Version: ti-processor-sdk-rtos-j721e-evm-09_02_00_05