cancel
Showing results for 
Search instead for 
Did you mean: 

STM32-MAT/TARGET: Issues with CAN_Send Block

Posted on February 27, 2016 at 16:31

Hi,

I would like to use the STM32-Mat/Target to generate C Code with Matlab Simulink.

When using the CAN_Send Block from the Target Support Package Library I can send CAN-Messages, but they are all zeros (ID = 0, Data = 0, DLC = 0, ...) even though I specified values f�r the Input Ports.

The Reason for this is that the CAN_Send.tlc File writes the specified values into the pRxMsg Struct instead of the pTxMsg Struct (see attached File) :

When chaning pRxMsg to pTxMsg in the .TLC File or the C-Code everything works fine.

Has anyone encountered the same problem?

Is this a problem with the STM32-Mat Target or am I using the Send Block incorrectly?

Thanks for your Help

Thomas

#mattarget #simulink #can #stm32
0 REPLIES 0