Skip to content

gnwmanger fails on Linux Mint #65

Description

@aminch

gnwmanager fails with an error on Linux Mint.

Installed from pipx
openocd installed from gnwmanager

Connected with Raspberry Pi Debug Probe

When running gnwmanager info the error below is shown.
The device itself appears to have no change (i.e. the gnwmanager firmware doesn't show on the screen), but after this error, the controls on the device are no longer responsive and it needs to be power cycled to function again.

The exact same device and debug probe works when using gnwmanager on Windows 11.

minch@ASUSLaptop:~/Development$ gnwmanager info
Platform:                    Linux-5.15.0-88-generic-x86_64-with-glibc2.35
Python Version:              3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0]
GnWManager Executable:       /home/minch/.local/bin/gnwmanager
GnWManager Version:          0.3.1
OCD Backend:                 openocd
Traceback (most recent call last):
  File "/home/minch/.local/bin/gnwmanager", line 8, in <module>
    sys.exit(run_app())
  File "/home/minch/.local/pipx/venvs/gnwmanager/lib/python3.10/site-packages/gnwmanager/cli/main.py", line 197, in run_app
    start_gnwmanager()
  File "/home/minch/.local/pipx/venvs/gnwmanager/lib/python3.10/site-packages/gnwmanager/cli/_start_gnwmanager.py", line 31, in start_gnwmanager
    gnw.write_uint32("status", 0)  # To be 100% sure there's nothing residual in RAM.
  File "/home/minch/.local/pipx/venvs/gnwmanager/lib/python3.10/site-packages/gnwmanager/gnw.py", line 117, in write_uint32
    return self.backend.write_uint32(_key_to_address(key), val)
  File "/home/minch/.local/pipx/venvs/gnwmanager/lib/python3.10/site-packages/gnwmanager/ocdbackend/openocd_backend.py", line 181, in write_uint32
    self(f"write_memory 0x{addr:08X} 32 {{ {hex(val)} }}")
  File "/home/minch/.local/pipx/venvs/gnwmanager/lib/python3.10/site-packages/gnwmanager/ocdbackend/openocd_backend.py", line 146, in __call__
    return self._receive_response(decode=decode)
  File "/home/minch/.local/pipx/venvs/gnwmanager/lib/python3.10/site-packages/gnwmanager/ocdbackend/openocd_backend.py", line 161, in _receive_response
    response = _convert_hex_str_to_bytes(response)
  File "/home/minch/.local/pipx/venvs/gnwmanager/lib/python3.10/site-packages/gnwmanager/ocdbackend/openocd_backend.py", line 101, in _convert_hex_str_to_bytes
    return bytes(int(h, 16) for h in hex_str.decode().split())
  File "/home/minch/.local/pipx/venvs/gnwmanager/lib/python3.10/site-packages/gnwmanager/ocdbackend/openocd_backend.py", line 101, in <genexpr>
    return bytes(int(h, 16) for h in hex_str.decode().split())
ValueError: invalid literal for int() with base 16: 'invalid'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions