bxcan Transmit Interrupt #2120
Replies: 8 comments 11 replies
|
Hi @nopnop2002 |
|
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. |
|
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 |
|
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? |
|
Has there been any progress? Or do I need to issue new issues as a core library bug? |






Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
All reactions