[Errno 13] Permission denied” mean that Python don’t have permissions/rights to access file, see:
FYI, there is also more tips from testers here → https://github.com/JelmerT/cc2538-bsl/pull/114
For example, try the ttyUSB USB port (example
-p /dev/ttyUSB0) instead of device ID path you used.
python cc2538-bsl.py -evw -p /dev/ttyUSB0 --bootloader-sonoff-usb CC1352P2_CC2652P_launchpad_coordinator_20211217.hex
Might as well need to use
./ for it to use
c2538-bsl.py and firmware in directory are in if file is there.
python ./cc2538-bsl.py -evw -p /dev/ttyUSB0 --bootloader-sonoff-usb ./CC1352P2_CC2652P_launchpad_coordinator_20211217.hex
Also be sure to download cc2538-bsl master from JelmerT’s repository on GitHub or via PyPI via pip:
You have to get latest master from GitHub since there is no release package with the sonoff fix yet (so cc2538 2.1.0 release package and PyPI/pip https://pypi.org/project/cc2538/ does not have that fix and not be able to use the new
--bootloader-sonoff-usb parameter option for
Once inside folder (either cloned from master or downloaded and unpacked the downloaded file) run:
python setup.py install
setup.py from unpacked directory of cc2538-bsl master branch downloaded from GitHub should install/upgrade needed dependencies however might want to
pip install/upgrade command(s) to verify:
pip3 install --upgrade pip setuptools wheel pyserial intelhex python-magic
If not running the Home Assistant Operating System then maybe first need to install
pip as root or? Ex:
sudo apt update
sudo apt-get install python3-pip
setup.py inside unpacked directory of cc2538-bsl master branch downloaded from GitHub?
sudo python setup.py install
sudo pip3 install --upgrade pip setuptools wheel pyserial intelhex python-magic
Disclaimer: Only from google search as I did not actually test commands myself now in any Linux distro.