2009-09-08 03:32:04 BF536 can4linux Send Error
david wang (CHINA)
Message: 79666
Hi, all
I'm working on a bf536 board, it's running at 300MHZ cclk and 100MHZ sclk. I compiled the kernel and rootfs with can4linux driver and can_test. I put 2 modules connectted together. But when I running the can_send, I got below error, what's the problem? Thanks!
root:/> can_send -d 10 01 02 03 04 05 06 07 08
can_send V 1.7, Sep 8 2009
(c) 1996-2006 port GmbH
using canmsg_t with 32 bytes
data at offset 22
max process priority is "-p 1"
should send mess 10 with: : 01 02 03 04 05 06 07 00
Sleeptime between transmit messages= 0 us
Open device /dev/can0
opened /dev/can0 succesful, got can_fd = 3
transmit message 10
write 1 bytes
chip baud status error_lim rx_error tx_error error_code tx_buf_size/use rx_buf_size/use
Blackfin 125 22528 96 0 48 64 64/ 0 64/ 0
closed fd = 3 succesful
root:/>
QuoteReplyEditDelete
2009-09-08 04:08:40 Re: BF536 can4linux Send Error
Sonic Zhang (CHINA)
Message: 79667
The only supported sclk in this CAN driver is 125Mhz.
QuoteReplyEditDelete
2009-09-08 04:30:54 Re: BF536 can4linux Send Error
david wang (CHINA)
Message: 79669
Hi, Sonic
How to set SCLK to 125MHZ? Need I set CCLK to 250MHZ and DIV to 2?
QuoteReplyEditDelete
2009-09-08 05:08:08 Re: BF536 can4linux Send Error
david wang (CHINA)
Message: 79670
Hi, Sonic
I've set the SCLK to 125MHZ, but the result is the same.
root:/>
root:/>
root:/> catpinit: /sbin/syslogd respawning too fast
root:/> cat /proc/cpuinfo
processor : 0
vendor_id : Analog Devices
cpu family : 0x27c8000
model name : ADSP-BF536 375(MHz CCLK) 125(MHz SCLK)
stepping : 3
cpu MHz : 375.000/125.000
bogomips : 747.52
Calibration : 373760000 loops
cache size : 16 KB(L1 icache) 16 KB(L1 dcache-wb) 0 KB(L2 cache)
dbank-A/B : cache/sram
icache setup : 4 Sub-banks/4 Ways, 32 Lines/Way
dcache setup : 1 Super-banks/4 Sub-banks/2 Ways, 64 Lines/Way
No Ways are locked
board name : ADDS-BF537-STAMP
board memory : 32768 kB (0x00000000 -> 0x02000000)
kernel memory : 29692 kB (0x00100000 -> 0x01dff000)
QuoteReplyEditDelete
2009-09-08 06:14:25 Re: BF536 can4linux Send Error
Sonic Zhang (CHINA)
Message: 79673
which release do you use?
please refer to following doc.
docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:can_module
QuoteReplyEditDelete
2009-09-08 07:40:04 Re: BF536 can4linux Send Error
david wang (CHINA)
Message: 79675
2008 R1.5-RC3
QuoteReplyEditDelete
2009-09-09 04:06:48 Re: BF536 can4linux Send Error
david wang (CHINA)
Message: 79700
Can anyone give me any advise? Thanks!
QuoteReplyEditDelete
2009-09-11 06:52:17 Re: BF536 can4linux Send Error
david wang (CHINA)
Message: 79802
Hi, all
I use an oscilloscope to see the can signal, but the data frame captured are 110110110110110..., it looks not like correct CAN frames. What's the problem?
QuoteReplyEditDelete
2009-09-13 23:51:44 Re: BF536 can4linux Send Error
Sonic Zhang (CHINA)
Message: 79852
Do you have 2 bf536 board?
Could you connect the CAN ports of these 2 boards together and try following simple testing?
root:/> can_receive
root:/> can_send 10 01 02 03 04 05 06 07 08