Part Number: AM263P4
Tool/software:
I am working with the AM263Px-cc on a proof of concept project, and I am currently trying to get the mcan peripheral receiving messages.
I have loaded the mcan_external_read_write example project from MCU+ SDK for AM263Px - 09.02.00.55.
I have updated the syscfg to set the mcan peripheral to CAN4 to take advantage of the CAN transceiver on the control card. The project builds successfully and I am able to enter debug mode as expected, and I am to transmit messages.
I am attempting to disable all filtration, and I have followed the documentation and set the ANFE and ANFS both to 0 during the initialization process. When I send a provide a valid CAN message to the AM263P, I am able to reach a breakpoint in the ISR. The ISR uses the MCAN_getIntrStatus() function to retrieve the MCAN IR register. This function returns a value of 8, and according to the documentation on the registers this indicates "Rx FIFO 0 Message Lost Reset Source".
I have tried reading all messages out of both FIFO's, but I can't seem to get the MCAN IR register to return a value of 1 or 16 (indicating a new message is present in FIFO0 or FIFO1).
All I need to do is disable all MCAN filtration then use the ISR to trigger a read of incoming CAN messages, but I think that there are other settings besides the ANFE and ANFS that need to be adjust to get this to work.
