Coder Social home page Coder Social logo

gadgetfactory / designlab Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alvieboy/zpuino

23.0 23.0 22.0 1.59 GB

FPGA Soft Processor IDE - Use Arduino Sketches and a schematic editor to make custom SOC designs for Papilo FPGA's.

Home Page: http://www.papillio.cc/

License: Other

Java 4.74% Shell 0.25% Python 0.83% Arduino 0.28% Perl 0.02% C++ 9.02% C 27.27% Logos 0.05% XS 0.02% HTML 56.40% Makefile 0.32% Objective-C 0.36% Processing 0.01% Assembly 0.33% CSS 0.07% Inno Setup 0.01% Batchfile 0.01% GDB 0.03%

designlab's People

Contributors

aethaniel avatar alvieboy avatar amcewen avatar amulya349 avatar cmaglie avatar damellis avatar daveackley avatar dcuartielles avatar eighthave avatar fede85 avatar ffissore avatar fulvioieva avatar gandrewstone avatar jackgassett avatar jcbuda avatar kdgoup avatar lauszus avatar matthijskooijman avatar mlafauci avatar ntruchsess avatar paulstoffregen avatar projectgus avatar ribbons avatar ricklon avatar s17t avatar shfitz avatar tigoe avatar travisg avatar westfw avatar zeveland avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

designlab's Issues

Compilation of Basic Arduino Sketch failed with designLab-1.0.3

I just downloaded DesignLab-1.0.3 and tried to compile a simple sketch ( Arduino basic blink LED) in order to test upload to AVR side but there is an issue inside DesignLab at the end of compilation:

Sketch uses 4,732 bytes (16%) of program storage space. Maximum is 28,672 bytes.
Global variables use 42 bytes (1%) of dynamic memory, leaving 2,518 bytes for local variables. Maximum is 2,560 bytes.
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:454)
at java.lang.Integer.parseInt(Integer.java:527)
at processing.app.Sketch.size(Sketch.java:1721)
at processing.app.Sketch.build(Sketch.java:1604)
at processing.app.Sketch.exportApplet(Sketch.java:1625)
at processing.app.Sketch.exportApplet(Sketch.java:1611)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2666)
at java.lang.Thread.run(Thread.java:745)

Burn of bootloader failed with DesignLab 1.0.3 and DesignLab 1.0.1 on Kubuntu 64 bits

When trying to restore the AVR bootloader I obtain an error message because file DesignLab-1.0.x/hardware/arduino/avr/bootloaders/caterina/Caterina-Papilio-duo.hex do not exist.

The correct file seems to be DesignLab-1.0.x/hardware/arduino/avr/bootloaders/caterina/Caterina-Papilio-DUO.hex
By creating a symbolic link the burn of bootloader is now successfull

Coudl you perform the necessary corrections in DesignLab so that it searchs the correct name ?

'Error while burning bootloader. java.lang.NullPointerException' if wrong board selected

If you have selected the wrong board you get the an unhelpful message when trying to run 'Burn Bootloader'.

i.e. if you select 'Papilio FPGA Boards>Papilio Duo FPGA .......' instead of 'Papilio DUO - AVR>Papilio DUO - AVR USB' you will get the following message

Error while burning bootloader.
java.lang.NullPointerException
at cc.arduino.packages.uploaders.SerialUploader.burnBootloader(SerialUploader.java:339)
at processing.app.Editor$59.run(Editor.java:2838)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:702)
at java.awt.EventQueue$3.run(EventQueue.java:696)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:719)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

The tools should give a message reminding the user of the correct physical connections to make and board to select.

This is against DesignLab v1.0.3

Designlab 1.0.6 load circuit

Hello,
when I hit the load button I get:
C:\DesignLab-1.0.6\hardware\tools\papilio\papilio_loader\Papilio_Programmer.bat ..\Papilio_Programmer.sh: line 4: $'\r': command not found
C:\DesignLab-1.0.6\hardware\tools\papilio\papilio_loader\Papilio_Programmer.bat..\Papilio_Programmer.sh: line 5: set: - : invalid option
set: usage: set [--abefhkmnptuvxBCHP] [-o option-name] [arg ...]
C:\DesignLab-1.0.6\hardware\tools\papilio\papilio_loader\Papilio_Programmer.bat_..\Papilio_Programmer.sh: line 6: $'\r': command not found_
C:\DesignLab-1.0.6\hardware\tools\papilio\papilio_loader\Papilio_Programmer.bat ..\Papilio_Programmer.sh: line 8: $'\r': command not found
C:\DesignLab-1.0.6\hardware\tools\papilio\papilio_loader\Papilio_Programmer.bat ..\Papilio_Programmer.sh: line 14: $'\r': command not found
C:\DesignLab-1.0.6\hardware\tools\papilio\papilio_loader\Papilio_Programmer.bat ..\Papilio_Programmer.sh: line 16: $'\r': command not found
C:\DesignLab-1.0.6\hardware\tools\papilio\papilio_loader\Papilio_Programmer.bat _..\Papilio_Programmer.sh: line 17: syntax error near unexpected token $'in\r''_ _C:\DesignLab-1.0.6\hardware\tools\papilio\papilio_loader\Papilio_Programmer.bat_ *..\Papilio_Programmer.sh: line 17: case "$return_value" in *

I'm on Windows 7 32bit

update readme

It looks the the actual readme lives in readme.txt. If you rename it to README.md (deleting the existing one), then it will show on the github project page.

Are there build instructions for the DesignLab IDE?

Design Lab 1.0.3, papilio-prog and libftdi on Fedora 21

On Fedora 21 I had to install both the 32 and 64 bit versions of the libftdi as the Design Lab 1.0.3 64 bit download contains and uses both the 32bit and 64 bit versions of papilio-prog

Can you only include 64 bit the version of papilio-prog in the 64 bit download?

Furthermore, Fedora 21 uses a more recent version of libftdi (v1.2), and the library is actually called libftdi1.

/usr/lib/libftdi1.so.2
/usr/lib64/libftdi1.so.2

I can fix this by creating 2 symbolic links as shown below
/usr/lib/libftdi.so.1 -> libftdi1.so.2
/usr/lib64/libftdi.so.1 -> libftdi1.so.2

Can you create these symbolic links in your ftdi_user.sh script if required?

On a related note, can you only include and reference a single papilio-prog in the download zip? I count it included 5 different times

./hardware/tools/papilio/papilio-prog
./hardware/tools/papilio/lin64/papilio-prog
./hardware/tools/papilio/papilio_loader/papilio-prog
./hardware/tools/papilio/lin32/papilio-prog
./tools/Papilio_Loader/programmer/linux32/papilio-prog

Burn Bootloader doesn't use the correct path

When trying to burn the bootloader, it gets most of the path wrong.
Here is the path it is trying:
"D:DesignLab-1.0.7hardwarearduinoavr/bootloaders/bootloader.file"

It is missing a lot of slashes.

'java.io.IOException: Cannot run program papilio-prog.exe' on linux while burning bootloader

I receive a 'java.io.IOException: Cannot run program' error when I try and run burn bootloader on linux. This fails on linux as the program it is trying to call 'papilio-prog.exe' is 1) not executable and 2) a windows binary.

If I delete the papilio-prog.exe and copy in the linux executable from the parent directory and rename it to papilio-prog.exe, then the bootloader burn works fine.

java.io.IOException: Cannot run program ".xxxxxxxxxxx/DesignLab-1.0.3/hardware/tools/papilio/papilio_loader/bin/papilio-prog.exe": error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at java.lang.Runtime.exec(Runtime.java:485)
at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:13)
at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:105)
at cc.arduino.packages.uploaders.SerialUploader.burnBootloader(SerialUploader.java:383)
at processing.app.Editor$59.run(Editor.java:2838)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:702)
at java.awt.EventQueue$3.run(EventQueue.java:696)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:719)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.(UNIXProcess.java:187)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 20 more
Error while burning bootloader.

SPI issue

Hey guys - there's a compilation error for anything that uses SPI in my new 1.0.4 installation that has been there from the previous 1.0.3 installations. This example is from the analog wing example. The fix is easy (comment out line 16 of libraries/SPIADC/SPIADC.h). I thought I had seen this change made previously in github. Or perhaps the fix is actually supposed to be elsewhere?
Build options changed, rebuilding all
In file included from WING_Analog.ino:50:
C:/DesignLab-1.0.4/libraries/SPIADC/SPIADC.h:16: error: redefinition of struct CS' C:/DesignLab-1.0.4/hardware/zpuino/zpu20/libraries/SPI/SPI.h:55: error: previous definition ofstruct CS'
Error compiling.

http://forum.gadgetfactory.net/index.php?/topic/2257-designlab-104-released/#entry15466

DesignLab overwrites library assignments on every opening of a project

In this thread Jack helped me out to find the cause why the ISim simulation of a simple design did not work. The fix was to move DesignLab library files in ISE from the "DesignLab" library folder into the "work" folder.

The problem is that DesignLab rewrites the library assignments when the project is opened again in DesignLab. So after a project has been fixed in ISE for running an ISim simulation, after closing the design in ISE and closing the sketch in DesignLab, and after reopening the sketch in DesignLab and reopening the design in ISE, the simulation is broken again,

DesignLab IDE Installation and GitHub Build Issues

I'm facing challenges:

1>Unable to find DesignLab IDE installer.
2>Encountered errors while building from GitHub source.
3>Broken links on forum pages.

BUILD FAILED
D:\FPGA Learn\soft-core\DesignLab-DesignLab_1.0.8\build\build.xml:61: The following error occurred while executing this line:
D:\FPGA Learn\soft-core\DesignLab-DesignLab_1.0.8\build\build.xml:867: The following error occurred while executing this line:
D:\FPGA Learn\soft-core\DesignLab-DesignLab_1.0.8\build\build.xml:657: Execute failed: java.io.IOException: Cannot run program "unzip" (in directory "D:\FPGA Learn\soft-core\DesignLab-DesignLab_1.0.8\build"): CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
at java.base/java.lang.Runtime.exec(Runtime.java:589)
at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:424)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:438)
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:660)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:699)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:527)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
at jdk.internal.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
at jdk.internal.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
at jdk.internal.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
at org.apache.tools.ant.Project.executeTarget(Project.java:1374)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
at org.apache.tools.ant.Main.runBuild(Main.java:818)
at org.apache.tools.ant.Main.startAnt(Main.java:223)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessImpl.create(Native Method)
at java.base/java.lang.ProcessImpl.(ProcessImpl.java:487)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:154)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
... 50 more

Total time: 3 seconds

New DesignLab library fails if canceled out.

  1. Uninstall and reinstall DesignLab-1.0.3 -> the file "C:\DesignLab-1.0.3\examples\Template_DesignLab_Library\edit_library.ino" is present
  2. Start DesignLab
  3. Click "New DesignLab Library" -> The file selection box will open as expected
  4. Now press "Cancel" -> After this the file "C:\DesignLab-1.0.3\examples\Template_DesignLab_Library\edit_library.ino" is gone
  5. The next attempt to click "New DesignLab Library" will now fail and only produce the Java exception reported in an earlier post.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.