First of all, please note that I am not very familiar with USB details.
Following is/are my idea sketch so I don't have any "Final Answer."
Off my head
(1) Use USBUART to send the contents of the file from 5LP to PC.
(2) Use USBF as MSC mode and let the board act as a USB memory.
I think that
(1) will be easier and although using "UART" communication since the hardware is USBFS, the transfer speed could be fast as a UART.
(2) will be much easier to use, but much harder to implement, as you need to implement a USB Mass Storage Class or find a sample from somewhere.
So, if I were you, I would do if I can find a sample and otherwise I will go with (1).
3 of 3 people found this helpful
I am attaching a project that implements USB Mass Storage Class in PSoC 3 and PSoC 5LP device.
The provided example demonstrates a convenient method to gather data, store it in internal or SD card memory, and make it available to a PC for post processing.
Please note that the attached project is just an example project to show this functionality and has not been validated.
docx file have download issue.
And code have
Build error: 'MSC_CBW_PHASE' undeclared (first use in this function)
please tell me what is the value of MSC_CBW_PHASE ?
The project contains 2 sets of identical files USBFS_MSC.xxx
(the second appears after compilation)
another data format StorageMemory_Write (...)
Simple solution: use PSoC Creator3.1 (up to 4.0 without updating components)