MCAN with direct memory access not working

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCAN with direct memory access not working

736 Views
peter09
Contributor III

ide=s32 design studio for pa
SDK=SDK_S32_PA_15
board=mpc5775b
i have tried to receive data using MCAN1 with eDMA but it's not working .I've included my code below please suggest necessary changes 


MPC5775B-E MPC5777C 

Tags (1)
0 Kudos
Reply
2 Replies

695 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

You cannot use DMA chnl 0, but the channel assigned to MCAN.

davidtosenovjan_0-1755074397507.png

 

0 Kudos
Reply

690 Views
peter09
Contributor III

Thank you for your reply.
I have selected **MCAN1** only, but as you can see in my configuration , in the EDMA component we can configure MCAN1 and it only allows selecting the channel number. I have not used channel 0. i have added image and you can see in my code also

Tags (1)
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2150051%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EMCAN%20with%20direct%20memory%20access%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2150051%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3Eide%3Ds32%20design%20studio%20for%20pa%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3ESDK%3DSDK_S32_PA_15%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3Eboard%3Dmpc5775b%3C%2FSPAN%3E%3CBR%20%2F%3Ei%20have%20tried%20to%20receive%20data%20using%20MCAN1%20with%20eDMA%20but%20it's%20not%20working%20.I've%20included%20my%20code%20below%20please%20suggest%20necessary%20changes%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fc-pwmxy87654%2FMPC5775B-E%2Fpd-p%2FMPC5775B-E%22%20class%3D%22lia-product-mention%22%20data-product%3D%221077-1%22%20target%3D%22_blank%22%3EMPC5775B-E%3C%2FA%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fc-pwmxy87654%2FMPC5777C%2Fpd-p%2FMPC5777C%22%20class%3D%22lia-product-mention%22%20data-product%3D%221078-1%22%20target%3D%22_blank%22%3EMPC5777C%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2151531%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MCAN%20with%20direct%20memory%20access%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2151531%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20for%20your%20reply.%3CBR%20%2F%3EI%20have%20selected%20**MCAN1**%20only%2C%20but%20as%20you%20can%20see%20in%20my%20configuration%20%2C%20in%20the%20EDMA%20component%20we%20can%20configure%20MCAN1%20and%20it%20only%20allows%20selecting%20the%20channel%20number.%20I%20have%20not%20used%20channel%200.%20i%20have%20added%20image%20and%20you%20can%20see%20in%20my%20code%20also%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2151495%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MCAN%20with%20direct%20memory%20access%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2151495%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EYou%20cannot%20use%20DMA%20chnl%200%2C%20but%20the%20channel%20assigned%20to%20MCAN.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22davidtosenovjan_0-1755074397507.png%22%20style%3D%22width%3A%20549px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22davidtosenovjan_0-1755074397507.png%22%20style%3D%22width%3A%20549px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F352175i80CDF01B7651E676%2Fimage-dimensions%2F549x655%3Fv%3Dv2%22%20width%3D%22549%22%20height%3D%22655%22%20role%3D%22button%22%20title%3D%22davidtosenovjan_0-1755074397507.png%22%20alt%3D%22davidtosenovjan_0-1755074397507.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E