|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
cypress Gpif helpHi All;
It seems my bulk transfer issue is due to not setting a value in the gpif. Here is the code: int TransferGpifOut(libusb_device_handle *dh, uint16_t iAddress, uint16_t iValue ) /*NAME: TransferGpifOut DESC: Writes data to the USB's GPIF INPUTS: iValue - Data value iAddress - Gpif Address RETURN: true if successful */ { int r; r = libusb_control_transfer(dh, 0x40, 0x10, iAddress, iValue, &val, 2, 3000); if (r < 0) { printf("Error submitting control transfer %d\n", r); fflush(stdout); return r; } printf("\n\n TransferGpifOut transfered %d bytes\n",r); fflush(stdout); return r; } Have I made any obvious mistakes? Thanks Pat ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Libusb-devel mailing list Libusb-devel@... https://lists.sourceforge.net/lists/listinfo/libusb-devel |
|
|
Re: cypress Gpif helpFord, Pat wrote:
> Hi All; > It seems my bulk transfer issue is due to not setting a value in the > gpif. Here is the code: > > int TransferGpifOut(libusb_device_handle *dh, uint16_t iAddress, > uint16_t iValue ) > /*NAME: TransferGpifOut > DESC: Writes data to the USB's GPIF > INPUTS: iValue - Data value > iAddress - Gpif Address > RETURN: true if successful > */ > { > int r; > r = libusb_control_transfer(dh, 0x40, 0x10, iAddress, iValue, > &val, 2, 3000);... > > Have I made any obvious mistakes? > We cannot possibly know this. You're sending a vendor-defined control message to YOUR firmware. The only way to know what this does is to look at your firmware. -- Tim Roberts, timr@... Providenza & Boekelheide, Inc. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Libusb-devel mailing list Libusb-devel@... https://lists.sourceforge.net/lists/listinfo/libusb-devel |
|
|
|
|
|
cy7c68013a:what's the difference between hex and ihex?hi,all
i want to download firmware(hex format from keil C51)to cypress cy7c68013a. it seems "fxload " is using the "ihex" format ,which is different to hex(?).i cannot get information from internet.... So how can i download the hex yet?can i simulate the "usb console" app's download method? it looks like first analyse the hex file,and download the data to different address: Toggle 8051 Reset (01) Download 10 bytes: addr=da8 0000 00 01 02 02 03 03 04 04 05 05 Download 352 bytes: addr=5e6 0000 E4 F5 2C F5 2B F5 2A F5 29 C2 03 C2 00 C2 02 C2 0010 01 12 0D CA 7E 0A 7F 00 8E 0A 8F 0B 75 12 0A 75 0020 13 12 75 08 0A 75 09 1C 75 10 0A 75 11 4A 75 14 0030 0A 75 15 78 EE 54 C0 70 03 02 06 EB 75 2D 00 75 0040 2E 80 8E 2F 8F 30 C3 74 9A 9F FF 74 0A 9E CF 24 0050 02 CF 34 00 FE E4 8F 28 8E 27 F5 26 F5 25 F5 24 0060 F5 23 F5 22 F5 21 AF 28 AE 27 AD 26 AC 25 AB 24 0070 AA 23 A9 22 A8 21 C3 12 08 9D 50 37 E5 30 25 24 0080 F5 82 E5 2F 35 23 F5 83 E0 FF E5 2E 25 24 F5 82 0090 E5 2D 35 23 F5 83 EF F0 E4 FA F9 F8 E5 24 24 01 00A0 F5 24 EA 35 23 F5 23 E9 35 22 F5 22 E8 35 21 F5 00B0 21 80 B3 85 2D 0A 85 2E 0B 74 00 24 80 FF 74 0A 00C0 34 FF FE C3 E5 13 9F F5 13 E5 12 9E F5 12 C3 E5 00D0 0D 9F F5 0D E5 0C 9E F5 0C C3 E5 0F 9F F5 0F E5 00E0 0E 9E F5 0E C3 E5 09 9F F5 09 E5 08 9E F5 08 C3 00F0 E5 11 9F F5 11 E5 10 9E F5 10 C3 E5 15 9F F5 15 0100 E5 14 9E F5 14 D2 E8 43 D8 20 90 E6 68 E0 44 09 0110 F0 90 E6 5C E0 44 3D F0 D2 AF 90 E6 80 E0 54 F7 0120 F0 53 8E F8 C2 03 12 08 FF 30 01 05 12 00 80 C2 0130 01 30 03 F2 12 08 FD 50 ED C2 03 12 0C AD 20 00 0140 16 90 E6 82 E0 30 E7 04 E0 20 E1 EF 90 E6 82 E0 0150 30 E6 04 E0 20 E0 E4 12 0C 56 12 09 FE 80 C7 22 Download 11 bytes: addr=d9d 0000 90 E5 0D E0 30 E4 02 C3 22 D3 22 ...... Download 1 bytes: addr=45a 0000 00 Toggle 8051 Reset (00) -------------------------------------------------------- ZTE Information Security Notice: The information contained in this mail is solely property of the sender's organization. This mail communication is confidential. Recipients named above are obligated to maintain secrecy and are not permitted to disclose the contents of this communication to others. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. Any views expressed in this message are those of the individual sender. This message has been scanned for viruses and Spam by ZTE Anti-Spam system. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Libusb-devel mailing list Libusb-devel@... https://lists.sourceforge.net/lists/listinfo/libusb-devel |
|
|
Re: cy7c68013a:what's the difference between hex and ihex?liu.yaojin@... wrote:
> i want to download firmware(hex format from keil C51)to cypress > cy7c68013a. > it seems "fxload " is using the "ihex" format ,which is different to > hex(?).i cannot get information from internet.... > "ihex" usually means "Intel hex", which is exactly the format that Keil produces (from bix2hex) and fxload wants. Have you tried it? The first line probably looks like this: :0A08F00000010202030304040505E1 That's the Intel hex format. > So how can i download the hex yet?can i simulate the "usb console" app's > download method? it looks like first analyse the hex file,and download the data to > different address: > You should be able to use fxload right out of the box. The only two formats I've encountered are the HEX file (which is human readable), and the IIC file, which is a binary version of the HEX. It's very easy to do this download yourself. I even have a Python script that does it. There's one vendor message that sends a block directly to the 8051's memory. You read the hex file, create a memory image in an array, then send the array to the chip 64 bytes at a time. Make sure to put the 8051 into reset before loading, and take it out of reset after. -- Tim Roberts, timr@... Providenza & Boekelheide, Inc. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Libusb-devel mailing list Libusb-devel@... https://lists.sourceforge.net/lists/listinfo/libusb-devel |
|
|
Re: cy7c68013a:what's the difference between hex and ihex?thanks tim,i already finished it .
liu.yaojin@... wrote: > i want to download firmware(hex format from keil C51)to cypress > cy7c68013a. > it seems "fxload " is using the "ihex" format ,which is different to > hex(?).i cannot get information from internet.... > "ihex" usually means "Intel hex", which is exactly the format that Keil produces (from bix2hex) and fxload wants. Have you tried it? The first line probably looks like this: :0A08F00000010202030304040505E1 That's the Intel hex format. > So how can i download the hex yet?can i simulate the "usb console" app's > download method? it looks like first analyse the hex file,and download the data to > different address: > You should be able to use fxload right out of the box. The only two formats I've encountered are the HEX file (which is human readable), and the IIC file, which is a binary version of the HEX. It's very easy to do this download yourself. I even have a Python script that does it. There's one vendor message that sends a block directly to the 8051's memory. You read the hex file, create a memory image in an array, then send the array to the chip 64 bytes at a time. Make sure to put the 8051 into reset before loading, and take it out of reset after. -- Tim Roberts, timr@... Providenza & Boekelheide, Inc. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Libusb-devel mailing list Libusb-devel@... https://lists.sourceforge.net/lists/listinfo/libusb-devel -------------------------------------------------------- ZTE Information Security Notice: The information contained in this mail is solely property of the sender's organization. This mail communication is confidential. Recipients named above are obligated to maintain secrecy and are not permitted to disclose the contents of this communication to others. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. Any views expressed in this message are those of the individual sender. This message has been scanned for viruses and Spam by ZTE Anti-Spam system. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Libusb-devel mailing list Libusb-devel@... https://lists.sourceforge.net/lists/listinfo/libusb-devel |
| Free embeddable forum powered by Nabble | Forum Help |