Hello Everyone! I'm not able to get clock on SPI_CLK pin. So my candump is just getting stuck.
I need to configure the pins properply. But all the SPI1 pins are coming directly from the processor, no GPIO settings required. Did anyone face this issue of clock not coming on the SPI_CLK pin. General information: Processor used - omap3730 Master: SPI bus used - SPI1 Chip select - CS0 MODE - 0 Slave: CAN device - mcp215 MODE 0 I don't know what I'm missing. Thank you, Regards, Padma. On Fri, Aug 12, 2011 at 12:17 AM, Oliver Hartkopp <[email protected]>wrote: > Hi Padma, > > i'm not a specialist on the MCP2515 but can help you on general problems > with > the network layer - which is obviously ok on your system. > > If you get 'no buffer space available' usually the CAN frames can not be > sent > by the CAN controller. This could be, if ... > > 1. you only have _one_ CAN node (you need at least two CAN nodes!!) > 2. you use different bitrates on sender / receiver > 3. your CAN bus is not terminated properly > > Please check these things first. If you have a reliable CAN traffic source > reading this traffic is also a good thing (before sending). > > Regards, > Oliver > > > On 11.08.2011 14:28, Padma Chavala wrote: > > Hi Oliver, > > I need your help again. > > > > I tried loopback test on the board and its working fine. > > I executed test_netlayer.sh and test is successful. > > > > But when I connect a real CAN device to tranceiver end and transfer > data(used > > cangen) to the connected device by checking > > candump can0 it was getting stuck always. > > > > After sometime sender gives me a message > > write: No buffer space available > > First time write was successfull and read was stuck > > Now write is not happenning,it is always throwing me below message.. > > write: No buffer space available > > > > Board 1: > > /sbin/ip link set can0 type can bitrate 125000 triple-sampling on > > ifconfig can0 up > > cansend can0 5A1#11.22.33.44.55.66.77.88 > > > > Board 2: > > /sbin/ip link set can0 type can bitrate 125000 triple-sampling on > > ifconfig can0 up > > candump can0 > > > > And also I'm not getting any interrupt in > > cat /proc/interrupts > > > > What might be the issue? > > Am I missing anything? > > Can you please tell me. > > > > Waiting for your reply.. > > > > Thank you so much for your help. > > > > > > > > > > > > On Mon, Aug 8, 2011 at 8:58 PM, Oliver Hartkopp <[email protected] > > <mailto:[email protected]>> wrote: > > > > Hi Padma, > > > > you first should try to work on the virtual CAN driver 'vcan' to make > sure > > whether it depends on the CAN hardware driver or the CAN networking > stack. > > > > Please check the 'test_netlayer.sh' script in socketcan/trunk/test : > > > > Build the test tools ('make') and then run ./test_netlayer.sh as > root. > > > > If everything is fine then, you have a problem with the hardware > driver. > > > > Regards, > > Oliver > > > > > > On 08.08.2011 16:22, Padma Chavala wrote: > > > Hi Oliver, > > > I'm able to cross compile can-utils and copy to target filesystem. > > > I want to check loopback testing for CAN. > > > when I give > > > candump can0 > > > board gets stuck. > > > I wrote a simple code but it is also getting stuck in read > function. > > > > > >
_______________________________________________ Socketcan-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-users
