PSoC4 : Confirmation of KBA93541 project contents

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

cross mob
MiNe_85951
Level 7
Level 7
Distributor - TED (Japan)
50 likes received 500 replies posted 50 solutions authored

Dear Sirs and Madams,

 

We are considering HSSP for PSoC4.

Therefore, I refer to the information of KBA93541.

 

KBA93541

https://community.infineon.com/t5/Knowledge-Base-Articles/Using-the-CY8CKIT-049-to-Program-Another-P...

 

MaMi_1205306_0-1652328255896.png

We have downloaded and referenced the "4 dollar programmer_001-93541.zip" attached to KBA.

So I have a question about this project.

I know it's probably a clerical error, but please check it.

 

MaMi_1205306_1-1652328439246.png

I think it is correct that line 120 uses the ”UART_Rx_ClearRxBuffer()” API of the UART_Rx component,

However "UART_Rx_ClearRxBuffer()" on line 87 in the project's main.c, shouldn't this be "SCB_SpiUartClearRxBuffer()"?

 

Regards,

0 Likes
1 Solution
Gautami_12
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 250 replies posted

Hi @MiNe_85951 ,

This issue is fixed. Please verify.

Warm Regards,
Gautami J

View solution in original post

4 Replies
Gautami_12
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 250 replies posted

Hi @MiNe_85951,

The project was created with the old component of version 1.10
that is why the old API UART_Rx_ClearRxBuffer() is used.
 

Warm Regards,
Gautami J


 

 

 

MiNe_85951
Level 7
Level 7
Distributor - TED (Japan)
50 likes received 500 replies posted 50 solutions authored

Gautami-san,

 

Thank you for your reply.

Have you confirmed for the project for "4 dollar programmer_001-93541.zip"?

 

In this project, UART(SCB) and UART(UDB)  are placed on the schematic.

MaMi_1205306_0-1652447013512.png

In main.c, these two components are used properly.

MaMi_1205306_1-1652447106080.png

The description of UART (SCB) corresponds to the following:

MaMi_1205306_2-1652447172593.png

Similarly, The description of UART (UDB) corresponds to the following:

MaMi_1205306_3-1652447235937.png

My question points out that it is a mistake to describe the UDB API in the SCB description.

 

I have read your answer and confirmed the v1.10 data sheet.

MaMi_1205306_4-1652447557334.png

component - PSoC4 SCB v1.10 Datasheet URL

https://www.infineon.com/dgdl/Infineon-Component_PSoC_4_SCB_V1.10-Software%20Module%20Datasheets-v04...

 

Even in v1.10, UART_Rx_ClearRxBuffer () is not an API for SCB UART.

 

I think you don't need the buffer clear API as it will be overwritten on the next receive.

However, don't you think it makes no sense to write the API of UDB(UART_Rx_ClearRxBuffer ()) on line 87?

I think it is correct to write the API of SCB(SCB_SpiUartClearRxBuffer()).

 

Would you please check again?

 

Regards,

0 Likes
Gautami_12
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 250 replies posted

Hi @MiNe_85951,

Thanks for addressing this issue.
We will discuss this issue internally and it will be fixed shortly.

Warm Regards,
Gautami J

0 Likes
Gautami_12
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 250 replies posted

Hi @MiNe_85951 ,

This issue is fixed. Please verify.

Warm Regards,
Gautami J