Hello everyone,
Question
I want my CAN to receive every message with ID 0x1000 to 0x1FFF, how can I do it ?
Ugly solution
NB: My CAN(s) can already receive messages with CAN_receive() by calling CAN_rx_object() with the correct ID.
U32 i = 0; for (i = 0x1000; i < 0x1FFF; i++) { CAN_rx_object(CAN_CTRL, CAN_CH, i, DATA_TYPE | EXTENDED_TYPE); } /* ... */
Is there something more elegant to do so ?
Best regards,
Vincent
-- Apendix Device: LM3Sxxxx (LM3S9B96) CAN : Basic CAN
Hi Vincent, we've faced the same problem. We need to be able to receive up to 40 different CAN msgs. What is the solution you had found?
We use STM32F103.
--> Device: LM3Sxxxx (LM3S9B96) -> We use STM32F103.
Actually, you are talking about a completely different MCU, and a completely different CAN Controller.
22 Controller area network (bxCAN) Low-density devicesare STM32F101xx, STM32F102xx and STM32F103xx microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes.
22.2 bxCAN main features Transmission: Three transmit mailboxes, Configurable transmit priority, Time Stamp on SOF transmission Reception: Two receive FIFOs with three stages, Scalable filter banks: