I am working with uClinux 2010R, and BF548 as embeded target, i want to reach 1Mbps with the CAN driver but it generate an error when i force it to work with this baitrate, is there any one who know how to fix this problem.
could you post your command and details of the error?
when i execute these commands while running application the kernel crash :
root:/> modprobe bfin-can root:/> ip link set can0 type can bitrate 1000000 bfin_can bfin_can.0: bitrate error 0.5% bfin_can bfin_can.0: setting CLOCK=0x002b TIMING=0x0000 root:/> cansend can0 123#11223344 write: Network is down
We will investigate and be back to you.
This bug is tracked at http://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=6932&start=0
The process of setting and using CAN is
(a) ip link... (set bit rate)
(b) ifconfig can0 up
(c) cansend ....
I think you have forgotten step (b).
I don't know if there is some other issue, but you may try this one.
The bitrate calculation algorithm does not work well on bf548 due to system clock on bf548 is 131250000 and is not a multiple of 8Mhz. Now this issue has been fixed on latest code.
Retrieving data ...