Skip to main content
Visitor II
April 3, 2024
Solved

is it possible to transfer data through CAN using DMA, Does the CAN support DMA?

  • April 3, 2024
  • 3 replies
  • 2111 views

I want to receive the data from one nucleo board through CAN protocol and it should trigger the DMA and shuffle the received data and transmit back again to another board.
In ioc configuration I am unable to enable the DMA (peripheral to memory and vice versa), it is showing like Memory-to-memory configuration. Manually I added the DMA configuration and trying to link the DMA with CAN peripheral, it is showing error like CAN_HandleTypeDef has no member named 'hdmatx'

    This topic has been closed for replies.
    Best answer by mƎALLEm

    Ok thanks:

    If you look at the reference manual RM0394 tables 41/42, there is no DMA request to the CAN peripheral:

    SofLit_0-1712136682002.png

    So no CAN transfers with DMA.

    3 replies

    Technical Moderator
    April 3, 2024

    Hello,

    First answer: not possible to use DMA with CAN.

    Which product are you using?

    NilaAuthor
    Visitor II
    April 3, 2024

    I am using Nucleo-L452RE board.

    mƎALLEmAnswer
    Technical Moderator
    April 3, 2024

    Ok thanks:

    If you look at the reference manual RM0394 tables 41/42, there is no DMA request to the CAN peripheral:

    SofLit_0-1712136682002.png

    So no CAN transfers with DMA.

    Super User
    April 3, 2024

    The Reference Manual(s) for the chip(s) you are using will tell you what peripherals are capable of DMA.

    The Reference Manual will be available on the Product Page for the chip, under 'Documentation'.

    You haven't said what chip(s) you are using, so impossible to be more specific.

    Technical Moderator
    April 3, 2024

    @Nila ,

    Before closing the thread could you please provide the MCU part number or the board you're using?

    The answer I provided needs to be more cocurate if you provide this info.

    Thanks

    NilaAuthor
    Visitor II
    April 4, 2024

    MCU part number is 497-17008-ND

    Super User
    April 4, 2024

    That's not an ST Part Number!

    As already noted, the ST Part Number for the MCU chip is STM32L452RE 

     

    (It looks like a DigiKey stock number - for the board, not the MCU)