Search found 14 matches
- Fri Sep 05, 2014 5:16 pm
- Forum: STM32 Support
- Topic: STM32F105 and CAN2
- Replies: 4
- Views: 3501
Re: STM32F105 and CAN2
Ok, thank you!
- Fri Sep 05, 2014 4:56 pm
- Forum: STM32 Support
- Topic: STM32F105 and CAN2
- Replies: 4
- Views: 3501
STM32F105 and CAN2
Does ChibiOS support CAN2 on STM32F105? I try to compile program, but get error "C:/ChibiOS/os/hal/platforms/STM32/can_lld.c:448:5: warning: implicit declaration of function 'rccEnableCAN2' [-Wimplicit-function-declaration]"
I see, that rccEnableCAN2 define only for STM32F4xx platform.
I see, that rccEnableCAN2 define only for STM32F4xx platform.
- Mon Aug 19, 2013 8:47 pm
- Forum: STM32 Support
- Topic: CAN packets are being lost
- Replies: 19
- Views: 14290
Re: CAN packets are being lost
What is the exact physical configuration of the bus (number of nodes, location of termination resistors, etc)?
For the purposes of testing, could you disable silent mode and loopback mode if they are enabled?
I try to read flash memory from automotive ECU via CAN, just connect CAN transiver to ...
For the purposes of testing, could you disable silent mode and loopback mode if they are enabled?
I try to read flash memory from automotive ECU via CAN, just connect CAN transiver to ...
- Mon Aug 19, 2013 8:44 pm
- Forum: STM32 Support
- Topic: CAN packets are being lost
- Replies: 19
- Views: 14290
Re: CAN packets are being lost
Giovanni thanks a lot! You were right, the problem was not connected with the CAN driver. The problem was connected with the fact that there was quite a long interval between the moment of enquiry from the external device and reading answer from it . During this interval the buffer FIFO was ...
- Mon Aug 19, 2013 9:39 am
- Forum: STM32 Support
- Topic: CAN packets are being lost
- Replies: 19
- Views: 14290
Re: CAN packets are being lost
Giovanni wrote:Can you use the filters to use both RX FIFOs? that would double the number of buffers.
Giovanni
I use only one RX FIFO. I don't know how to use second, all CAN packet have the same CAN ID.
- Mon Aug 19, 2013 9:14 am
- Forum: STM32 Support
- Topic: CAN packets are being lost
- Replies: 19
- Views: 14290
Re: CAN packets are being lost
When I use the speed 125000 the program works but not all the time. In my case CAN filters will not help as the external device transmits only those packets which are necessary to me and there is no need in filtration.
The peculiarity of the external device is the following: the device sends an ...
The peculiarity of the external device is the following: the device sends an ...
- Sun Aug 18, 2013 9:06 pm
- Forum: STM32 Support
- Topic: CAN packets are being lost
- Replies: 19
- Views: 14290
Re: CAN packets are being lost
Giovanni wrote:Also the main() is a thread at normal priority, do you have other activity there? if so try moving the CAN thread to normal priority +1.
Giovanni
No activity in main(). Just start single thread and endless loop:
Code: Select all
for(;;)
{
chThdSleepMilliseconds(1000);
}
- Sun Aug 18, 2013 1:49 pm
- Forum: STM32 Support
- Topic: CAN packets are being lost
- Replies: 19
- Views: 14290
Re: CAN packets are being lost
This seems to confirm that you are unable to consume incoming packets fast enough, do you have other threads at the same priority or higher priority of the CAN thread?
If not, could you try to reduce the rate of packets on the sender?
Giovanni
I use in application one thread only with normal ...
If not, could you try to reduce the rate of packets on the sender?
Giovanni
I use in application one thread only with normal ...
- Sun Aug 18, 2013 1:23 pm
- Forum: STM32 Support
- Topic: CAN packets are being lost
- Replies: 19
- Views: 14290
Re: CAN packets are being lost
Try putting a listener on the error event source (error_event field of CANDriver), if there is an error on the driver side it is there that you get the problem encoded into the flags.
Giovanni
I have got error 0x19. As I understood it means CAN_OVERFLOW_ERROR | CAN_FRAMING_ERROR | CAN_LIMIT ...
Giovanni
I have got error 0x19. As I understood it means CAN_OVERFLOW_ERROR | CAN_FRAMING_ERROR | CAN_LIMIT ...
- Sat Aug 17, 2013 9:23 pm
- Forum: STM32 Support
- Topic: CAN packets are being lost
- Replies: 19
- Views: 14290
Re: CAN packets are being lost
Hi,
Hard to tell, the code looks correct. Does the driver report errors? could it be an HW problem or a problem in the sender? does it happen that canReceive() returns something different from RDY_OK?
Just a note, the function canReceive() is able to wait without having to use events.
Giovanni ...
Hard to tell, the code looks correct. Does the driver report errors? could it be an HW problem or a problem in the sender? does it happen that canReceive() returns something different from RDY_OK?
Just a note, the function canReceive() is able to wait without having to use events.
Giovanni ...