kk_omnisys Posted October 1, 2015 Report Share Posted October 1, 2015 Hi All! I've cloned the papilio loader app from Github and tried using it with the pipistrelloboard. I figured out that I can add the device id to the devlist.txt file. So far so good. I found that I can run the command-line app with a bscan_spi_XXXX.bit file to program my flash. even better! Looking over the sources for the java GUI I found that the devices it supports is hardcoded in papilioloader.javaprivate File DetectJTAGchain() { File bscanBitFile = null; String[] scanJTAG; String[] scanJTAGOrig = {q_papilio_prog_exe, "-j"}; String[] scanJTAGID = {q_papilio_prog_exe, "-j", "-d", "\"" + pnlTarget.getBoardName() + "\""}; if (pnlTarget.getBoardName().isEmpty()) scanJTAG = scanJTAGOrig; else scanJTAG = scanJTAGID; execSynchronously(scanJTAG, programmerPath, true); //txtOutput.append("In DetectJTAG: " + deviceID); if (!deviceID.isEmpty()) { //txtOutput.append("In isEmpty: " + deviceID); if (deviceID.equals("XC3S250E")) bscanBitFile = new File(rootProgrammerPath, "bscan_spi_xc3s250e.bit"); else if (deviceID.equals("XC3S500E")) bscanBitFile = new File(rootProgrammerPath, "bscan_spi_xc3s500e.bit"); else if (deviceID.equals("XC3S100E")) bscanBitFile = new File(rootProgrammerPath, "bscan_spi_xc3s100e.bit"); else if (deviceID.equals("XC6SLX9")) bscanBitFile = new File(rootProgrammerPath, "bscan_spi_xc6slx9.bit"); else if (deviceID.equals("XC6SLX4")) bscanBitFile = new File(rootProgrammerPath, "bscan_spi_xc6slx4.bit"); } return bscanBitFile; }Can't this be more general, like having an extra column in devlist.txt? Best regardsKalle Kempe Quote Link to comment Share on other sites More sharing options...
offroad Posted October 2, 2015 Report Share Posted October 2, 2015 Hi, have a look at xc3sprog. AFAIK, Papilio Loader is built around it. It takes the bscan bit file name as command line argument. Quote Link to comment Share on other sites More sharing options...
Jack Gassett Posted October 2, 2015 Report Share Posted October 2, 2015 Yes, I would recommend xc3sprog as well, there are more features and it is updated more often. We forked from it to make Papilio Loader because it used to be real confusing to use xc3sprog but it has improved over the years. Jack. Quote Link to comment Share on other sites More sharing options...
james1095 Posted October 2, 2015 Report Share Posted October 2, 2015 I'll have to check that out. Papilio Loader works very well in most cases but it drives me nuts that it doesn't remember the last location I went for the bitfile and defaults to My Documents. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.