Skip to main content
David Pekin
Senior
Jan 9, 2018 12:43 AM UTC
Question

STM32F722ZE CAN BUS implementation

Posted on January 09, 2018 at 01:43

I've recently brought up the CAN bus on a STM32F303 and I'm currently working on bringing it up on the F722ZE. I looked at the docs and the samples from the STM32756G_EVAL board. I was happy to see that the configuration looked pretty similar to the F303 board in that the CAN TX and RX pins are the same, i.e. PA11 and PA12 with AF9 configuration. The clocks are different but I'm using the clock configuration from the F722ZE I2C sample code so the clocks are working since the I2C is working. Unfortunately, when I try to do a CAN transmit, I get nothing on the CAN TX pin. It remains high. Likewise, when I send a packet to the F722ZE I never get a CAN receive complete callback. I'm missing something here.

Any thoughts on how the F722 needs to be programmed differently than the F303 board?

Thanks,

Dave

Note: this post was migrated and contained many threaded conversations, some content may be missing.
    This topic has been closed for replies.

    9 replies

    David Pekin
    Senior
    Jan 9, 2018 7:08 PM UTC
    Posted on January 09, 2018 at 20:08

    I'm still trying to get action on the PA11/PA12 when I call HAL_CAN_Transmit()...  The function returns a HAL_OK response but nothing on the TX pin.  Likewise no RX interrupt when I send a packet from the USB CAN dongle.  I do see the correct signal on the RX pin.  The mask is set up correctly to receive the packet.

    The CAN configuration (main.h, CAN_Config(), and msp functions) are taken directly out of the STM32F769I_eval  Networking CAN sample program.   The TX/RX pins are PA12 and PA11 respectively.  Those are brought out to the CN12 pins 14 and 16 on the Nucleo-144 board.  

    I've already brought CAN up on the F303 Nucleo 64 board so I've got a decent idea of how this should work but I'm at a loss somewhere.   Anybody with any suggestions on what I'm missing?

    Thanks,

    Tesla DeLorean
    Guru
    Jan 9, 2018 9:35 PM UTC
    Posted on January 09, 2018 at 21:35

    Have you altered the SB (solder bridges) to allow for this functionality on PA11/PA12?

    I'd need to see the code you're actually building rather than try to recreate it by walking in your footprints.

    Make sure you are enabling the right clocks, and doing so before configuring the peripherals reliant on those clocks.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    David Pekin
    Senior
    Jan 9, 2018 9:57 PM UTC
    Posted on January 09, 2018 at 21:57

    I have not done anything with solder bridges...  I will look into that.   Thanks.