I’m using Ubuntu Linux AMD64, but I also have Windows 7 and access to a laptop with Mac OS X (Leopard?) if that is necessary. I only occasionally get the “(1 ignorable errors during upload)” message, so I think it’s pretty stable; though I recently have been getting “Error 14: Bad SysEx message” or something when uploading to one of my cores. Putting it into bootloader mode fixes that.
Anyway, to get back to the MBNET: I have three cores with different sections of the board stuffed for each (as per the requirements of my build), and I checked the CAN hardware on all three. It seems to be fine (continuity from LPCXPRESSO module, correct 1k on each board, correct diode voltage drop in correct direction, connected to +5–though should it be connected to +3.3 instead, since that’s the core voltage?) I have been trying the MBNET application with different pairs of the three cores.
The following all happens whether or not the CAN wire is connected between the cores.
If I compile the application with the node ID being initialized to a slave node, in this case 0x05, the core starts up with “[MBNET] initialized------” and when I type “mbnet”, says that MBNET is running (and that it can’t find any slaves). If there are two cores like this connected with the wire, telling them both to reconnect does not make them see each other.
However, ff I change the node ID to a master node, in this case 0x00 or 0x10, or compile the application with this as its node ID:
[1992.086] set mbnet_id 0x10
[1992.089] MBNET ID changed to 0x10.
[1992.089] [MBNET] sent REQ: ID:0x00 TOS=3 DLC=0 MSG=00 00 00 00 00 00 00 00
[1992.089] [MBNET] ERRORs detected - permanent off state reached!
[1992.090] [MBNET] sent REQ: ID:0x01 TOS=3 DLC=0 MSG=00 00 00 00 00 00 00 00
[1992.091] [MBNET] sent REQ: ID:0x02 TOS=3 DLC=0 MSG=00 00 00 00 00 00 00 00
[1992.092] [MBNET] sent REQ: ID:0x03 TOS=3 DLC=0 MSG=00 00 00 00 00 00 00 00
[1992.093] [MBNET] sent REQ: ID:0x04 TOS=3 DLC=0 MSG=00 00 00 00 00 00 00 00
[etc.]
Once the core has been put in permanent off, nothing but resetting it turns on the CAN again. Even after changing the node ID back to a slave node and telling it to reconnect, it still says that the bus is permanent off.
This is complicated by the fact that once I get it working, I need all three cores to be masters!