davidcarne / iceburn Goto Github PK
View Code? Open in Web Editor NEWPython script for programming the iCEBlink40 development board under linux
Python script for programming the iCEBlink40 development board under linux
Sorry about filing this as an "issue" ... I have no idea how else to do this.
I bought a HX1K based board and ... I'll omit the backstory.
Anyway, I'm using HEAD from both your repository and walac's pyusb repository, and on a freshly-inserted device I see the following:
$ ./regtool.py
Traceback (most recent call last):
File "./regtool.py", line 31, in
main()
File "./regtool.py", line 20, in main
for atype, arg in args.actions:
TypeError: 'NoneType' object is not iterable
$ ./regtool.py
Traceback (most recent call last):
File "./regtool.py", line 31, in
main()
File "./regtool.py", line 20, in main
for atype, arg in args.actions:
TypeError: 'NoneType' object is not iterable
$ ./iCEburn.py
$ ./iCEburn.py
Traceback (most recent call last):
File "./iCEburn.py", line 75, in
main()
File "./iCEburn.py", line 20, in main
with board.get_gpio() as gpio:
File "/home/rjacobs/src/iceBurn/libiceblink.py", line 149, in enter
self.open()
File "/home/rjacobs/src/iceBurn/libiceblink.py", line 161, in open
self.dev.checked_cmd(0x03, 0x00, "gpioopen", [0x00], noret=True)
File "/home/rjacobs/src/iceBurn/libiceblink.py", line 339, in checked_cmd
status, respl = self.cmd(cmd, subcmd, payload, ressize, show)
File "/home/rjacobs/src/iceBurn/libiceblink.py", line 349, in cmd
ressize)
File "/home/rjacobs/src/iceBurn/libiceblink.py", line 362, in cmd_i
res = bytes(self.ep_cmdin.read(result_size))
File "/usr/local/lib/python3.4/dist-packages/usb/core.py", line 364, in read
return self.device.read(self, size_or_buffer, timeout)
File "/usr/local/lib/python3.4/dist-packages/usb/core.py", line 918, in read
self.__get_timeout(timeout))
File "/usr/local/lib/python3.4/dist-packages/usb/backend/libusb0.py", line 489, in bulk_read
timeout)
File "/usr/local/lib/python3.4/dist-packages/usb/backend/libusb0.py", line 562, in __read
timeout
File "/usr/local/lib/python3.4/dist-packages/usb/backend/libusb0.py", line 380, in _check
raise USBError(errmsg, ret)
usb.core.USBError: [Errno None] b'No error'
Subsequent execution of either iCEburn or regtool return the final longest backtrace.
Help?
Great work on this project, but I am having terrible trouble getting this installed. All i can do is create an egg file, but there's nothing i can do to make it run. I've tried installing it and running from in python3. I've tried to run it with python3 -m, i've tried installing it, and it just disappears. If i try and run the egg directly it says it can't find main even though i can see it in the source code.
Is there any way the documentation can clarify how to get a iCEburn.py file out of the installation? This is driving me nuts, i've been googling for hours trying to figure this out. I'm a C / C++ developer, so python for me is the antichrist, i just don't understand it at all.
Hi,
First, thanks for this utility, really useful :)
Now, I'm having an issue with it is that after using it, I need to unplug and replug the board or I get a "timeout" error from PyUSB the second time I try.
ATM I've resolved it by doing a .reset() on the board.dev before quitting but that seems a bit brute-force.
I'm using Python 3.4 and git master of pyusb.
Cheers,
Sylvain
Retracted! Working well, I have a LP1K board in fact not a HX1K
~~Runs without error, board wont run (tried various examples including icestorm example for this board).
ali@ali-debian:~/Workspace/icestorm-tools/icestorm/examples/iceblink$ iceburn -e -v -w example.bin
Found iCE40 board serial: 013002808116
Erasing flash...
Writing image...
Verifying written image...~~
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.