SCB_UnconfiguredComm for SCB v4.0

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
YoIs_1298666
Level 5
Level 5
250 sign-ins 100 replies posted 100 sign-ins

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
1 Solution

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
5 Replies
Takashi_M
Moderator
Moderator
Moderator
1000 replies posted 500 solutions authored 750 replies posted

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

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

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

0 Likes

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

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