Hi Marc,
Francois >It's a coldfire processor isn't it? yes it is a v4 core. >IIRC it has the old flexcan core. ok how do you do this? >> used to write and read consecutively in a while loop. Therefor I have no >> problem creating the socket and communicating between the can1 I/F and a >> second device, but the program reset by itself after a while. > Like Oliver asked, what does that mean exactly? The Whole system seems to reboot when running my CAN loop program. > Can you send me where you downloaded the BSP/kernel? Yes it was taken from the M54418TWR tower CD, or here M54418Tower_Linux_BSP_20110422_ltib.iso : http://cache.freescale.com/lgfiles/bsps/M54418Tower_Linux_BSP_20110422_ltib.iso?WT_TYPE=Board%20Support%20Packages&WT_VENDOR=FREESCALE&WT_FILE_FORMAT=iso&WT_ASSET=Downloads* * you may have to register before download. > What does "hardware dependent" mean? BSP driver issue. thanks Francois 2011/9/7 Marc Kleine-Budde <[email protected]> > Hallo, > > On 09/07/2011 06:28 PM, Francois Bouchard wrote: > > Attempting to create heavy traffic with M54418TWR CAN interface, S socket > is > > It's a coldfire processor isn't it? IIRC it has the old flexcan core. > The mainline driver doesn't support that core, so I think it's provided > by flexcan. > > > used to write and read consecutively in a while loop. Therefor I have no > > problem creating the socket and communicating between the can1 I/F and a > > second device, but the program reset by itself after a while. > > Like Oliver asked, what does that mean exactly? > > > CODE: > > *while(numofmsg) > > { > > nbytes = write(can_socket, &tx_frame, sizeof(struct can_frame)); > > numofmsg--; > > > > // recv() > > nbytes = recv(can_socket, &rx_frame, sizeof(struct can_frame), > > MSG_DONTWAIT ); > > > > // ... > > } > > > > Is there some coding rules or prevention when doing something like that? > > It is also hardware dependent, so I should check that also. > > What does "hardware dependent" mean? > > > target: ( Freescale 54418TWR ); > > Linux version 2.6.29 (gcc version 4.4.1 (Sourcery G++ Lite 4.4-54) ) #49 > Wed > > Aug 10 15:50:50 EDT 2011 > > Can you send me where you downloaded the BSP/kernel? > > cheers, Marc > > -- > Pengutronix e.K. | Marc Kleine-Budde | > Industrial Linux Solutions | Phone: +49-231-2826-924 | > Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | > Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | > >
_______________________________________________ Socketcan-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-users
