Other Parts Discussed in Thread: TDA4VM
hi,
Please let me know if we have a CAN example which can be used from MCU2_1.
regards,
Frangline.
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.
Hello,
Please find the necessary patches to apply on MCUSW and Linux to work along.
Regards
Tarun Mukesh
|diff --git a/mcuss_demos/mcal_config/Can_Demo_Cfg/output/generated/soc/j721e/mcu2_1/include/Can_Cfg.h b/mcuss_demos/mcal_config/Can_Demo_Cfg/output/generated/soc/j721e/mcu2_1/include/Can_Cfg.h
|index 5a28da5..6f8f112 100755
|--- a/mcuss_demos/mcal_config/Can_Demo_Cfg/output/generated/soc/j721e/mcu2_1/include/Can_Cfg.h
|+++ b/mcuss_demos/mcal_config/Can_Demo_Cfg/output/generated/soc/j721e/mcu2_1/include/Can_Cfg.h
--------------------------
File to patch: /home/mircea/Downloads/ti-processor-sdk-rtos-j721e-evm-08_01_00_13/mcusw/mcuss_demos/mcal_config/Can_Demo_Cfg/output/generated/soc/j721e/mcu2_1/include/Can_Cfg.h
patching file /home/mircea/Downloads/ti-processor-sdk-rtos-j721e-evm-08_01_00_13/mcusw/mcuss_demos/mcal_config/Can_Demo_Cfg/output/generated/soc/j721e/mcu2_1/include/Can_Cfg.h
Hunk #1 FAILED at 116.
1 out of 1 hunk FAILED -- saving rejects to file /home/mircea/Downloads/ti-processor-sdk-rtos-j721e-evm-08_01_00_13/mcusw/mcuss_demos/mcal_config/Can_Demo_Cfg/output/generated/soc/j721e/mcu2_1/include/Can_Cfg.h.rej
can't find file to patch at input line 31
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
Hi Mircea,
I am not sure why it is showing 8.1 for you ? I have made it for SDK 9.0.
Might be the Can_Cfg.h file wasn't changed , I just disabled loopback and thats the only change done in Can_cfg.h file.You can do on at your end if the macro is not changing via patch.
Is the patch itself throwing error while applying ?
Regards
Tarun Mukesh
The colleagues from India use 08 for the IPC applications, i just got confused which is which so I try for both.
ON 09 it worked, no problem.
I compiled, but as you did not provide which pins and what baudrate, nothing is showing up on the Canoe Tool.
there are 4 dts with the name in the patch, I added the patch to the one in the linux kernel directory, compiled and installed.
Either I am doing something wrong or the patches do not work.
When you have time we can sit and debug it.
Br, Mircea
Hello Mircea,
I have sent email earlier as well to use J27 pin, regarding baudrate setting you can see the userguide https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/latest/exports/docs/mcusw/mcal_drv/docs/drv_docs/demo_can_profile_top.html
I have shared you k3-j721e-common-proc-board.dts , only 1 will be present in linux you need to build this and replace the existing k3-j721e-common-proc-board.dtb file with the updated one.
After doing this ,for MCU2_1 link your new executable(can_profile_app_mcu2_1_release.xer5f) and by default you will have vision apps executable on MCU2_0 replace that one with ipc_echo_test_mcu2_0_release.xer5f.
Because vision apps on mcu2_0 can use mcu2_1 core as well so to avoid it link mcu2_0 with ipc echo test and mcu2_1 with new executable.
If you have further queries on this , reach out to frangline.
Either I am doing something wrong or the patches do not work.
I have tested at my end and everything works fine along with linux.
Regards
Tarun Mukesh
Ok, so I redid everything(linked mcu2_0 also now), inserted SD-card, booted board.
1 - Saw CAN messages on Canoe tool ( success )
2 - Linux booted
3 - Can messages stopped.
4- Linux is running, no CAN messages are send anymore...
Is this expected?
This is the CAN frame I see:
Time Chn ID Name Event Type Dir DLC Data length Data
504.874838 CAN 1 C0x CAN FD Frame Rx 15 64 AA BB CC DD EE FF 22 44 AA BB CC DD EE FF 22 44 AA BB CC DD EE FF 22 44 AA BB CC DD EE FF 22 44 AA BB CC DD EE FF 22 44 AA BB CC DD EE FF 22 44 AA BB CC DD EE FF 22 44 AA BB CC DD EE FF 22 44
Hello Mircea,
That's great to hear.
Yes CAN messages will be stopped after reaching certain count number.
Along with the above changes in Linux and MCUSW , you can also include few changes in uboot to avoid any errors in future
Please follow steps 5 & 6 URL https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1320426/faq-tda4vm-how-to-enable-can-along-with-linux-on-mcu2_1-using-main-domain-can0-instance
Regards
Tarun Mukesh
Hello Tarun,
Navigating the mcusw code for CAN is difficult. I want to change the baudrate to 500k, and have MCAN0 used for both TX and RX.
As you provided the mcusw as base, can you also give us tressos and a license for it? else it is useless, and we are back at square one, with not way to bring up the CAN.
Br, Mircea
Hello,
Yes we provide EB tresos configuration package as well as license.You can follow https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1238147/faq-tda4vm-how-to-get-eb-tresos-studio-for-mcal-development-and-customer-licence
You can also look into MCUSW user guide steps for installation and usage.
Regards
Tarun Mukesh
Hello Mircea,
EB tresos tool can be used only in windows.
Regards
Tarun Mukesh
we now have a second issue, as your fix requires Linux to initialize the transceiver, we need linux running. For us the debugger does not conect when the Linux is running( remember from our meeting?).
Hello Mircea,
I have connected CCS debugger to MCU2_1 while linux is running and i didn't face any issue. You should not connect A72(which halts the core) instead to the core which you are running the executable (MCU2_1 in this case) and load the symbols.That's how i debugged the issues and did the changes.
And also I also shared the steps to initialise the transceiver during uboot itself rather than linux. so even that shouldn't cause any problem.I remember you weren't able to connect CCS at all on TDA4VM and asked for change of board right ?
Please contact Frangline if you face troubles in CCS connections and setup.
Regards
Tarun Mukesh
I am closing this thread as the description of the issue has been met and resolved.
Regards
Tarun Mukesh
Before you close it, please send me a tressos guide, What must I import? from the mcusw.
Thank you, any ideea when the license for tressos will arrive? the zips in the securedownload thing does not contain the "README" mentioned here: https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/latest/exports/docs/mcusw/mcal_drv/docs/drv_docs/mcusw_cfg_ug_top.html#mcusw_cfg_ug_req_activation_key
Hello Mircea,
I already shared an FAQ to apply the EB tresos license.
Typically it take 3-4 days to approve.
Regards
Tarun Mukesh