Tool/software: TI-RTOS
hello,base on AM5728 and RTOS,how to use dcan1 on ipu? can you give me some document to refer, please, thank you so much.
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.
Tool/software: TI-RTOS
hello,base on AM5728 and RTOS,how to use dcan1 on ipu? can you give me some document to refer, please, thank you so much.
H jianbin,
You may refer to DCAN_BasicExample_evmAM572x_m4TestProject in PDK\packages\ti\csl\example\dcan\dcanLoopback\rtos. The latest Processor SDK PDK for AM572x is available at www.ti.com/.../PROCESSOR-SDK-AM57X
Regards
Garrett
hello,I had refer to the rtos version is 04.03.00.05 in PDK\packages\ti\csl\example\dcan\dcanLoopback\,and i had add the code that access dcan to my project. However, the dcan seem didn't had any response,and i ran the command canconfig can0 bitrate 1000000、canconfig can0 start on linux shell,and then reload the ipu firmware,
dcan can sent data,but the receive interrupt can't response. does the rtos version 04.03.00.05 exist any bug?
I have three questions:
Q1:the rtos version what i had used was 04.03.00.05,and my Platform is AM5728 EVM,does it exist the same problem to AM572x IDK Platforms that didn't support the dcan test?
Q2:dose the dcan test can be supported to the latest rtos version(05.01.00.11) with AM5728 EVM?
Q3:I want to use dcan1 for normal mode,and i don't know the configurate flow with the registers, can you offer me some documents to refer.
thank you very much!
thank you for your reply,and my actual application is use the ipu1 to access the dcan1 on AM5728 EVM,can I realize this requirement by refer to the pdk_am57xx_1_0_12\packages\ti\csl\example\dcan demo?
jianbing,
You need configure interrupt cross bar register and dcan control register to enable the dcan interrupt.
Refer to the following sections for each register:
Table 24-1103. DCAN Hardware Requests
24.10.4.2 Interrupt Functionality
24.10.4.12.2 CAN Message Transfer (Normal Operation)
The DCANAppConfigParityIntr() function in dscan_loopback_example_main.c is a good reference.
Also the cross bar module description may help though it's not specific for dcan.
software-dl.ti.com/.../IntXbar.html
Regards,
Garrett
hello,I had debug the code(pdk_am57xx_1_0_10/packages/ti/csl/example/dcan/dcanLoopback/rtos/dcan_loopback_rtos_main.c) ;the code
CSL_xbarIrqConfigure(CSL_XBAR_IRQ_CPU_ID_IPU1, CSL_XBAR_INST_IPU1_IRQ_30, intrSource);
it seem that the api (CSL_xbarIrqConfigure) had not effect, did you had test it OK?
hello,I had solved the problem finally, what my solution is replace the
CSL_xbarIrqConfigure(CSL_XBAR_IRQ_CPU_ID_IPU1, CSL_XBAR_INST_IPU1_IRQ_30, intrSource);
whth
IntXbar_disconnectIRQ(30);
IntXbar_connectIRQ(30, intrSource);
thank you.