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   |

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to