MCP2515 PASM based SPI-engine object, trouble sending messages
avionikeren
Posts: 64
Hi,
I have trouble sending CAN messages with this object.
The first transmitted message is almost correct except for the last byte, but the next ones are not even close to correct.
It looks like the pointer to DataBufferTx is only used the first time, then the adress to read from in ram is increased for each loop.
I have attached my code and a screenshot of what is received in the other end.
I guess the answer is simple, but I am totally stuck, does anyone else see what the problem is?
CAN test.spin
MCP2515-SPI Engine.spin
I have trouble sending CAN messages with this object.
The first transmitted message is almost correct except for the last byte, but the next ones are not even close to correct.
It looks like the pointer to DataBufferTx is only used the first time, then the adress to read from in ram is increased for each loop.
I have attached my code and a screenshot of what is received in the other end.
I guess the answer is simple, but I am totally stuck, does anyone else see what the problem is?
CAN test.spin
MCP2515-SPI Engine.spin
Comments