kw45 CAN Reception

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

kw45 CAN Reception

1,669 Views
paragl2
Contributor I

Hello NXP Team,

I am working with the KW45B41Z-EVK board, and my goal is to implement CAN communication (both transmit and receive) on this BLE board

I have modified the flexcan_interrupt_transfer example by removing the dependency on a second node and attempted bidirectional communication. However, only the transmit functionality works correctly.

Additionally, when using the original flexcan_interrupt_transfer project and sending frames from a CAN traffic generator (with the same frame ID and CAN channel configured for reception), the board still does not receive any frames.

In both cases, the issue is that the board is unable to receive CAN frames. Could you help me identify the possible cause and guide me on resolving this?

Tags (1)
0 Kudos
Reply
2 Replies

1,632 Views
luis_maravilla
NXP Employee
NXP Employee

Hello, Hello hope you are doing well,

Could you help us describing the modifications implemented in the code?

Could you help us confirm the following:

Which SDK version are you using?

Are you using 1 KW45B41Z-EVK board or 2 boards? Is the example without modifications working using 2 KW45B41Z-EVK as intended?

Does the KW45B41Z-EVK has the 12V power supply on J9 to supply P5V_CAN?

 

Could you share the terminal view when running the example? It would be highly appreciated

 

Best Regards

Luis

0 Kudos
Reply

1,599 Views
paragl2
Contributor I

Hi,

Sorry to bother, first of all the issue is resolved. Seems like the issue with the traffic generator which I am using was faulty and not able to transmit frames on the bus.

Apart from that right now the rx is working properly. Thanks for the quick response though.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2253475%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ekw45%20CAN%20Reception%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2253475%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20NXP%20Team%2C%3C%2FP%3E%3CP%3EI%20am%20working%20with%20the%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fc-pwmxy87654%2FKW45B41Z-EVK%2Fpd-p%2FKW45B41Z-EVK%22%20class%3D%22lia-product-mention%22%20data-product%3D%223146-1%22%20target%3D%22_blank%22%3EKW45B41Z-EVK%3C%2FA%3E%26nbsp%3Bboard%2C%20and%20my%20goal%20is%20to%20implement%20CAN%20communication%20(both%20transmit%20and%20receive)%20on%20this%20BLE%20board%3C%2FP%3E%3CP%3EI%20have%20modified%20the%20flexcan_interrupt_transfer%20example%20by%20removing%20the%20dependency%20on%20a%20second%20node%20and%20attempted%20bidirectional%20communication.%20However%2C%20only%20the%20transmit%20functionality%20works%20correctly.%3C%2FP%3E%3CP%3EAdditionally%2C%20when%20using%20the%20original%20flexcan_interrupt_transfer%20project%20and%20sending%20frames%20from%20a%20CAN%20traffic%20generator%20(with%20the%20same%20frame%20ID%20and%20CAN%20channel%20configured%20for%20reception)%2C%20the%20board%20still%20does%20not%20receive%20any%20frames.%3C%2FP%3E%3CP%3EIn%20both%20cases%2C%20the%20issue%20is%20that%20the%20board%20is%20unable%20to%20receive%20CAN%20frames.%20Could%20you%20help%20me%20identify%20the%20possible%20cause%20and%20guide%20me%20on%20resolving%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2254361%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20kw45%20CAN%20Reception%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2254361%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%20Hello%20hope%20you%20are%20doing%20well%2C%3C%2FP%3E%0A%3CP%3ECould%20you%20help%20us%20describing%20the%20modifications%20implemented%20in%20the%20code%3F%3C%2FP%3E%0A%3CP%3ECould%20you%20help%20us%20confirm%20the%20following%3A%3C%2FP%3E%0A%3CP%3EWhich%20SDK%20version%20are%20you%20using%3F%3C%2FP%3E%0A%3CP%3EAre%20you%20using%201%20KW45B41Z-EVK%20board%20or%202%20boards%3F%20Is%20the%20example%20without%20modifications%20working%20using%202%20KW45B41Z-EVK%20as%20intended%3F%3C%2FP%3E%0A%3CP%3EDoes%20the%20KW45B41Z-EVK%20has%20the%2012V%20power%20supply%20on%20J9%20to%20supply%20P5V_CAN%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ECould%20you%20share%20the%20terminal%20view%20when%20running%20the%20example%3F%20It%20would%20be%20highly%20appreciated%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20Regards%3C%2FP%3E%0A%3CP%3ELuis%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2255215%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20kw45%20CAN%20Reception%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2255215%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3ESorry%20to%20bother%2C%20first%20of%20all%20the%20issue%20is%20resolved.%20Seems%20like%20the%20issue%20with%20the%20traffic%20generator%20which%20I%20am%20using%20was%20faulty%20and%20not%20able%20to%20transmit%20frames%20on%20the%20bus.%3C%2FP%3E%3CP%3EApart%20from%20that%20right%20now%20the%20rx%20is%20working%20properly.%20Thanks%20for%20the%20quick%20response%20though.%3C%2FP%3E%3C%2FLINGO-BODY%3E