We are trying to setup an CAN-bus between one CWX and two FEZs. At the moment we can send data over the bus between FEZ_a and FEZ_b. We’ve implemented the CAN_RLP from tinyclr wiki on the CWX. We had some problems loading the RLP. After the first load we needed to reset and reload the firmware of the CWX.
We needed to make some adjustments to the sources to get it to run on CWX. The modified parts in RLP.h are:
[quote]// !!! The user must set these settings according to the used platform !!!
#define RLP_ADDRESS 0xA0000000
#define RLP_SIZE 0x001FB3FC
#define RLP_EXT_MAGIC 0x73DE1BEA
#define RLPext (*((RLPext_T**)(RLP_ADDRESS + RLP_SIZE)))
#define RLP_MAGIC_SIZE (sizeof(RLPext_T))[/quote]
We also needed to make some adjustments in the makefile, but that does not see to be relevant. After these changes we could load the RLP on the CWX without reloading the firmware everytime.
At the moment we connected an oscilloscope on the SPI lines between the MicroChip Daugtherboard and the CWX, but don’t see any data coming by. So we have some questions:
- Is there a way to check if the RLP is running ok?
- Did we made a mistake in connecting the Daugtheboard to the CWX?
- Is there an newer version of the RLP_CAN project and can this work with the newest framework?
- Any other hints or suggestions are most welcome!