cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

YoIs_1298666
Contributor II

Hello,

We have a warning on "const Comm_UART_INIT_STRUCT configUart = {}" of "main.c".

In case of SCB v4.0, The number of members in structure is different between "main.c" and "Comm_UART.c."

pastedImage_2.png

Best regards,

Yocchi

0 Likes
Reply
1 Solution
YoIs_1298666
Contributor II

Hello,

Please see three structures below.

pastedImage_4.png

If we update SCB from v3.20 to v4.0, there is one more member.

The adding member is "(uint8) Comm_UART_RX_BREAK_WIDTH".

So, we need to add " DISABLED,  /* Comm_UART_RX_BREAK_WIDTH */ " as the bottom member of the structure "const Comm_UART_INIT_STRUCT configUart =" in main.c.

Best regards,

Yocchi

View solution in original post

0 Likes
Reply
5 Replies
TakashiM_61
Moderator
Moderator

Dear Yocchi-san,

Probably, you may use SCB_UnconfiguredComm Example Project 1.10.

could you please confirm this?

And, when I just updated components (SCB, and etc) and SCB_UnconfiguredComm Example Project*, no warning occurred.

could you please elaborate what you modified, and what warning log was?

thank you.

P.S. Please describe more detail in description for inquiry in order to efficient support.

0 Likes
Reply
YoIs_1298666
Contributor II

Hello Takashi-san,

I just imported the code example with PSoC Creator 4.3.

pastedImage_0.png

If we compile this project under the following conditions(with Current Version), there is no warning.

pastedImage_2.png

Then , after updating SCB from 3.2 to 4.0, we have a warning.

Best regards,

Yocchi

0 Likes
Reply
YoIs_1298666
Contributor II

Hello,

Please see three structures below.

pastedImage_4.png

If we update SCB from v3.20 to v4.0, there is one more member.

The adding member is "(uint8) Comm_UART_RX_BREAK_WIDTH".

So, we need to add " DISABLED,  /* Comm_UART_RX_BREAK_WIDTH */ " as the bottom member of the structure "const Comm_UART_INIT_STRUCT configUart =" in main.c.

Best regards,

Yocchi

View solution in original post

0 Likes
Reply
YoIs_1298666
Contributor II

Hello,

I tell you the additional information.

There is no warning in the "Notice List". But there is a warning in the source code in "main.c".

pastedImage_0.png

Best regards,

Yocchi

0 Likes
Reply
TakashiM_61
Moderator
Moderator

Dear Yocchi-san,

We appreciate your investigation for this issue.

Regarding solution of workaround, please initialize "(uint8) Comm_UART_RX_BREAK_WIDTH" member in main.c, as you explained in Response 3. (if you updated SCB component to V4.0.)

thank you.

0 Likes
Reply