-
1. Re: How to write a code for open a file in the Designer 5.4
DaKn_263916 Jul 23, 2015 7:02 AM (in response to userc_40649)See attached.
-
PSOC File System.doc 26.0 K
-
-
2. Re: How to write a code for open a file in the Designer 5.4
userc_40649 Jul 23, 2015 8:32 AM (in response to DaKn_263916)Dana,
Is any C File functions is available in this IDE ? like fopen() and fclose(),Otherwise give any alternative function
i want to open a file from the system drives...
Thank you.
-
3. Re: How to write a code for open a file in the Designer 5.4
DaKn_263916 Jul 23, 2015 9:44 AM (in response to userc_40649)No, not in the Designer Environment per se. You have to write C code to create that
capability and address the device drivers needed to communicate to the file server. Or
use the SDCARD library and modify it to handle your specific file device.
Regards, Dana.
-
4. Re: How to write a code for open a file in the Designer 5.4
userc_40649 Jul 24, 2015 3:35 AM (in response to userc_40649)Dana,
Device Drivers means,For this am using USB Interfacing with CY8C20666A to the System,Can you send me the sample code or any document Please..
-
5. Re: How to write a code for open a file in the Designer 5.4
DaKn_263916 Jul 24, 2015 4:06 AM (in response to userc_40649)I am not aware of any drivers to do this, other than the SDCARD code to implement a
FAT file system, and that will not run on the part you are using do to its RAM / ROM limitations.
Maybe someone else knows of something.
Regards, Dana.
-
6. Re: How to write a code for open a file in the Designer 5.4
JoMe_264151 Jul 24, 2015 6:31 AM (in response to userc_40649)Bhupati,
so not to misunderstand you:
You want to open a file in the "System". What do you understand under "System"?
You have got a PSoC1 and... ? A PC?
Then the PSoC1 will be connected to the PC-Host and there is no way for the PSoC to "open a file". Only the host can do that and then send the data to the PSoC via USB interface . USBUART could be an easy-to-use component, but I'm not quite aware whether available on your chip.
Edit: No, there is no USBUART on your target chip, only a USBFS (FS = Full Speed), so you'll have to implement the protocol yourself.
Bob
-
7. Re: How to write a code for open a file in the Designer 5.4
DaKn_263916 Jul 24, 2015 6:41 AM (in response to userc_40649)Or send the file via whatever method (UART, I2C USB bridge, SPI) to PSOC and its SDCARD interface, then open
the file under the SDCARD FAT APIs.
Regards, Dana.
-
8. Re: How to write a code for open a file in the Designer 5.4
userc_40649 Jul 24, 2015 8:21 AM (in response to JoMe_264151)Bob,
Thank you for reply, System means PC sir.
Am using USBFS only for this interfacing CY8C20666A to PC-Host.
Now am trying to write a code for my own protocol like sending some of the commands to open a files in the PC by using the part CY8C20666A with USBFS,
have you any idea give me a good suggestion sir.
Thanking you,
Bhupati.
-
9. Re: How to write a code for open a file in the Designer 5.4
JoMe_264151 Jul 24, 2015 11:59 AM (in response to userc_40649)So you will have to program an interface on your PC for sending the file contents to the PSoC.
What are the data you send and what are you going to do with them on the PSoC side? When you tell us a bit more about the project we will be better able to advise you.
Bob
-
10. Re: How to write a code for open a file in the Designer 5.4
DaKn_263916 Jul 24, 2015 5:35 PM (in response to userc_40649)Python for PC side or VB probably fastest way to do this.
Regards, Dana.
-
11. Re: How to write a code for open a file in the Designer 5.4
userc_40649 Jul 25, 2015 6:21 AM (in response to userc_40649)Yes frontend software must, Java or VB both are possible ,But i am trying to my own application without frontend software .