AN15484 - "Easily" add USB Flash Drive capability to any embedded processor

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

cross mob
Anonymous
Not applicable

AN15484 went missing, as well as its support files.  It essentially promises to help you add USB Flash Drive capability to any embedded processor.  Well, after a little consternation plus valued support from Cypress, I've gotten most of the way down the road for mine to work.  The rest should be a cake walk (hah?!). 

   

See this other post for details and attachments:

   

Please see post "Does anybody have file MSC_EEPROM_scan_LCP_v2.bin ?" at http://www.cypress.com/?app=forum&id=167&rID=71172 for additional info, including support files for AN15484, to add USB Host capability to any embedded processor solution." at http://www.cypress.com/?app=forum&id=167&rID=71172&message=posted.

0 Likes
4 Replies
Anonymous
Not applicable
0 Likes
Anonymous
Not applicable

 WARNING: Example PSoC code under "memory stick psoc" file ezhost.c has bug causing file create to always fail.  Instruction "if (Length = 255)" should be "if (Length == 255)".  This is why my style is to always code "if (255 == Length)" with the constant on the left hand side, so if you accidentally type a single "=", the compiler will complain about trying to assign to a constant!  Interesting, this means they never tested file create????

0 Likes
Anonymous
Not applicable

 Hey, that bug's in the open and access file subroutines, too.  Maybe the programmer was one of those folks who like to incorporate bugs into example code in order to force you to find and fix them!??

0 Likes
Anonymous
Not applicable

Hi Helmut,

   

                      We are also following AN15484 appln note for our design. But with a small difference: We are using the CY7C67300 USB controller in co-processor mode with fujitsu as master microcontroller. SPI interface is used. We need to write 8 MB of data onto a USB pen drive using the file handling operations.

   

But we are not successful so far. Data write operations are randomly get hanged up in between. Whenever the system gets hanged up, we read the Main parameter table registers. the Data count register value becomes 0x00, Command flag register = 0xFFFF, Call back flag register value = 0x1A. All other registers remain unchanged.

   

Note: Since the SPI hardware supports 1024 bytes per data transaction (as per AN15484), we are writing only 1024 bytes in cycles.

   

Have you got any success with CY7C67300 & AN15484?

   

Can you please share your knowledge with us?

   

with thanks & regards,

   

Saba

0 Likes