Other Parts Discussed in Thread: J721S2XSOMXEVM
Hi, Ti's experts:
SDK: ti-processor-sdk-rtos-j721s2-evm-08_06_01_03, ti-processor-sdk-linux-j721s2-evm-08_06_01_02
Development board: J721S2XSOMXEVM
I am study the MCUSS Demo Application : CAN Profiling Application, and do the follow six test, please check it and help to fix the Questions(Q1, Q2, Q3, Q4).
Test 1. operate in internal loop-back and interrupt mode by default : Run OK.
step1: build
step2: use the CCS to load and run the can_profile_app_freertos_mcu1_0_release.xer5f on MCU_Cortex_R5_0.
Step3: Read the UART log, and we can find it works ok.
Test 2. operate in internal loop-back and polling mode : Run OK.
step1: According to the MCUSW: CAN Profiling Application shows, update related codes to configure the can profiling application operate in internal loop-back and polling mode.
admin:///media/sf_J721S2TDA4Share/Polling%20mode.PNG
step2: build
step3: use the CCS to load and run the can_profile_app_freertos_mcu1_0_release.xer5f on MCU_Cortex_R5_0.
Step4: Read the UART log, and we can find it works ok.
Test 3. operate in TX Only and polling mode : Run Failed
step1: According to the MCUSW: CAN Profiling Application shows, update related codes to configure the can profiling application operate in Tx Only and polling mode.
admin:///media/sf_J721S2TDA4Share/Tx%20only.PNG
step2: build
step3: use the CCS to load and run the can_profile_app_freertos_mcu1_0_release.xer5f on MCU_Cortex_R5_0.
Step4: Read the UART log, and we can find it shows CAN Test Failed!!!.
Q1: What other actions should I do if I want to run the can profiling application operate in Tx Only and polling mode?
Test 4. operate in TX Only and interrupt mode : Run Failed
step1: According to the MCUSW: CAN Profiling Application shows, update related codes to configure the can profiling application operate in Tx Only and interrupt mode.
admin:///media/sf_J721S2TDA4Share/Interrupt%20mode.PNG
step2: build
step3: use the CCS to load and run the can_profile_app_freertos_mcu1_0_release.xer5f on MCU_Cortex_R5_0.
Step4: Read the UART log, and we can find it stop after "CAN Profile App:Will Transmit 10000 Messages", according to the code, it seems stop at "SemaphoreP_pend(CanIf_TxConfirmationSemaphore,SemaphoreP_WAIT_FOREVER);"
Q2: What other actions should I do if I want to run the can profiling application operate in Tx Only and interrupt mode?
Test 5. operate in External Loopback and interrupt mode : Run Failed
step1: According to the MCUSW: CAN Profiling Application shows, update related codes to configure the can profiling application operate in External Loopback and interrupt mode.
admin:///media/sf_J721S2TDA4Share/External%20Loopback.PNG
step2: build
step3: Loop these two header J31,J30 with jumper wire. MCU_MCAN0_H <- Jumper Wire ->MCU_MCAN1_H AND MCU_MCAN0_L <- Jumper Wire ->MCU_MCAN1_L
admin:///media/sf_J721S2TDA4Share/External%20Loopback%20wire.PNG
step4: use the CCS to load and run the can_profile_app_freertos_mcu1_0_release.xer5f on MCU_Cortex_R5_0.
Step5: Read the UART log, and we can find it stop after "CAN Profile App:Will Transmit & Receive (External-loopback) 10000 Message, 2 times", according to the code, it seems stop at "SemaphoreP_pend(CanIf_TxConfirmationSemaphore,SemaphoreP_WAIT_FOREVER);"
Q3: What other actions should I do if I want to run the can profiling application operate in External Loopback and interrupt mode?
Test 6. operate in External Loopback and polling mode : Run Failed
step1: According to the MCUSW: CAN Profiling Application shows, update related codes to configure the can profiling application operate in External Loopback and polling mode.
admin:///media/sf_J721S2TDA4Share/Polling%20mode.PNG
step2: build
step3: Loop these two header J31,J30 with jumper wire. MCU_MCAN0_H <- Jumper Wire ->MCU_MCAN1_H AND MCU_MCAN0_L <- Jumper Wire ->MCU_MCAN1_L
admin:///media/sf_J721S2TDA4Share/External%20Loopback%20wire.PNG
step4: use the CCS to load and run the can_profile_app_freertos_mcu1_0_release.xer5f on MCU_Cortex_R5_0.
Step5: Read the UART log,and we can find it shows CAN Test Failed!!!.
Q4: What other actions should I do if I want to run the can profiling application operate in External Loopback and polling mode?
Best Regards,
Shuai Feng