Skip to content
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

FYI to all:for new (old stock) devices failing flashing. #416

Open
aloeppert opened this issue Jun 7, 2023 · 0 comments
Open

FYI to all:for new (old stock) devices failing flashing. #416

aloeppert opened this issue Jun 7, 2023 · 0 comments
Labels

Comments

@aloeppert
Copy link

Hi all,
I recently added a new greatfet to the menagerie (bought one several years ago). There was a little confusion bringing the new device up-to-date. Having no build problems for the latest firmware and putting the device in DFU mode, I needed to first put the new firmware in RAM before updating the ROM

So:
(venv) loeppert@adl:/usb-hid/greatfet/firmware/greatfet_usb/build$ make greatfet_usb-flash
failed
but:
(venv) loeppert@adl:
/usb-hid/greatfet/firmware/greatfet_usb/build$ make greatfet_usb-program
(venv) loeppert@adl:~/usb-hid/greatfet/firmware/greatfet_usb/build$ make greatfet_usb-flash

This updated as expected. I didn't see any such mention in the docs - which obviously I could update (but maybe I missed) as this is an open source project, but I wonder if others are having the same issue.

(venv) loeppert@adl:~/usb-hid/greatfet/firmware/greatfet_usb/build$ gf info
Found a GreatFET One!
Board ID: 0
Firmware version: git-v2021.2.1-64-g2409575
...

I'm using "Ubuntu 23.04", with a virtual env. for python 3.11

The error message for trying to flash without programming first is (again, the board is in DFU mode verified by lsusb)
:
(venv) loeppert@adl:~/usb-hid/greatfet/firmware/greatfet_usb/build$ make greatfet_usb-flash
[ 6%] Built target libopencm3
[ 12%] Built target libgreat_module_bsp
[ 21%] Built target libgreat
[ 22%] Built target libgreat_module_debug-backtrace
[ 24%] Built target libgreat_module_allocator
[ 27%] Built target libgreat_module_comms
[ 27%] Built target libgreat_module_ad970x
[ 27%] Built target libgreat_module_scheduler
[ 28%] Built target libgreat_module_ringbuffer
[ 33%] Built target libgreat_module_usb
[ 33%] Built target libgreat_module_usb_comms
[ 34%] Built target libgreat_module_gpio
[ 35%] Built target libgreat_module_uart
[ 36%] Built target libgreat_module_dac
[ 39%] Built target libgreat_module_sgpio
[ 84%] Built target greatfet_usb
[100%] Built target libgreatfet
[100%] Built target greatfet_usb.bin.elf
[100%] Built target greatfet_usb.bin
Trying to find a GreatFET device...
Traceback (most recent call last):
File "/home/loeppert/usb-hid/venv/bin/greatfet_firmware", line 8, in
sys.exit(main())
^^^^^^
File "/home/loeppert/usb-hid/venv/lib/python3.11/site-packages/greatfet/commands/greatfet_firmware.py", line 200, in main
device = parser.find_specified_device()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/loeppert/usb-hid/venv/lib/python3.11/site-packages/greatfet/utils.py", line 219, in find_specified_device
device = self._find_greatfet(args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/loeppert/usb-hid/venv/lib/python3.11/site-packages/greatfet/utils.py", line 312, in _find_greatfet
return GreatFET(serial_number=args.serial)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/loeppert/usb-hid/venv/lib/python3.11/site-packages/greatfet/greatfet.py", line 33, in GreatFET
return GreatFETBoard.autodetect(**board_identifiers)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/loeppert/usb-hid/venv/lib/python3.11/site-packages/pygreat/board.py", line 72, in autodetect
if subclass.accepts_connected_device(**device_identifiers):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/loeppert/usb-hid/venv/lib/python3.11/site-packages/pygreat/board.py", line 168, in accepts_connected_device
potential_device = cls(**device_identifiers)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/loeppert/usb-hid/venv/lib/python3.11/site-packages/greatfet/boards/legacy.py", line 70, in init
raise DeviceNotFoundError()
greatfet.errors.DeviceNotFoundError
make[3]: *** [CMakeFiles/greatfet_usb-flash.dir/build.make:70: CMakeFiles/greatfet_usb-flash] Error 1
make[2]: *** [CMakeFiles/Makefile2:285: CMakeFiles/greatfet_usb-flash.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:292: CMakeFiles/greatfet_usb-flash.dir/rule] Error 2
make: *** [Makefile:222: greatfet_usb-flash] Error 2

Putting this out there to save someone some time in-case they have the same issue as me and the search engine finds this.

@straithe straithe added the bug label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants