PSoC 5 FTK internals

A catchall for PSoC5 discussions not captured by the other forums.

Moderator: ericb

PSoC 5 FTK internals

Postby jmercier on Wed Jun 23, 2010 5:01 pm

PSoC 5 has a full speed USB2 interface on chip.
PSoc5 FTK use an external high speed usb2 chip with an external 24LC00 eeprom.

Is there someone who can explains me why and how it works.
If I want to program the CY7C68013A USB chip, how can I do it and afterwards restore its initial program.
Is it in the eeprom (how to read it ?)
Or is it downloaded on boot up.

This is a nice kit, more information on it would be great.
jmercier
Newbie
Newbie
 
Posts: 5
Joined: Sun Jun 20, 2010 10:03 am

Re: PSoC 5 FTK internals

Postby bobby on Thu Jun 24, 2010 8:44 am

The PSoC 5 device on the FirstTouch Starter Kit does support Full-Speed USB 2.0, however the D+ and D- pins are not routed out to a USB connector. There is a Cypress Hi-Speed USB 2.0 device (CY7C68013A or the FX2LP) on the board, which routes out to the USB connector. This device is responsible for programming and debugging the target PSoC 5. We put this on the board so that the kit wouldn't need a MiniProg3 for programming/debugging (which costs ~$80).

The EEPROM on the board stores the VID/PID/DID for the FX2LP. The firmware that runs in the FX2LP is actually inside of its Windows driver. It uses a Cypress exclusive process called ReNumeration, which allows the device to download its firmware from the PC after being connected.

If you wanted to change the firmware that is run inside of the FX2LP, you could edit the driver (or create a new one). To default back to the original firmware, one would just have to go back to using the original driver.

I hope that helps.

-Bobby
User avatar
bobby
Cheese Wheel
Cheese Wheel
 
Posts: 101
Joined: Thu Jun 19, 2008 10:13 am
Location: San Francisco, CA

Re: PSoC 5 FTK internals

Postby johnbeetem on Fri Jun 25, 2010 7:17 am

bobby wrote:If you wanted to change the firmware that is run inside of the FX2LP, you could edit the driver (or create a new one). To default back to the original firmware, one would just have to go back to using the original driver.
-Bobby


Can you tell us where the Cypress USB drivers are documented? Your comment suggests that the source code to the FX2LP driver is available.
johnbeetem
Newbie
Newbie
 
Posts: 9
Joined: Tue Apr 06, 2010 8:21 am

Re: PSoC 5 FTK internals

Postby jmercier on Mon Jun 28, 2010 10:36 am

Using USBDeview, I could find that there are two devices associated with this PSoC 5 FTK
Device F11F FTK(unconfigured)
Device F120 FTK05-SIM ( Don't know what this one is yet, programmer, simulator ?)

I have looked at the FX2LP chip documentation.
For all users here are my findings.
The 24LC00 is a small eeprom (16 bytes)
By documentation deductions it's content is: C0 B4 04 1F F1 1
The C0 byte indicates a C0 type load.
VID 04B4 is Cypress
PID F11F is FTK5 board
Configuration byte is 1 (Fx2 in connected mode and 400 Khz I2C Clock)

I used the Vend_Axx example in FX2 DVK to write a small application to read the small external eeprom content just to confirm that the documentation is wright.

I downloaded and sent the Vendor command of my own to get the content. Yep, documentation is wright.

Interesting chip, this Fx2 chip. The configuration bit can even diconnect it from the USB Bus.

I am more interested in programming PSoC 5 than FX2.

I am also interested in single chip solution. That is, only using PSoc 5 and USB bootloading (or I2C).

USB DP and DM pins of PS0C 5 are not connected to a USB connector but are available to the 14x2 hearder connector.

First, can I program PsoC 5 using Fx2, then put Fx2 out of the bus and then enumerate from PsoC 5 ?

Is there a usb bootloader for PSoC 5 ? (Fx2 in disconnected mode)
jmercier
Newbie
Newbie
 
Posts: 5
Joined: Sun Jun 20, 2010 10:03 am

Re: PSoC 5 FTK internals

Postby bobby on Mon Jun 28, 2010 4:25 pm

Where are you seeing the D+ and D- pins from the PSoC 5 connect to the 28-pin header?

D+ is P[15]6 and D- is P[15]7. I don't see either of those connected to the header on my schematic. Are you looking at the PSoC 5 FirstTouch Starter Kit User Guide (Spec# 001-57708 Rev **)?

-Bobby
User avatar
bobby
Cheese Wheel
Cheese Wheel
 
Posts: 101
Joined: Thu Jun 19, 2008 10:13 am
Location: San Francisco, CA

Re: PSoC 5 FTK internals

Postby jmercier on Wed Jun 30, 2010 8:57 am

Boby,
You're wright, P15_6DP and P15_7DM are not connected to the header.
But on the Schematic, there are labels that indicate connections to P1_0 and P1_1.
They are not connected to the header.
But I figured out that the matrix connection in PSoC could reroute these pins to some header pins.

Also I have somme correction about the small eeprom content of my previous post.

I have included an attachment that describes the role of this eeprom and what to do if you overwrite it.
USB Control Center allows you to programm the small eeprom.
Don't do it!
If you do and mess your board, read the attachment.
jmer
Attachments
Modifying FX2 Small EEprom of FTK05 Kit.pdf
Dual personality syndrome, Am I sick Doctor ?
(171.1 KiB) Downloaded 117 times
jmercier
Newbie
Newbie
 
Posts: 5
Joined: Sun Jun 20, 2010 10:03 am

Re: PSoC 5 FTK internals

Postby tmessik on Mon Jan 10, 2011 1:44 am

Hi, I am very new with this PSOC5 FTK. I had som problems with the usb. I have followed the doc "Modifying FX2 Small EEprom of FTK05 Kit.pdf". I have used the USB suit for sending the "FTK05.iic" to the board.
I have restarted the board and it is now waiting for drivers. I have tried many without any success.
can you help, please?
tmessik
Newbie
Newbie
 
Posts: 2
Joined: Mon Jan 10, 2011 1:28 am

Re: PSoC 5 FTK internals

Postby tmessik on Mon Jan 10, 2011 2:00 am

Hi
I am quite new with PSOC FTK05. I had problems with the usb. I followed the document "Modifying FX2 Small EEprom of FTK05 Kit.pdf" and sent the file "FTK05.iic" (created as described there) to the board using suit USB.
I have restarted the board and it is now waiting for a driver. I have tried to reinstall original SW but with no success.
Can you help please?
Thanks!
tmessik
Newbie
Newbie
 
Posts: 2
Joined: Mon Jan 10, 2011 1:28 am

Re: PSoC 5 FTK internals

Postby RampageRobotics on Thu Apr 05, 2012 1:43 pm

tmessik wrote:Hi
I am quite new with PSOC FTK05. I had problems with the usb. I followed the document "Modifying FX2 Small EEprom of FTK05 Kit.pdf" and sent the file "FTK05.iic" (created as described there) to the board using suit USB.
I have restarted the board and it is now waiting for a driver. I have tried to reinstall original SW but with no success.
Can you help please?
Thanks!


There is a mistake in the PDF which lists the content of the original Small EEPROM as "C0 B4 C4 1F F1 01 00 00".
The correct content should list as "C0 B4 04 1F F1 01 00 00".
RampageRobotics
Newbie
Newbie
 
Posts: 1
Joined: Thu Apr 05, 2012 1:39 pm


Return to PSoC5 General

Who is online

Users browsing this forum: No registered users and 2 guests