Need testers for USBcode

More
27 Nov 2017 16:00 #66205 by vlad_vy
Replied by vlad_vy on topic Need testers for USBcode
It can't be compiled - ERROR

Please Log in or Create an account to join the conversation.

More
27 Nov 2017 16:57 - 27 Nov 2017 16:58 #66207 by Moeder
Replied by Moeder on topic Need testers for USBcode
Did you try building the master branch (github) with the additional build instructions in the Readme.md (concerning usb4java)?
Last edit: 27 Nov 2017 16:58 by Moeder.

Please Log in or Create an account to join the conversation.

More
27 Nov 2017 17:00 #66208 by vlad_vy
Replied by vlad_vy on topic Need testers for USBcode
It's for new version install. Current version already installed.

Please Log in or Create an account to join the conversation.

More
27 Nov 2017 19:01 #66211 by Moeder
Replied by Moeder on topic Need testers for USBcode
Was just a bad guess. I guess we need to do some more debugging of the USB connectivity in the uploader. I have neither devo nor jumper at hand to help out this week. Maybe PB can clue us what is different with his build?

Please Log in or Create an account to join the conversation.

More
27 Nov 2017 22:11 - 27 Nov 2017 22:15 #66216 by Moeder
Replied by Moeder on topic Need testers for USBcode
@vlad_vy: try the build linked below (without your changes, should be a true 0.8.0) and see if it recognizes your devos

WeTransfer

edit: if it works, it's likely that the first commit after 0.8.0 introduced the bug
Last edit: 27 Nov 2017 22:15 by Moeder.

Please Log in or Create an account to join the conversation.

More
28 Nov 2017 04:23 #66221 by vlad_vy
Replied by vlad_vy on topic Need testers for USBcode
now I can get info from Devo8:
d:\4>java -jar DeviationUpload-0.8.0-jar-with-dependencies.jar -list
Found: Runtime [00483:df11] cfg=0, intf=0, alt=0, name='1155:57105:@Internal Flash  :@SPI Flash: Config:@SPI Flash: Library'
Determining device status: statue=dfuERROR status=10
dfuERROR, clearing status
Determining device status: statue=dfuIDLE status=0
dfuIDLE, continuing
Determining device status: statue=dfuIDLE status=0
dfuIDLE, continuing
  Setting address pointer to 0x8000400
   Poll timeout 104 ms
bytes_per_hash=1024
Starting device read
Device  Interface    Start        End    Size   Count
DEVO8
                0 08004000   0803ffff    2048   120
                1 00002000   0000dfff    4096   12
                2 00010000   003fffff   65536   63

Please Log in or Create an account to join the conversation.

More
28 Nov 2017 05:43 - 28 Nov 2017 05:52 #66223 by Moeder
Replied by Moeder on topic Need testers for USBcode
OK try compiling This one
Just change jdk version in pom.xml to 1.8 (twice) in this section:
<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.5.1</version>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>
Last edit: 28 Nov 2017 05:52 by Moeder. Reason: Correct github link + code snippet

Please Log in or Create an account to join the conversation.

More
28 Nov 2017 05:56 #66224 by vlad_vy
Replied by vlad_vy on topic Need testers for USBcode
With your previous build I get:
d:\4>java -jar DeviationUpload-0.8.0-jar-with-dependencies.jar -list
Found: Runtime [00483:df11] cfg=0, intf=0, alt=0, name='1155:57105:Unknown:Unknown:Unknown'
Determining device status: statue=dfuERROR status=14
dfuERROR, clearing status
error clear_status
Determining device status: statue=dfuERROR status=14
dfuERROR, clearing status
error clear_status
  Setting address pointer to 0x8000400
dfuseDownload: libusb_control_msg returned -5
Error during special command download
Exception in thread "main" java.lang.NullPointerException
        at java.util.Arrays.copyOfRange(Unknown Source)
        at deviation.TxInfo.<init>(TxInfo.java:24)
        at deviation.TxInfo.getTxInfo(TxInfo.java:83)
        at deviation.DeviationUploader.main(DeviationUploader.java:457)

Please Log in or Create an account to join the conversation.

More
28 Nov 2017 06:08 - 28 Nov 2017 06:22 #66225 by vlad_vy
Replied by vlad_vy on topic Need testers for USBcode
No, my compiled version This one doesn't work:
d:\deviation-upload\target>java -jar DeviationUpload-0.8.0-jar-with-dependencies.jar -list
Found: Runtime [00483:df11] cfg=0, intf=0, alt=0, name='1155:57105:Unknown:Unknown:Unknown'
Determining device status: statue=dfuERROR status=14
dfuERROR, clearing status
error clear_status
Determining device status: statue=dfuERROR status=14
dfuERROR, clearing status
error clear_status
  Setting address pointer to 0x8000400
dfuseDownload: libusb_control_msg returned -5
Error during special command download
Exception in thread "main" java.lang.NullPointerException
        at java.util.Arrays.copyOfRange(Unknown Source)
        at deviation.TxInfo.<init>(TxInfo.java:24)
        at deviation.TxInfo.getTxInfo(TxInfo.java:83)
        at deviation.DeviationUploader.main(DeviationUploader.java:457)
Last edit: 28 Nov 2017 06:22 by vlad_vy.

Please Log in or Create an account to join the conversation.

More
28 Nov 2017 10:03 #66227 by Moeder
Replied by Moeder on topic Need testers for USBcode

vlad_vy wrote: No, my compiled version This one doesn't work:



That is odd... Are you sure you checked it out correctly and did a clean build?

Please Log in or Create an account to join the conversation.

More
28 Nov 2017 10:13 #66229 by vlad_vy
Replied by vlad_vy on topic Need testers for USBcode
All clean build, with deleted target and cache. Probably Windows build will not work at any case.

Please Log in or Create an account to join the conversation.

More
28 Nov 2017 10:36 - 28 Nov 2017 10:37 #66230 by Moeder
Replied by Moeder on topic Need testers for USBcode
You could try building it using a more recent usb4java version, 1.0.0 is pretty old

Edit: could you send me your 0. 8. 0 build jar file for comparison?
Last edit: 28 Nov 2017 10:37 by Moeder.

Please Log in or Create an account to join the conversation.

More
28 Nov 2017 12:57 - 28 Nov 2017 12:58 #66232 by vlad_vy
Replied by vlad_vy on topic Need testers for USBcode
Bingo! Windows 7 build works normally! I can get info from Devo8.
c:\deviation-upload\target>java -jar DeviationUpload-0.8.0-jar-with-dependencies.jar -list
Found: Runtime [00483:df11] cfg=0, intf=0, alt=0, name='1155:57105:@Internal Flash  :@SPI Flash: Config:@SPI Flash: Library'
Determining device status: statue=dfuUPLOAD-IDLE status=0
aborting previous incomplete transfer
Determining device status: statue=dfuIDLE status=0
dfuIDLE, continuing
Determining device status: statue=dfuIDLE status=0
dfuIDLE, continuing
  Setting address pointer to 0x8000400
   Poll timeout 104 ms
bytes_per_hash=1024
Starting device read
Device  Interface    Start        End    Size   Count
DEVO8
                0 08004000   0803ffff    2048   120
                1 00002000   0000dfff    4096   12
                2 00010000   003fffff   65536   63
Last edit: 28 Nov 2017 12:58 by vlad_vy.

Please Log in or Create an account to join the conversation.

More
28 Nov 2017 14:35 #66233 by Moeder
Replied by Moeder on topic Need testers for USBcode
Is that using new usb4java version and the commit 8ec03c4?

Would you mind testing the version linked below compiled on macOS 10.12.6?
WeTransfer

Please Log in or Create an account to join the conversation.

More
28 Nov 2017 14:53 - 28 Nov 2017 14:54 #66234 by vlad_vy
Replied by vlad_vy on topic Need testers for USBcode
Nothing changed except PC and Windows version, it's commit 8ec03c4.

With current code I get errors:
c:\deviation-upload\target>java -jar DeviationUpload-0.8.0-jar-with-dependencies.jar -list
Found: Runtime [00483:df11] cfg=0, intf=0, alt=0, name='1155:57105:@Internal Flash  :@SPI Flash: Config:@SPI Flash: Library'
Determining device status: statue=dfuERROR status=10
dfuERROR, clearing status
Determining device status: statue=dfuIDLE status=0
dfuIDLE, continuing
Determining device status: statue=dfuIDLE status=0
dfuIDLE, continuing
  Setting address pointer to 0x8000400
   Poll timeout 104 ms
bytes_per_hash=1024
Starting device read
Exception in thread "main" java.lang.NullPointerException
        at deviation.TxInfo.<init>(TxInfo.java:27)
        at deviation.TxInfo.getTxInfo(TxInfo.java:83)
        at deviation.DeviationUploader.main(DeviationUploader.java:457)
Last edit: 28 Nov 2017 14:54 by vlad_vy.

Please Log in or Create an account to join the conversation.

More
28 Nov 2017 15:38 #66235 by vlad_vy
Replied by vlad_vy on topic Need testers for USBcode
It looks like problem related to line 27 TxInfo.java, it changed after commit 8ec03c4.

Please Log in or Create an account to join the conversation.

More
28 Nov 2017 16:45 - 28 Nov 2017 16:45 #66237 by FDR
Replied by FDR on topic Need testers for USBcode
It seems to me, that we would need to call "TransmitterList.init" somewhere before that line, probably in the "DeviationUpload.main".
I didn't check if it happened or not, but judging from the "null pointer exception" rather not...
Last edit: 28 Nov 2017 16:45 by FDR.

Please Log in or Create an account to join the conversation.

More
28 Nov 2017 16:59 - 28 Nov 2017 17:05 #66238 by vlad_vy
Replied by vlad_vy on topic Need testers for USBcode
Yes, TransmitterList.init() added. Devo8 and T8SG:
c:\deviation-upload\target>java -jar DeviationUpload-0.8.0-jar-with-dependencies.jar -list
Found: Runtime [00483:df11] cfg=0, intf=0, alt=0, name='1155:57105:@Internal Flash  :@SPI Flash: Config:@SPI Flash: Library'
Determining device status: statue=dfuERROR status=10
dfuERROR, clearing status
Determining device status: statue=dfuIDLE status=0
dfuIDLE, continuing
Determining device status: statue=dfuIDLE status=0
dfuIDLE, continuing
  Setting address pointer to 0x8000400
   Poll timeout 104 ms
bytes_per_hash=1024
Starting device read
Device  Interface    Start        End    Size   Count
Devo 8
                0 08004000   0803ffff    2048   120
                1 00002000   0000dfff    4096   12
                2 00010000   003fffff   65536   63

c:\deviation-upload\target>java -jar DeviationUpload-0.8.0-jar-with-dependencies.jar -list
Found: Runtime [00483:df11] cfg=0, intf=0, alt=0, name='1155:57105:@Internal Flash  :@SPI Flash: Config:@SPI Flash: Library'
Determining device status: statue=dfuERROR status=10
dfuERROR, clearing status
Determining device status: statue=dfuIDLE status=0
dfuIDLE, continuing
Determining device status: statue=dfuIDLE status=0
dfuIDLE, continuing
  Setting address pointer to 0x8000400
   Poll timeout 104 ms
bytes_per_hash=1024
Starting device read
Device  Interface    Start        End    Size   Count
Devo 7e
                0 08003000   0803ffff    1024   244
                1 00000000   0001ffff    4096   32
                1 00020000   001fffff   65536   30

I can successfully flash Devo8, but T8SG get black screen after flashing.
Last edit: 28 Nov 2017 17:05 by vlad_vy.

Please Log in or Create an account to join the conversation.

More
28 Nov 2017 17:05 #66239 by FDR
Replied by FDR on topic Need testers for USBcode
Probably the filesystem is missing...

Please Log in or Create an account to join the conversation.

More
28 Nov 2017 17:06 - 28 Nov 2017 17:11 #66240 by vlad_vy
Replied by vlad_vy on topic Need testers for USBcode
No, I flash DFU file only. Something is wrong.

If I flash firmware DFU with Dfuse all OK again.

DeviationUploader.java
    public static void main(String[] args)
    {
        if (args.length == 0) {
        	//DnDFrame.main(null);
            DeviationUploadGUI.main(null);
            while(true) {}
        }
        TransmitterList.init();
        CommandLine cl = handleCmdline(args);
        ...
        ...
Last edit: 28 Nov 2017 17:11 by vlad_vy.

Please Log in or Create an account to join the conversation.

Time to create page: 0.109 seconds
Powered by Kunena Forum