I add CAN_MCR_ABOM to my configuration and now everything is working properly.
Thank you very much.
Jaroslaw
Search found 6 matches
- Tue Feb 02, 2016 8:17 am
- Forum: STM32 Support
- Topic: Problem with CanBus (STM32F407) when alone on bus.
- Replies: 14
- Views: 12901
- Tue Feb 02, 2016 7:47 am
- Forum: STM32 Support
- Topic: Problem with CanBus (STM32F407) when alone on bus.
- Replies: 14
- Views: 12901
Re: Problem with CanBus (STM32F407) when alone on bus.
My CanBus configuration:
Code: Select all
const CANConfig cancfg_500k = {
CAN_MCR_TXFP ,
CAN_BTR_SJW(0) | CAN_BTR_TS2(2) |
CAN_BTR_TS1(9) | CAN_BTR_BRP(5)
};- Tue Feb 02, 2016 7:30 am
- Forum: STM32 Support
- Topic: Problem with CanBus (STM32F407) when alone on bus.
- Replies: 14
- Views: 12901
Re: Problem with CanBus (STM32F407) when alone on bus.
The test loop is working properly because it still restarting canbus, - (canStop -> canStart -> ... etc. ) without restarting it doesn't work too.
- Mon Feb 01, 2016 2:35 pm
- Forum: STM32 Support
- Topic: Problem with CanBus (STM32F407) when alone on bus.
- Replies: 14
- Views: 12901
Re: Problem with CanBus (STM32F407) when alone on bus.
It's no problem in this piece of code - this code is only a test loop , which detect the moment when I insert another transmitting/receiving device on CanBus. It's work (test loop) properly and correctly switch the CanBus on in my STM32F407 device. But if I only initialize CanBus in my STM32F407 ...
- Mon Feb 01, 2016 12:10 pm
- Forum: STM32 Support
- Topic: Problem with CanBus (STM32F407) when alone on bus.
- Replies: 14
- Views: 12901
Re: Problem with CanBus (STM32F407) when alone on bus.
Thank you for replay.
I'm sure that hardware is ok.
I wrote a piece of code that sends a message and control descriptor fd.
fd = canTransmit(&CAND1, 0, &CanFrameTX, MS2ST(10));
if (fd < 0)
{
chprintf((BaseSequentialStream *)&SD2, "Transmit fail \r\n");
canStop(&CAND1); //still restarting can ...
I'm sure that hardware is ok.
I wrote a piece of code that sends a message and control descriptor fd.
fd = canTransmit(&CAND1, 0, &CanFrameTX, MS2ST(10));
if (fd < 0)
{
chprintf((BaseSequentialStream *)&SD2, "Transmit fail \r\n");
canStop(&CAND1); //still restarting can ...
- Mon Feb 01, 2016 10:15 am
- Forum: STM32 Support
- Topic: Problem with CanBus (STM32F407) when alone on bus.
- Replies: 14
- Views: 12901
Problem with CanBus (STM32F407) when alone on bus.
Hello ,
I have a problem with CanBus operation in STM32F407 when my device is alone on bus then stops transmition and reception.
I must start other device first on bus - which transmit or receive frames and then switch on (or reset) my device with STM32F407 (ChibiOS) .
Then everything works.
My ...
I have a problem with CanBus operation in STM32F407 when my device is alone on bus then stops transmition and reception.
I must start other device first on bus - which transmit or receive frames and then switch on (or reset) my device with STM32F407 (ChibiOS) .
Then everything works.
My ...