cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in block CAN_Send and CAN_Receive from STM32-MAT/TARGET 4.4.1 and soution

abdou si
Associate III
Posted on June 09, 2017 at 01:47

the block CAN_Send and CAN_Receive didn't work well i found an issue and i propose a solution explain  in this document 

#problem-can #solution-can #stm32-mat/target
4 REPLIES 4
Jeroen3
Senior
Posted on June 09, 2017 at 08:02

The

strncpy()

function copies not more than

n

bytes (bytes that follow a null byte are not copied) from the array pointed to by

s2

to the array pointed to by

s1

. If copying takes place between objects that overlap, the behaviour is undefined.

Correct, that would be a problem.

Imen.D
ST Employee
Posted on June 09, 2017 at 10:52

Hi

si.abdou

,

Thank you again for your contribution to improve our solutions.

I will raise your reported issue to the appropriate team for check and more investigation.

Thanks

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on June 09, 2017 at 11:08

Hello,

sorry for this problem. It has been solve for next release, replacing strncpy with memcpy.

Best regards

Pascal

tianchen.fan
Associate II
Posted on August 15, 2017 at 15:37

When will the new version of STM32_MAT be updated?