New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while updating bootloader: invalid literal for int() with base 10 #18

shenki opened this Issue Aug 1, 2018 · 0 comments


None yet
1 participant
Copy link

shenki commented Aug 1, 2018

I have installed tinyprog 2058597 using python install --user, an was using it to update the bootloader my TinyFPGA BX:

$ tinyprog --update-bootloader

    TinyProg CLI
    Using device id 1d50:6130
    Only one board with active bootloader, using it.

    The following update:

        New Version: 1.0.1
        Notes: Updates USB VID:PID to fix issues with APIO not recognizing the board.

    is available for this board:

        /dev/ttyACM0: TinyFPGA BX 1.0.0
            FPGA: ice40lp8k-cm81

    Would you like to perform the update? [y/N] y
    Fetching stage one...
    Programming stage one...
    Erasing: 100%|████████████████████████████████████████████████████████████████████████████████████████████| 135k/135k [00:00<00:00, 163kB/s]
    Writing: 100%|████████████████████████████████████████████████████████████████████████████████████████████| 135k/135k [00:00<00:00, 177kB/s]
    Reading: 100%|████████████████████████████████████████████████████████████████████████████████████████████| 135k/135k [00:00<00:00, 425kB/s]
    Waiting for stage one to reconnect....connected!
    Fetching stage two...
    Programming stage two...
    Erasing:   0%|                                                                                                   | 0.00/299k [00:00<?, ?B/s]
Traceback (most recent call last):
  File "/home/joel/.local/bin/tinyprog", line 11, in <module>
    load_entry_point('tinyprog==1.0.18', 'console_scripts', 'tinyprog')()
  File "build/bdist.linux-x86_64/egg/tinyprog/", line 282, in main
  File "build/bdist.linux-x86_64/egg/tinyprog/", line 152, in perform_bootloader_update
  File "build/bdist.linux-x86_64/egg/tinyprog/", line 419, in program_bitstream
  File "build/bdist.linux-x86_64/egg/tinyprog/", line 375, in program
  File "build/bdist.linux-x86_64/egg/tinyprog/", line 347, in erase
  File "build/bdist.linux-x86_64/egg/tinyprog/", line 301, in _erase
  File "build/bdist.linux-x86_64/egg/tinyprog/", line 290, in wait_while_busy
  File "build/bdist.linux-x86_64/egg/tinyprog/", line 21, in to_int
ValueError: invalid literal for int() with base 10: ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment