CAN bus initialize

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

CAN bus initialize

1,133 Views
eliezer_fortron
Contributor I

Hello, I have an IMXRT1050-EVKB kit.
In the SDK there is no option to initialize the CAN BUS. Does anyone ever do this? Can you adjust me?

0 Kudos
2 Replies

975 Views
igorpadykov
NXP Employee
NXP Employee

Hi Eliezer 

sdk can example can be found in

..evkmimxrt1050/driver_examples/flexcan and documentation in
sect.21.2 FlexCAN Driver MCUXpresso SDK API Reference Manual_MIMXRT105x.pdf

Welcome | MCUXpresso SDK Builder 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

975 Views
eliezer_fortron
Contributor I

Hi, thanks for the help.
I was able to simulate the flexcan_interrupt_transfer example. It turned perfectly.

I made some modifications to when pressing the "T" key transmit the data and receive via flexcan_callback, also worked.
So when I tried to change the frame.type from kFLEXCAN_FrameTypeData to frame.type to kFLEXCAN_FrameTypeRemote, it sends the data only the first time and gets stuck waiting for txComplete.
What can be happening wrong, if you prefer I can send the code.

0 Kudos