![]() |
USB: Connection timed out SYS: Connection timed out
Hi! I am trying to run an example where it send bulk data through the USB port as max device speed to test the link.
The chip is a Cypress FX2 (I dont think there is a problem firmware). You can find the whole example here He create this own version sdcc and used a function called Bench_bulk. The Problem it looked like System is timing out, but I don't know how to really tell to wait until it has received all the data. I run the command: Code:
cycfx2prog prg:bench_in.ihx run bench_bulk:6,16777216 Quote:
Quote:
Quote:
Quote:
|
UPDATE 2:
I am sorry if people read this and try to answer as I have some hardware issues here, now its doing bulk transfer: Quote:
The clue came when I found the function to send data to the RAM through the USB and after increasing it was going nothing. Here is the bit: Quote:
Now it give me a good question why go to create a library in C++ when nearly all is done in C? And can you always translate C++ library into C one? Thanks |
UPDATE 3:
I had time to spend a bit more with the code, but I have noticed that is C++ code stile but the files are .cc and its compiling with gcc, its possible use C++ using gcc compiler? |
UPDATE 4:
I have got the answer from here and here " It depends on what exactly you changed in the makefile. gcc / g++ is really just a front-end driver program which invokes the actual compiler and / or linker based on the options you give it. If you invoke the compiler as gcc: it will compile as C or C++ based on the file extension (.c, or .cc / .cpp); it will link as C, i.e. it will not pull in C++ libraries unless you specifically add additional arguments to do so. If you invoke the compiler as g++: it will compile as C++ regardless of whether or not the file extension is .c or .cc / .cpp; it will link as C++, i.e. automatically pull in the standard C++ libraries." |
All times are GMT -5. The time now is 04:45 AM. |