USB low-full-high speed peripherals Forum Discussions
text.format{('custom.tabs.no.results')}
HI
How to use CY7C68013 output PWM waveform, can you provide routines?
Hi,
I'm looking into using the CY7C68013 as an interface to provide 4 channels out, 8 channels in (4 of these channels are simply the output channels looped back, either in the FX2, or physically), continuously sampling and sending at 1MHz (internal clock). If the output data dries up, the output pins just remain unchanged, but the input data keeps coming back.
Is this possible with the above IC?
Regards,
David
Show Less你好
想請教一下,FX2要在多少時間內讀到外部的EEPROM資料,否則視為外部沒有EEPROM。
How can I get the real powerstate or connection status of Cy68013/Cy3014 by CyAPI?
I have calls CyAPI to connect the 68013 and 3014 device. When the device is unplugged, The reading and writing devices can get exception status to cancel transemission, But the Powerstate, USBdstatus and NTstatus of CCyUSBdevice object are all normal, so how can I judge the unplugging event of the device?
I want to ask if there is any other way to judge the real state of the device directly through the CyAPI call, except for the WM_DEVICE_CHANGE message of windows. Thank you!
Show LessHi,
I could send/read the data with C# (cyusb.dll) and every time I read 512 bytes.
But my full data's size is not a multiple of 512.
The function WaitForXfer() always returns false if the remaining data's size does not reach 512. These remaining data would interfere with the byte content next time.
So my question is how to receive these remaining data(less than 512).
Thank you !
Show Less
Hello,
I am trying to perform FX3 Debug through Segger J-Link module.
I followed EzUsbSuite_UG.pdf recommandations and most of the process is OK.
I then face following error message from Eclipse :
"Error in final launch sequence
Failed to execute MI command:
symbol-file C:\\Users\\XXX\\dev\\en_cours\\directC\\FX3\\Debug\\katsu.elf
Error message from debugger back end:
value has been optimized out
value has been optimized out
"
Can you help ?
Thanks for support
Below is Eclipse log
********************************
SEGGER J-Link GDB Server V6.70 Command Line Version
JLinkARM.dll V6.70 (DLL compiled Mar 27 2020 14:35:04)
Command line: -if jtag -device ARM9 -endian little -speed 1000 -port 2331 -swoport 2332 -telnetport 2333 -vd -ir -localhostonly 1 -s
-----GDB Server start settings-----
GDBInit file: none
GDB Server Listening port: 2331
SWO raw output listening port: 2332
Terminal I/O port: 2333
Accept remote connection: localhost only
Generate logfile: off
Verify download: on
Init regs on start: on
Silent mode: off
Single run mode: on
Target connection timeout: 0 ms
------J-Link related settings------
J-Link Host interface: USB
J-Link script: none
J-Link settings file: none
------Target related settings------
Target device: ARM9
Target interface: JTAG
Target interface speed: 1000kHz
Target endian: little
Connecting to J-Link...
J-Link is connected.
Firmware: J-Link V10 compiled Mar 19 2020 11:10:39
Hardware: V10.10
S/N: 260105459
OEM: SEGGER-EDU
Feature(s): FlashBP, GDB
Checking target voltage...
Target voltage: 2.40 V
Listening on TCP/IP port 2331
Connecting to target...
J-Link found 1 JTAG device, Total IRLen = 4
JTAG ID: 0x07926069 (ARM9)
Connected to target
Waiting for GDB connection...Connected to 127.0.0.1
Reading all registers
Read 1 bytes @ address 0x00000000 (Data = 0xB4)
Read 1 bytes @ address 0x00000000 (Data = 0xB4)
Reading 64 bytes @ address 0x00000000
Received monitor command: speed 1000
Target interface speed set to 1000 kHz
Received monitor command: clrbp
Received monitor command: reset
WARNING: PC of target system has unexpected value of 0xF01386D0 after reset.
Resetting target
Received monitor command: halt
Halting target CPU...
...Target halted (PC = 0x00000000)
Received monitor command: regs
PC = 00000000, CPSR = 000000D3 (SVC mode, ARM FIQ dis. IRQ dis.)
R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000
R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000
USR: R8 =00000000, R9 =00000000, R10=00000000, R11 =00000000, R12 =00000000
R13=00000000, R14=00000000
FIQ: R8 =00000000, R9 =00000000, R10=00000000, R11 =00000000, R12 =00000000
R13=00000000, R14=00000000, SPSR=00000010
SVC: R13=00000000, R14=00000000, SPSR=00000010
ABT: R13=00000000, R14=00000000, SPSR=00000010
IRQ: R13=00000000, R14=00000000, SPSR=00000010
UND: R13=00000000, R14=00000000, SPSR=00000010
Reading all registers
Received monitor command: speed auto
Select auto target interface speed (7827 kHz)
Received monitor command: flash breakpoints 0
Flash breakpoints disabled
Read 1 bytes @ address 0x00000000 (Data = 0xB4)
Downloading 9512 bytes @ address 0x00000100 - Verified OK
Downloading 16304 bytes @ address 0x40003000 - Verified OK
Downloading 16288 bytes @ address 0x40006FB0 - Verified OK
Downloading 15244 bytes @ address 0x4000AF50 - Verified OK
Downloading 228 bytes @ address 0x4000EADC - Verified OK
Downloading 332 bytes @ address 0x4000EBC0 - Verified OK
Downloading 452 bytes @ address 0x4000ED0C - Verified OK
Downloading 240 bytes @ address 0x4000EED0 - Verified OK
Downloading 216 bytes @ address 0x4000EFC0 - Verified OK
Downloading 132 bytes @ address 0x4000F098 - Verified OK
Downloading 16 bytes @ address 0x4000F11C - Verified OK
Downloading 16 bytes @ address 0x4000F12C - Verified OK
Downloading 160 bytes @ address 0x4000F13C - Verified OK
Downloading 92 bytes @ address 0x4000F1DC - Verified OK
Downloading 232 bytes @ address 0x4000F238 - Verified OK
Downloading 212 bytes @ address 0x4000F320 - Verified OK
Downloading 68 bytes @ address 0x4000F3F4 - Verified OK
Downloading 80 bytes @ address 0x4000F438 - Verified OK
Downloading 536 bytes @ address 0x4000F488 - Verified OK
Downloading 80 bytes @ address 0x4000F6A0 - Verified OK
Downloading 404 bytes @ address 0x4000F6F0 - Verified OK
Downloading 92 bytes @ address 0x4000F884 - Verified OK
Downloading 280 bytes @ address 0x4000F8E0 - Verified OK
Downloading 240 bytes @ address 0x4000F9F8 - Verified OK
Downloading 444 bytes @ address 0x4000FAE8 - Verified OK
Downloading 68 bytes @ address 0x4000FCA4 - Verified OK
Downloading 172 bytes @ address 0x4000FCE8 - Verified OK
Downloading 544 bytes @ address 0x4000FD94 - Verified OK
Downloading 552 bytes @ address 0x4000FFB4 - Verified OK
Downloading 324 bytes @ address 0x400101DC - Verified OK
Downloading 16 bytes @ address 0x40010320 - Verified OK
Downloading 304 bytes @ address 0x40010330 - Verified OK
Downloading 132 bytes @ address 0x40010460 - Verified OK
Downloading 84 bytes @ address 0x400104E4 - Verified OK
Downloading 752 bytes @ address 0x40010538 - Verified OK
Downloading 152 bytes @ address 0x40010828 - Verified OK
Downloading 620 bytes @ address 0x400108C0 - Verified OK
Downloading 1016 bytes @ address 0x40010B2C - Verified OK
Downloading 180 bytes @ address 0x40010F24 - Verified OK
Downloading 212 bytes @ address 0x40010FD8 - Verified OK
Downloading 436 bytes @ address 0x400110AC - Verified OK
Downloading 820 bytes @ address 0x40011260 - Verified OK
Downloading 288 bytes @ address 0x40011594 - Verified OK
Downloading 140 bytes @ address 0x400116B4 - Verified OK
Downloading 248 bytes @ address 0x40011740 - Verified OK
Downloading 100 bytes @ address 0x40011838 - Verified OK
Downloading 436 bytes @ address 0x4001189C - Verified OK
Downloading 220 bytes @ address 0x40011A50 - Verified OK
Downloading 416 bytes @ address 0x40011B2C - Verified OK
Downloading 492 bytes @ address 0x40011CCC - Verified OK
Downloading 544 bytes @ address 0x40011EB8 - Verified OK
Downloading 236 bytes @ address 0x400120D8 - Verified OK
Downloading 304 bytes @ address 0x400121C4 - Verified OK
Downloading 420 bytes @ address 0x400122F4 - Verified OK
Downloading 268 bytes @ address 0x40012498 - Verified OK
Downloading 276 bytes @ address 0x400125A4 - Verified OK
Downloading 220 bytes @ address 0x400126B8 - Verified OK
Downloading 52 bytes @ address 0x40012794 - Verified OK
Downloading 104 bytes @ address 0x400127C8 - Verified OK
Downloading 412 bytes @ address 0x40012830 - Verified OK
Downloading 128 bytes @ address 0x400129CC - Verified OK
Downloading 16 bytes @ address 0x40012A4C - Verified OK
Downloading 576 bytes @ address 0x40012A5C - Verified OK
Downloading 228 bytes @ address 0x40012C9C - Verified OK
Downloading 664 bytes @ address 0x40012D80 - Verified OK
Downloading 108 bytes @ address 0x40013018 - Verified OK
Downloading 152 bytes @ address 0x40013084 - Verified OK
Downloading 336 bytes @ address 0x4001311C - Verified OK
Downloading 152 bytes @ address 0x4001326C - Verified OK
Downloading 1168 bytes @ address 0x40013304 - Verified OK
Downloading 44 bytes @ address 0x40013794 - Verified OK
Downloading 244 bytes @ address 0x400137C0 - Verified OK
Downloading 192 bytes @ address 0x400138B4 - Verified OK
Downloading 156 bytes @ address 0x40013974 - Verified OK
Downloading 64 bytes @ address 0x40013A10 - Verified OK
Downloading 156 bytes @ address 0x40013A50 - Verified OK
Downloading 960 bytes @ address 0x40013AEC - Verified OK
Downloading 1536 bytes @ address 0x40013EAC - Verified OK
Downloading 1516 bytes @ address 0x400144AC - Verified OK
Downloading 1684 bytes @ address 0x40014A98 - Verified OK
Downloading 80 bytes @ address 0x4001512C - Verified OK
Downloading 248 bytes @ address 0x4001517C - Verified OK
Downloading 64 bytes @ address 0x40015274 - Verified OK
Downloading 276 bytes @ address 0x400152B4 - Verified OK
Downloading 60 bytes @ address 0x400153C8 - Verified OK
Downloading 60 bytes @ address 0x40015404 - Verified OK
Downloading 112 bytes @ address 0x40015440 - Verified OK
Downloading 336 bytes @ address 0x400154B0 - Verified OK
Downloading 140 bytes @ address 0x40015600 - Verified OK
Downloading 224 bytes @ address 0x4001568C - Verified OK
Downloading 16 bytes @ address 0x4001576C - Verified OK
Downloading 84 bytes @ address 0x4001577C - Verified OK
Downloading 156 bytes @ address 0x400157D0 - Verified OK
Downloading 256 bytes @ address 0x4001586C - Verified OK
Downloading 164 bytes @ address 0x4001596C - Verified OK
Downloading 144 bytes @ address 0x40015A10 - Verified OK
Downloading 628 bytes @ address 0x40015AA0 - Verified OK
Downloading 340 bytes @ address 0x40015D14 - Verified OK
Downloading 192 bytes @ address 0x40015E68 - Verified OK
Downloading 56 bytes @ address 0x40015F28 - Verified OK
Downloading 52 bytes @ address 0x40015F60 - Verified OK
Downloading 48 bytes @ address 0x40015F94 - Verified OK
Downloading 24 bytes @ address 0x40015FC4 - Verified OK
Downloading 24 bytes @ address 0x40015FDC - Verified OK
Downloading 28 bytes @ address 0x40015FF4 - Verified OK
Downloading 132 bytes @ address 0x40016010 - Verified OK
Downloading 252 bytes @ address 0x40016094 - Verified OK
Downloading 176 bytes @ address 0x40016190 - Verified OK
Downloading 140 bytes @ address 0x40016240 - Verified OK
Downloading 156 bytes @ address 0x400162CC - Verified OK
Downloading 40 bytes @ address 0x40016368 - Verified OK
Downloading 16 bytes @ address 0x40016390 - Verified OK
Downloading 416 bytes @ address 0x400163A0 - Verified OK
Downloading 296 bytes @ address 0x40016540 - Verified OK
Downloading 80 bytes @ address 0x40016668 - Verified OK
Downloading 304 bytes @ address 0x400166B8 - Verified OK
Downloading 216 bytes @ address 0x400167E8 - Verified OK
Downloading 32 bytes @ address 0x400168C0 - Verified OK
Downloading 132 bytes @ address 0x400168E0 - Verified OK
Downloading 12 bytes @ address 0x40016964 - Verified OK
Downloading 12 bytes @ address 0x40016970 - Verified OK
Downloading 16 bytes @ address 0x4001697C - Verified OK
Downloading 16 bytes @ address 0x4001698C - Verified OK
Downloading 20 bytes @ address 0x4001699C - Verified OK
Downloading 16 bytes @ address 0x400169B0 - Verified OK
Downloading 12 bytes @ address 0x400169C0 - Verified OK
Downloading 20 bytes @ address 0x400169CC - Verified OK
Downloading 60 bytes @ address 0x400169E0 - Verified OK
Downloading 40 bytes @ address 0x40016A1C - Verified OK
Downloading 124 bytes @ address 0x40016A44 - Verified OK
Downloading 316 bytes @ address 0x40016AC0 - Verified OK
Downloading 112 bytes @ address 0x40016BFC - Verified OK
Downloading 356 bytes @ address 0x40016C6C - Verified OK
Downloading 80 bytes @ address 0x40016DD0 - Verified OK
Downloading 688 bytes @ address 0x40016E20 - Verified OK
Downloading 388 bytes @ address 0x400170D0 - Verified OK
Downloading 96 bytes @ address 0x40017254 - Verified OK
Downloading 160 bytes @ address 0x400172B4 - Verified OK
Downloading 224 bytes @ address 0x40017354 - Verified OK
Downloading 224 bytes @ address 0x40017434 - Verified OK
Downloading 72 bytes @ address 0x40017514 - Verified OK
Downloading 172 bytes @ address 0x4001755C - Verified OK
Downloading 116 bytes @ address 0x40017608 - Verified OK
Downloading 212 bytes @ address 0x4001767C - Verified OK
Downloading 356 bytes @ address 0x40017750 - Verified OK
Downloading 200 bytes @ address 0x400178B4 - Verified OK
Downloading 160 bytes @ address 0x4001797C - Verified OK
Downloading 16 bytes @ address 0x40017A1C - Verified OK
Downloading 36 bytes @ address 0x40017A2C - Verified OK
Downloading 104 bytes @ address 0x40017A50 - Verified OK
Downloading 4 bytes @ address 0x40017AB8 - Verified OK
Downloading 584 bytes @ address 0x40017ABC - Verified OK
Downloading 16 bytes @ address 0x40017D04 - Verified OK
Downloading 204 bytes @ address 0x40017D14 - Verified OK
Downloading 192 bytes @ address 0x40017DE0 - Verified OK
Downloading 16 bytes @ address 0x40017EA0 - Verified OK
Downloading 1360 bytes @ address 0x40017EB0 - Verified OK
Downloading 132 bytes @ address 0x40018400 - Verified OK
Downloading 456 bytes @ address 0x40018484 - Verified OK
Downloading 344 bytes @ address 0x4001864C - Verified OK
Downloading 248 bytes @ address 0x400187A4 - Verified OK
Downloading 372 bytes @ address 0x4001889C - Verified OK
Downloading 188 bytes @ address 0x40018A10 - Verified OK
Downloading 440 bytes @ address 0x40018ACC - Verified OK
Downloading 180 bytes @ address 0x40018C84 - Verified OK
Downloading 4 bytes @ address 0x40018D38 - Verified OK
Downloading 16 bytes @ address 0x40018D3C - Verified OK
Downloading 16 bytes @ address 0x40018D4C - Verified OK
Downloading 76 bytes @ address 0x40018D5C - Verified OK
Downloading 104 bytes @ address 0x40018DA8 - Verified OK
Downloading 108 bytes @ address 0x40018E10 - Verified OK
Downloading 124 bytes @ address 0x40018E7C - Verified OK
Downloading 180 bytes @ address 0x40018EF8 - Verified OK
Downloading 588 bytes @ address 0x40018FAC - Verified OK
Downloading 892 bytes @ address 0x400191F8 - Verified OK
Downloading 12 bytes @ address 0x40019574 - Verified OK
Downloading 4 bytes @ address 0x40019580 - Verified OK
Downloading 800 bytes @ address 0x40019584 - Verified OK
Downloading 212 bytes @ address 0x400198A4 - Verified OK
Downloading 120 bytes @ address 0x40019978 - Verified OK
Downloading 592 bytes @ address 0x400199F0 - Verified OK
Downloading 244 bytes @ address 0x40019C40 - Verified OK
Downloading 456 bytes @ address 0x40019D34 - Verified OK
Downloading 436 bytes @ address 0x40019EFC - Verified OK
Downloading 168 bytes @ address 0x4001A0B0 - Verified OK
Downloading 340 bytes @ address 0x4001A158 - Verified OK
Downloading 1008 bytes @ address 0x4001A2AC - Verified OK
Downloading 940 bytes @ address 0x4001A69C - Verified OK
Downloading 128 bytes @ address 0x4001AA48 - Verified OK
Downloading 128 bytes @ address 0x4001AAC8 - Verified OK
Downloading 120 bytes @ address 0x4001AB48 - Verified OK
Downloading 420 bytes @ address 0x4001ABC0 - Verified OK
Downloading 528 bytes @ address 0x4001AD64 - Verified OK
Downloading 640 bytes @ address 0x4001AF74 - Verified OK
Downloading 208 bytes @ address 0x4001B1F4 - Verified OK
Downloading 60 bytes @ address 0x4001B2C4 - Verified OK
Downloading 160 bytes @ address 0x4001B300 - Verified OK
Downloading 160 bytes @ address 0x4001B3A0 - Verified OK
Downloading 1272 bytes @ address 0x4001B440 - Verified OK
Downloading 316 bytes @ address 0x4001B938 - Verified OK
Downloading 1572 bytes @ address 0x4001BA74 - Verified OK
Downloading 196 bytes @ address 0x4001C098 - Verified OK
Downloading 164 bytes @ address 0x4001C15C - Verified OK
Downloading 124 bytes @ address 0x4001C200 - Verified OK
Downloading 360 bytes @ address 0x4001C27C - Verified OK
Downloading 132 bytes @ address 0x4001C3E4 - Verified OK
Downloading 608 bytes @ address 0x4001C468 - Verified OK
Downloading 28 bytes @ address 0x4001C6C8 - Verified OK
Downloading 544 bytes @ address 0x4001C6E4 - Verified OK
Downloading 696 bytes @ address 0x4001C904 - Verified OK
Downloading 184 bytes @ address 0x4001CBBC - Verified OK
Downloading 280 bytes @ address 0x4001CC74 - Verified OK
Downloading 1204 bytes @ address 0x4001CD8C - Verified OK
Downloading 248 bytes @ address 0x4001D240 - Verified OK
Downloading 304 bytes @ address 0x4001D338 - Verified OK
Downloading 540 bytes @ address 0x4001D468 - Verified OK
Downloading 84 bytes @ address 0x4001D684 - Verified OK
Downloading 16 bytes @ address 0x4001D6D8 - Verified OK
Downloading 96 bytes @ address 0x4001D6E8 - Verified OK
Downloading 376 bytes @ address 0x4001D748 - Verified OK
Downloading 80 bytes @ address 0x4001D8C0 - Verified OK
Downloading 568 bytes @ address 0x4001D910 - Verified OK
Downloading 480 bytes @ address 0x4001DB48 - Verified OK
Downloading 424 bytes @ address 0x4001DD28 - Verified OK
Downloading 528 bytes @ address 0x4001DED0 - Verified OK
Downloading 2128 bytes @ address 0x4001E0E0 - Verified OK
Downloading 80 bytes @ address 0x4001E930 - Verified OK
Downloading 304 bytes @ address 0x4001E980 - Verified OK
Downloading 824 bytes @ address 0x4001EAB0 - Verified OK
Downloading 92 bytes @ address 0x4001EDE8 - Verified OK
Downloading 32 bytes @ address 0x4001EE44 - Verified OK
Downloading 104 bytes @ address 0x4001EE64 - Verified OK
Downloading 40 bytes @ address 0x4001EECC - Verified OK
Downloading 32 bytes @ address 0x4001EEF4 - Verified OK
Downloading 276 bytes @ address 0x4001EF14 - Verified OK
Downloading 12 bytes @ address 0x4001F028 - Verified OK
Downloading 16 bytes @ address 0x4001F034 - Verified OK
Downloading 20 bytes @ address 0x4001F044 - Verified OK
Downloading 20 bytes @ address 0x4001F058 - Verified OK
Downloading 12 bytes @ address 0x4001F06C - Verified OK
Downloading 64 bytes @ address 0x4001F078 - Verified OK
Downloading 64 bytes @ address 0x4001F0B8 - Verified OK
Downloading 24 bytes @ address 0x4001F0F8 - Verified OK
Downloading 404 bytes @ address 0x4001F110 - Verified OK
Downloading 64 bytes @ address 0x4001F2A4 - Verified OK
Downloading 16 bytes @ address 0x4001F2E4 - Verified OK
Downloading 16 bytes @ address 0x4001F2F4 - Verified OK
Downloading 16 bytes @ address 0x4001F304 - Verified OK
Downloading 16 bytes @ address 0x4001F314 - Verified OK
Downloading 208 bytes @ address 0x4001F324 - Verified OK
Downloading 628 bytes @ address 0x4001F3F4 - Verified OK
Downloading 168 bytes @ address 0x4001F668 - Verified OK
Downloading 116 bytes @ address 0x4001F710 - Verified OK
Downloading 40 bytes @ address 0x4001F784 - Verified OK
Downloading 40 bytes @ address 0x4001F7AC - Verified OK
Downloading 40 bytes @ address 0x4001F7D4 - Verified OK
Downloading 40 bytes @ address 0x4001F7FC - Verified OK
Downloading 40 bytes @ address 0x4001F824 - Verified OK
Downloading 40 bytes @ address 0x4001F84C - Verified OK
Downloading 40 bytes @ address 0x4001F874 - Verified OK
Downloading 48 bytes @ address 0x4001F89C - Verified OK
Downloading 104 bytes @ address 0x4001F8CC - Verified OK
Downloading 20 bytes @ address 0x4001F934 - Verified OK
Downloading 20 bytes @ address 0x4001F948 - Verified OK
Downloading 84 bytes @ address 0x4001F95C - Verified OK
Downloading 48 bytes @ address 0x4001F9B0 - Verified OK
Downloading 24 bytes @ address 0x4001F9E0 - Verified OK
Downloading 24 bytes @ address 0x4001F9F8 - Verified OK
Downloading 68 bytes @ address 0x4001FA10 - Verified OK
Downloading 48 bytes @ address 0x4001FA54 - Verified OK
Downloading 44 bytes @ address 0x4001FA84 - Verified OK
Downloading 128 bytes @ address 0x4001FAB0 - Verified OK
Downloading 148 bytes @ address 0x4001FB30 - Verified OK
Downloading 168 bytes @ address 0x4001FBC4 - Verified OK
Downloading 88 bytes @ address 0x4001FC6C - Verified OK
Downloading 112 bytes @ address 0x4001FCC4 - Verified OK
Downloading 100 bytes @ address 0x4001FD34 - Verified OK
Downloading 264 bytes @ address 0x4001FD98 - Verified OK
Downloading 376 bytes @ address 0x4001FEA0 - Verified OK
Downloading 132 bytes @ address 0x40020018 - Verified OK
Downloading 104 bytes @ address 0x4002009C - Verified OK
Downloading 276 bytes @ address 0x40020104 - Verified OK
Downloading 256 bytes @ address 0x40020218 - Verified OK
Downloading 452 bytes @ address 0x40020318 - Verified OK
Downloading 1540 bytes @ address 0x400204DC - Verified OK
Downloading 324 bytes @ address 0x40020AE0 - Verified OK
Downloading 236 bytes @ address 0x40020C24 - Verified OK
Downloading 580 bytes @ address 0x40020D10 - Verified OK
Downloading 80 bytes @ address 0x40020F54 - Verified OK
Downloading 272 bytes @ address 0x40020FA4 - Verified OK
Downloading 400 bytes @ address 0x400210B4 - Verified OK
Downloading 320 bytes @ address 0x40021244 - Verified OK
Downloading 128 bytes @ address 0x40021384 - Verified OK
Downloading 192 bytes @ address 0x40021404 - Verified OK
Downloading 104 bytes @ address 0x400214C4 - Verified OK
Downloading 376 bytes @ address 0x4002152C - Verified OK
Downloading 128 bytes @ address 0x400216A4 - Verified OK
Downloading 212 bytes @ address 0x40021724 - Verified OK
Downloading 160 bytes @ address 0x400217F8 - Verified OK
Downloading 440 bytes @ address 0x40021898 - Verified OK
Downloading 160 bytes @ address 0x40021A50 - Verified OK
Downloading 160 bytes @ address 0x40021AF0 - Verified OK
Downloading 160 bytes @ address 0x40021B90 - Verified OK
Downloading 612 bytes @ address 0x40021C30 - Verified OK
Downloading 116 bytes @ address 0x40021E94 - Verified OK
Downloading 160 bytes @ address 0x40021F08 - Verified OK
Downloading 52 bytes @ address 0x40021FA8 - Verified OK
Downloading 64 bytes @ address 0x40021FDC - Verified OK
Downloading 64 bytes @ address 0x4002201C - Verified OK
Downloading 136 bytes @ address 0x4002205C - Verified OK
Downloading 456 bytes @ address 0x400220E4 - Verified OK
Downloading 64 bytes @ address 0x400222AC - Verified OK
Downloading 712 bytes @ address 0x400222EC - Verified OK
Downloading 208 bytes @ address 0x400225B4 - Verified OK
Downloading 600 bytes @ address 0x40022684 - Verified OK
Downloading 440 bytes @ address 0x400228DC - Verified OK
Downloading 460 bytes @ address 0x40022A94 - Verified OK
Downloading 588 bytes @ address 0x40022C60 - Verified OK
Downloading 720 bytes @ address 0x40022EAC - Verified OK
Downloading 1512 bytes @ address 0x4002317C - Verified OK
Downloading 168 bytes @ address 0x40023764 - Verified OK
Downloading 472 bytes @ address 0x4002380C - Verified OK
Downloading 732 bytes @ address 0x400239E4 - Verified OK
Downloading 756 bytes @ address 0x40023CC0 - Verified OK
Downloading 136 bytes @ address 0x40023FB4 - Verified OK
Downloading 1236 bytes @ address 0x4002403C - Verified OK
Downloading 524 bytes @ address 0x40024510 - Verified OK
Downloading 956 bytes @ address 0x4002471C - Verified OK
Downloading 1120 bytes @ address 0x40024AD8 - Verified OK
Downloading 940 bytes @ address 0x40024F38 - Verified OK
Downloading 828 bytes @ address 0x400252E4 - Verified OK
Downloading 424 bytes @ address 0x40025620 - Verified OK
Downloading 416 bytes @ address 0x400257C8 - Verified OK
Downloading 752 bytes @ address 0x40025968 - Verified OK
Downloading 464 bytes @ address 0x40025C58 - Verified OK
Downloading 156 bytes @ address 0x40025E28 - Verified OK
Downloading 212 bytes @ address 0x40025EC4 - Verified OK
Downloading 76 bytes @ address 0x40025F98 - Verified OK
Downloading 176 bytes @ address 0x40025FE4 - Verified OK
Downloading 968 bytes @ address 0x40026094 - Verified OK
Downloading 360 bytes @ address 0x4002645C - Verified OK
Downloading 108 bytes @ address 0x400265C4 - Verified OK
Downloading 320 bytes @ address 0x40026630 - Verified OK
Downloading 300 bytes @ address 0x40026770 - Verified OK
Downloading 508 bytes @ address 0x4002689C - Verified OK
Downloading 628 bytes @ address 0x40026A98 - Verified OK
Downloading 60 bytes @ address 0x40026D0C - Verified OK
Downloading 164 bytes @ address 0x40026D48 - Verified OK
Downloading 428 bytes @ address 0x40026DEC - Verified OK
Downloading 148 bytes @ address 0x40026F98 - Verified OK
Downloading 208 bytes @ address 0x4002702C - Verified OK
Downloading 208 bytes @ address 0x400270FC - Verified OK
Downloading 628 bytes @ address 0x400271CC - Verified OK
Downloading 232 bytes @ address 0x40027440 - Verified OK
Downloading 2068 bytes @ address 0x40030000 - Verified OK
Writing register (R8 = 0x40015928)
GDB closed TCP/IP connection
Show LessI'm running into some strange issues with trying to develop an I2C Bootloader Host.
The problem I'm having looks at least on the surface similar to this issue I was having about a year and a half ago, so this may end up being sort of a sequel to that thread:
I2C Bootloader Error: PSoC Bootloader sending extra bytes to host?
Basically, I have an I2C Bootloader Host program built in C#, using interop services for use of cyusbserial.dll and bootl_utils.dll.
cyusbserial.dll is the one found here that fixes ACKs being too long: Reduce Delay Observed During I2C Read Operations In USB-Serial – KBA227320
bootl_utils.dll is built from the source included with PSoC Creator 4.1. The only change I made to the bootl_utils source is described my previous thread at the top of this post. (it shouldn't have an effect on the current behavior, but who knows!)
I am interfacing with a CY7C65211A USB-Serial bridge in I2C Vendor mode.
Interfacing with the bridge appears to be no issue. I can send my "Enter Bootloader" command to the I2C slave device and it enters the loader as instructed.
The problem comes when I try and actually bootload the PSoC5.
When I attempt to bootload, the first command to enter the bootloader looks completely fine:
The problem arises with the first read, where the host keeps ACKing data well past the EoP byte (0x17). The packet looks good, the host app just keeps reading for some reason:
The read then hangs on an 0xFF byte, until eventually (5 seconds later, the configured read timeout) the host finally NAKs and sends the command to exit the bootloader (0x3B):
I have confirmed that this is definitely an issue with the host application. I am able to enter the bootloader with my application, then bootload successfully using the Bootloader Host included with Creator and the I2C Bridge in the MiniProg3. I'm just at a loss as to where this is going wrong. In my ReadData() function on the host, it is entering with the correct size parameter. I confirmed via debug breakpoint that length == 16, which is correct if we include the address byte. I have no idea why it is ACKing all these extra bytes?
The error code returned from CyBtldr_Program() is the CYRET_ERR_BTLDR_MASK (0x4000) with no error code, which I suppose makes sense, as the status byte from the target is 0x00 (SUCCESS).
I have attached the Bootloader Host Application project. Maybe someone can point something out that I'm missing? It's not the cleanest code (I've been messing with it quite a bit), but it shouldn't be too hard to navigate hopefully.
Show LessHow can i using EZUSB_WriteI2C() and EZUSB_ReadI2C() functions to read/write Data from Si570 - 570FAB000433DG such as image?
I am using Keil C and modify firmware of Cypress. Could you please tell me detail how to read/write data with I2C?
Thank you very much and sorry about my english
Show LessThis is datasheet of Si570:
https://www.silabs.com/documents/public/data-sheets/si570.pdf
I want to read start-up frequency configuration (RFREQ, HS_DIV, and N1) from the device after power-up or register reset (page 18).
The control interface to the Si570 is an I2C-compatible 2-wire bus for bidirectional communication.
How to I read/write start-up frequency by i2c of Cypress USB framework.
I using C:\Cypress\USB\CY3684_EZ-USB_FX2LP_DVK\1.1\Firmware\Vend_ax
This is my code:
DB_Addr = 0x00;
I2C_Addr = 0x00;
byte_array[0] = 0x07;
byte_array[1] = 0x08;
byte_array[2] = 0x09;
byte_array[3] = 0x0A;
byte_array[4] = 0x0B;
byte_array[5] = 0x0C;
for(j =0; j< 6; j ++){
EP0BCH = 0;
EP0BCL = 0; // Clear bytecount to allow new data in; also stops NAKing
iicWriteBuf[0] = 0x00;
iicWriteBuf[1]= byte_array
iicWriteBuf[2] = 0x00;
iicWriteBuf[3] = 0x01;
EEPROMWrite(DB_Addr,(WORD)4,(WORD)iicWriteBuf);
EEPROMRead(DB_Addr,(WORD)1,(WORD)iicReadBuf);
*(EP0BUF+j) = iicReadBuf;
}
EP0BCH = 0;
EP0BCL = 6;
EP0CS|= bmHSNAK;
But it not work, please help me to correct.
Thank you!
Best Regards
Show LessMy system and setup:
Ubuntu 18.04, USB 2.0. Device is a Commell MPX24794S card using a Cypress CY8C24794. The cyusb_linux_1.0.4 package was installed according to the instructions in the README file. The active VID and PID was obtained from the command lsusb as VID = cece and PID = 7941. The /etc/cyusb.conf file and the /etc/udev/rules.d/88-cyusb.rules file were modified according to other discussions found here.
cyusb.conf changed to have cece 7941 Commell MPX24794S
88-cyusb.rules changed to have ATTR{idVendor}=="cece" instead of ATTR{idVendor}=="04b4"
Results and observations:
trying to run cyusb_linux gives 2 error messages: Error in opening device and Error opening library.
Commell documentation claims that the PID is 7940. When the value is changes to this cyusb_linux loads but produces a command line response of No device found and there is no device listed in the running program.
cyusb_linux will also run with no device found if the original forms of cyusb.conf and 88-cyusb.rules are used.
Using what appears to be the correct information according to lsusb gives the most problems.
Please advise as to the next step. Thank you.
Show Less