uart_write() strange behaviour

Fully featured ARM compilers available on Windows, Linux, and macOS.
Post Reply
Author
Message
Kct@vt
Posts: 6
Joined: 07 Jun 2021 19:26

uart_write() strange behaviour

#1 Post by Kct@vt » 25 Jun 2021 16:25

Hi,

I'm using uart_write() to send a 7 byte array out the serial port (mikroBUS 1) every second.

uart_write(&uart, frame, 7);

I have the uart library set for blocking operation (mikroSDK 2.0).

hardware: EasyMxPro v7, STM32F107VC

The 1st write sends out 9 bytes, and subsequent writes send out typically 1 or 2 bytes.
After a while, it does send out 7 bytes but not starting at the right location and sometimes it sends out values of 0 (which are not in my array).

It appears that the ring buffer code of the uart isn't working correctly?

User avatar
filip.grujcic
Posts: 822
Joined: 14 May 2018 08:34

Re: uart_write() strange behaviour

#2 Post by filip.grujcic » 29 Jun 2021 13:28

Hello,

Would it be possible for you zip and attach your project, so we could take a look at it?

Regards,
Filip Grujcic

Post Reply

Return to “ARM AI Compilers”