cancel
Showing results for 
Search instead for 
Did you mean: 

MCP2515 in Interrupt mode using STM32WL

FPicc.1
Senior

Hi all,

I'm using MCP2515 for a CAN application in the NUCLEO STM32WL board. I've managed to get it to work in pulling mode, however, I want to use interrupt mode. 

For what I looked, I just have to enable the MCP interrupt pin in EXTI mode in cubeMX, but the MCP interrupt pin that I set (PA0) is already set as the BUT1 pin (on board button). I didn't change the configurations, only set in the callback to activate if occurs the rising edge of BUT1_Pin (tried with falling edge too).

It didn't work, but I don't know if I have to configure something more, or the fact that the pin is shared with the button changes something and it could be the problem.

Any insights will be helpfull.

10 REPLIES 10

So either enable pullups for the stm32 pin or connect pullups.  Datasheet is your best friend for the register programming.  Good luck 

If you feel a post has answered your question, please click "Accept as Solution".