PlatformIO Community

Remote upload error Adafruit NRF52832

Hi! My remote works fine with other stuff, just not with one of the adafruit chips. Has anyone got experience with this error?

PIO Core CLI is installed on RPI4 and also te target is connected to the RPI4.

[rasp4] Uploading .pio/build/adafruit_feather_nrf52832/firmware.hex
[rasp4] Traceback (most recent call last):
[rasp4]   File "/home/pi/.local/bin/adafruit-nrfutil", line 8, in <module>
    sys.exit(cli())
  File "/usr/lib/python3/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/pi/.local/lib/python3.7/site-packages/nordicsemi/__main__.py", line 288, in serial
    dfu = Dfu(package, dfu_transport=serial_backend)
  File "/home/pi/.local/lib/python3.7/site-packages/nordicsemi/dfu/dfu.py", line 66, in __init__
    self.manifest = Package.unpack_package(self.zip_file_path, self.unpacked_zip_path)
  File "/home/pi/.local/lib/python3.7/site-packages/nordicsemi/dfu/package.py", line 361, in unpack_package
    with ZipFile(package_path, 'r') as pkg:
  File "/usr/lib/python3.7/zipfile.py", line 1222, in __init__
    self._RealGetContents()
  File "/usr/lib/python3.7/zipfile.py", line 1289, in _RealGetContents
    raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file
*** [upload] Error 1
[rasp4] ========================== [FAILED] Took 5.39 seconds ==========================
The terminal process "platformio 'remote', 'run', '--target', 'upload'" terminat
``

Well if it attempts to interprete an Intel HEX file as a ZIP file, that’s problem. Bugs in the development platform to https://github.com/platformio/platform-nordicnrf52/issues, not the community forums.