When trying to run the
flexcan_network demo code, the interrupt handler
BOARD_FLEXCAN_HANDLER is not called when trying to send a message. I suspect that something is going wrong with the sending part.
I’m using FlexCAN2 with the following pin muxing: case CAN2_BASE: // CAN2_TX SODIMM 94 IOMUXC_SW_MUX - Pastebin.com.
However when printing out the value of
IOMUXC_SW_MUX_CTL_PAD_I2C3_SCL it returns a
5, which is for
ALT5_GPIO4_IO13, instead of the
2, which is for
ALT2_FLEXCAN2_TX, that it is supposed to return.
Could it be that the pin muxing is overwritten after it is set in
pin_mux.h and that this creates issues with the interrupts for flexcan2?