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

PSoC™ 6 Forum Discussions

SepehrZ
Level 2
First like received First solution authored 10 sign-ins
Level 2

Hello,

We have recently come across an issue in our app where calling Cy_Flash_WriteRow() stops audio playback. When inspecting the I2S DMA channel struct I observed that .CH_CTL is set to disabled, and .CH_IDX is set to 0 after calling the flash write function. 

Any help with this would be greatly appreciated. I cannot share our whole project but I can share certain files and parts of our code if need be.

Thank you.

 

Edit: After more testing the issue seems to appear when I2S is running at 512 kbps. I have attached our top design and design wide resources for you to investigate. Our app is built on the CE220960 example code  (Bootloader_BLE_Upgradable_Stack PDL 3.0).

 

 

0 Likes
1 Solution
Ekta
Moderator
Moderator 250 solutions authored 100 likes received 250 sign-ins
Moderator

Hi @SepehrZ 

The Cy_Flash_WriteRow is a blocking operation and does not return until the write operation is complete.

I am not sure if this would interfere with the I2S communication. The top design and the design-wide configuration files would not be sufficient to debug the issue here. 

If an application reaches out to you regarding this issue, would it be possible for you to share the project via email?

Best Regards
Ekta

View solution in original post

0 Likes
1 Reply
Ekta
Moderator
Moderator 250 solutions authored 100 likes received 250 sign-ins
Moderator

Hi @SepehrZ 

The Cy_Flash_WriteRow is a blocking operation and does not return until the write operation is complete.

I am not sure if this would interfere with the I2S communication. The top design and the design-wide configuration files would not be sufficient to debug the issue here. 

If an application reaches out to you regarding this issue, would it be possible for you to share the project via email?

Best Regards
Ekta

0 Likes