-
Notifications
You must be signed in to change notification settings - Fork 248
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
Unable to upload to TinyFPGA BX on macOS #753
Comments
I tried file in https://groups.google.com/g/fpga-wars-explorando-el-lado-libre/c/hbWVxvIWU_E/m/V2itMDZpAAAJ?pli=1 but no luck |
For further information this happens no matter if the board is connected and I press the button or even if its fully disconnected |
hi! when do you buy your board? the month and year is important to check what firmware is in it. your machine is intel or arm based? |
Hello, the machine is arm based. In terms of when it was in October of 2023 so one of the new batches. |
Thanks , could you help me to try to fix it? my tiny is prior to this and works fine, if you could give me feedback , we could find a solution. You tried the last _init.py in the thread? (you mention it, but i don't understand if you overwrite with the last init.py) https://groups.google.com/g/fpga-wars-explorando-el-lado-libre/c/hbWVxvIWU_E/m/V2itMDZpAAAJ?utm_medium=email&utm_source=footer |
Ofcourse, I'd be willing to help, I can't help with coding much but I can try to test anything if you have any ideas. |
Ok! give me some time to prepare the new fix and tell you to try it. |
Hi @Bexin3 ! Ill put you three files here https://mega.nz/folder/jM9DlZhQ#7f9N9uniTnS3MHvS5mF3HQ
remember first do in your shell: chmod 755 tinyprog i need you do this steps in a shell to know if it works: tinyprog --atb --security page1.txt -a 2 And then try to upload some bitstream: tinyprog --atb -p hardware.bin hardware.bin is your test bitstream Tell me if it works! |
Hello, so far no luck. Not sure if I am doing this correctly but I downloaded the folder, changed to the folder, ran the first command. Then trying to run the second it said zsh: command not found: tinyprog, so I instead tried to run it as ./tinyprog, in which case it seems to just run the executable and it doesn't change, and neither after running these order does the outcome, saying |
Sorry maybe i write you very fast XD Do this steps in order:
If you send me the output of the 4) 5) and 6) steps , i'm very gratefully. |
Outputs are as follows; |
Have you brew installed? if not install it ( https://brew.sh/ ) and then execute the next two commands: brew install libusb When this was done, execute again your first test : ./tinyprog --libusb --program hardware.bin try first with the original tinyprog and if not works try with the patched. |
I did have both installed, I reinstalled it but no luck, both original and new still have the same output. |
had you did the command ?: ` ` |
Yeah, no difference |
Coud be obvious but you have pyusb installed? pip install pyusb |
And if the previous not work try the next command before executing tinyprog: export DYLD_LIBRARY_PATH="/opt/homebrew/lib:$DYLD_LIBRARY_PATH" |
Not sure if I had it tbh, to be clear I installed the toolchain through the app and didn't do any terminal installations before now so may lack something else if there are other requirements. |
with the tiny connected , could you do lsusb and send me the output? |
Bus 000 Device 001: ID 1d6b:XHCI |
I get the same thing when the board is not connected though weird |
Looks like system report doesn't see it either weird |
Looking at TinyFPGA page looks like multiple people are reporting issues with the new batch with no response from the developer.. |
Yes for this, i'm asking you about the date of your buy. I think you have some problems. The first one is your system not detect the board (this is until tinyprog works). lsusb should detect the board first. I thinkt some test, tell you soon. |
Good news, after cutting of a pin of the voltage regulator the board is now detected, will have a look if your programs work now |
Sadly your program still doesn't upload, but lsusb now gives the following output; Further I wanted to note an interesting behavior the LED is blinking even before I press the button |
The cut of the pin is some solution that you view in some place? The original and patched have the same output? |
Yeah the cut pin is from a thread where it turns out the voltage regulator on the new batch was wrongly placed and produced 5V instead of 3.3v which is why the computer woudlnt detect the board and I had no output. Now I have the output from the lsusb as what I sent detecting the board though I still can't upload to it; I can't test the original output as I don't have one but the ID seems to be correct |
i'm refering if you try the original tinyprog and patched |
Ahh, both of them have the same output sadly |
Could you try the original tinyprog but overwritting the files in my last post in this thread? https://groups.google.com/g/fpga-wars-explorando-el-lado-libre/c/hbWVxvIWU_E/m/V2itMDZpAAAJ?pli=1 |
tried it, still getting the no api.ini file error |
Maybe this could help tinyfpga/TinyFPGA-Bootloader#73 |
Further to this trying to use icestudio on windows I just get tinyfpga not connected error even though it is |
This is the output of default tinyprog
|
Hi @Bexin3!, have you tried to overwrite the python files in your windows installation? i think the not connection problem disappear but you can't program the board. For the moment there are no solution for this batch of boards, that i know. |
Hello, not yet but I can certainly try, how would this be done on windows? |
Hello, I now tried to just overwrite the init file as per original instructions and it worked for windows! |
Yeah! :) and you could program de tiny? Thanks a lot for your feedback! now i can put this fix for all (until your tests i can't know if it works!) Please tell me if all works (at OSX you tell me that this fix not works , correct?) |
You're welcome, thanks for making the fix!! Yes, I tried the test program and then modified it a bit and both time I was able to upload and the led blinked as expected!! |
We are a team! if you modify with some improvement please paste here , your changes will be welcome! |
I seem to have the same or similar issue on MacOS, here's the output it gives me:
Replacing that init file as described by OP didn't seem to have any effect either. Similarly, running your tinyprog file with the arguments you provided ( However, if I added the --pyserial argument as suggested in the update here, it gets a bit farther, giving the output
(I wasn't sure what your two security page files were or if those were necessary, so skipped that step for now, if that's a factor at all) |
I was able to successfully program the tinyfpga using your test-tiny.bin file along with a separately installed copy of tinyprog though, which was produced with the commands:
This used python 3.12.5, while I noticed that the python version that icestudio used was python 3.9, if that's important?
|
Thanks @Patronics !! Thanks for the feedback and for trying everything. Since my tinyfpga works fine, all my attempts to help are blind, your help is essential. The python version can be 3.12 without a problem, in fact i should update it shortly at least in the WIPS. I am going to calmly reread what you have tried and what has worked for you to see if we can close a final version to include it in icestudio so that it works for all users. Can I count on you for the tests? Thank you so much! |
Yeah, sure, I'm happy to help with testing, @cavearr! Let me know whenever you have something ready to test, or any other questions :) Also worth noting that, since the last post, I have confirmed that using the separate install of tinyprog with the hardware.bin filethat icestudio produces when running build also works, so in the meantime I've got a usable toolchain for me needs, though it'd definitely be a lot more convenient once it's properly integrated. |
Hello, I tried to upload a totally basic schematic with one input one output and some others, but I keep getting an error. With all other boards it just says the board isn't connected, but with BX I get the following error;
I tried using both the 0.9.5 and 0.9.6 toolchains but the result is the same.
Info: No apio.ini file
Info: No apio.ini file
[Mon Jun 24 10:14:47 2024] Processing TinyFPGA-BX
tinyprog --libusb --program hardware.bin
Traceback (most recent call last):
File "/Users/redacted/.icestudio/venv/bin/tinyprog", line 8, in
sys.exit(main())
File "/Users/redacted/.icestudio/venv/lib/python3.9/site-packages/tinyprog/main.py", line 249, in main
active_boards = get_ports(device) + get_ports("1209:2100")
File "/Users/redacted/.icestudio/venv/lib/python3.9/site-packages/tinyprog/init.py", line 39, in get_ports
for d in usb.core.find(idVendor=vid, idProduct=pid, find_all=True)
File "/Users/redacted/.icestudio/venv/lib/python3.9/site-packages/usb/core.py", line 1309, in find
raise NoBackendError('No backend available')
usb.core.NoBackendError: No backend available
scons: *** [upload] Error 1
The text was updated successfully, but these errors were encountered: