Skip to main content
abdou si
Associate III
June 8, 2017
Question

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

  • June 8, 2017
  • 4 replies
  • 1306 views
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
This topic has been closed for replies.

4 replies

Jeroen3
Senior
June 9, 2017
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.

Technical Moderator
June 9, 2017
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"".ThanksImen"
Nickname12840_O
Associate
June 9, 2017
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
Visitor II
August 15, 2017
Posted on August 15, 2017 at 15:37

When will the new version of STM32_MAT be updated?