SPI access through USB Control Center using Cypress FX3 USB BootProgrammer Device - SPI stuck Busy

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

cross mob
MiJo
Level 2
Level 2
10 sign-ins 5 replies posted 5 sign-ins

Dear Sirs,

I am working on the USBAudioClass Example - but get no sound from the kit.

In debugging this I want to verify the PCM file I actually stored in the SPI, using USB BootProgrammer Device.

But now, no matter what I try, I get SPI busy. I have of course waited (more than an hour), but it just do not seem to get back from being busy.
I have flashed the device with the factory default image (USBBulkSourceSinkLED). This is still working.

But as soon as I reflalsh the USB BootProgrammer, and access the SPI, I get Busy.
I am following the the guide in the readme.txt under the USB BootProgrammer.
I have also read and tried out suggestions from many of the similar posts.
Examples of the Control Center screenshots exercises to be found in attached .zip.

I just want to flash and make a verify by reading (Read File).

I get a success in resetting the SPI; but when ever I try to read (Transfer Data or Transfer File), I get error code 997.

My system is WIndows 10. Both Windows, and the Dev kit is newest and updated.

It would be really nice to get some input, to proceed.

 

Best Regards

0 Likes
1 Solution
Biren_R
Moderator
Moderator
Moderator
First question asked First like given 250 sign-ins

Hello Michael,

This hardware doesn't have SPI flesh so it will always fail.

Best Regards,
Biren

View solution in original post

0 Likes
8 Replies
Biren_R
Moderator
Moderator
Moderator
First question asked First like given 250 sign-ins

Hello,

Can you please send this attached.zip file which you maintain on description and please send the full UART log for timeout error?

This old question
 explains the same workflow you can follow this explanation.

https://community.infineon.com/t5/USB-superspeed-peripherals/How-to-store-audio-data-in-flash-for-th...

 

Best Regards,
Biren

0 Likes
MiJo
Level 2
Level 2
10 sign-ins 5 replies posted 5 sign-ins

Thanks Biren,

 

Please find the .zip file attached.

I am not getting any readings from the console (on COM6 in my setup) - same console works wj´hen running the

USBDebug Example.

I have alrealy looked at the above example, and many others.

Best Reagds
Michael

0 Likes
Biren_R
Moderator
Moderator
Moderator
First question asked First like given 250 sign-ins

Hello Michael,

Can you please share your dev kit part number?

Best Regards,
Biren

0 Likes
MiJo
Level 2
Level 2
10 sign-ins 5 replies posted 5 sign-ins

Hi Biren,

On the box it says
CYUSB3KIT-003 Rev B
2112CN00346

on the printet label of the PCB it says:

121-60162-01
Rev 05
2112CN00346

Best Regads,

Michael

0 Likes
Biren_R
Moderator
Moderator
Moderator
First question asked First like given 250 sign-ins

Hello Michael,

This hardware doesn't have SPI flesh so it will always fail.

Best Regards,
Biren

0 Likes
MiJo
Level 2
Level 2
10 sign-ins 5 replies posted 5 sign-ins

Hello Biren,

 

That explains it:-)

Do you know of any example code for this board, where I can stream audio?

It does not have to be official.

And do you know why debug info is not printed in a serial terminal for the Boot Programmer sw?

Best Regards,

Michael

0 Likes
Biren_R
Moderator
Moderator
Moderator
First question asked First like given 250 sign-ins

Hello Michael,

Sorry, we don't have any official audio stream examples which work CYUSB3KIT-003 out of the box, you can try by modifying the USBAudioClass example and reading the sound file from the I2C memory in lace of SPI, and you need to save the file in I2C memory also.

And about debug print in this Boot Programmer FW it was sending data to another UART pin which not connected to USB to serial because when we are using SPI pin is use the same USB to serial UART pin as SPI.

To read UART debug you can use GPIO[48],  GPIO[49], and connect to external USB to serail.

Best Regards,
Biren

0 Likes
MiJo
Level 2
Level 2
10 sign-ins 5 replies posted 5 sign-ins

Thanks Biren,

Best Regards,

Michael

0 Likes