bxcan Transmit Interrupt #2120
Replies: 8 comments 11 replies
-
Hi @nopnop2002 |
Beta Was this translation helpful? Give feedback.
-
Thanks for your comment. I changed it like this.
It seems that CAN1_TX_IRQHandler(same as USB_HP_CAN1_TX_IRQHandler) is defined as a week function.
Even if we remove this, no errors will occur in the link.
but it hangs. The implementation of the week function may be incomplete. |
Beta Was this translation helpful? Give feedback.
-
I use NUCLEO-STM32F103.
I use Arduino IDE. |
Beta Was this translation helpful? Give feedback.
-
IIWR you can't use USB and CAN at the same time. Or when you told Serial uses USB you talk about the one from STLink |
Beta Was this translation helpful? Give feedback.
-
Serial objects can be used as standard in NUCLEO.
Are you saying that BxCAN and Serial objects cannot be used at the same time on the NUCLEO board? STM32F103 can use a Virtual COM port. In NUCLEO, i think that it not use Virtual COM port. This is the Arduino Serial monitor when performing BxCAN communication using the NUCLEO board. Are you saying that [BxCAN Inetrrupt function] and [STLINK COM port Serial objects] cannot be used at the same time on the NUCLEO board? |
Beta Was this translation helpful? Give feedback.
-
I installed Arduino IDE 2.2.1. I have never used debug session. I need advice on what to do. However, Arduino IDE 2 has a lot of bugs. |
Beta Was this translation helpful? Give feedback.
-
I set a Breakpoint on CAN1_TX_IRQHandler. I found out that HALT is done on return from this function. |
Beta Was this translation helpful? Give feedback.
-
Has there been any progress? Or do I need to issue new issues as a core library bug? |
Beta Was this translation helpful? Give feedback.
-
I'm using NUCLEO STM32F103 and Version 2.6.0 Core.
I want to use the BxCAN transmission completion interrupt
Four interrupt vectors are dedicated to bxCAN.
Each interrupt source can be independently enabled or disabled by means of the CAN Interrupt Enable register (CAN_IER).
My Code:
Set the IER register during BxCAN initialization.
add an interrupt handler.
Add the following to the Setup function.
but it doesn't work properly.
Sending BxCAN freezes the sketch.
If I comment out the following, it works fine.
I would like some advice.
Beta Was this translation helpful? Give feedback.
All reactions