replace mergehex with python-intelhex

This commit is contained in:
hathach
2020-05-12 14:53:13 +07:00
parent c41dd59b5f
commit d50796ff4c
2 changed files with 14 additions and 7 deletions
+4 -4
View File
@@ -23,10 +23,10 @@ jobs:
- name: Install Toolchains
run: |
pip3 install adafruit-nrfutil uritemplate requests
wget https://www.nordicsemi.com/api/sitecore/Products/DownloadPlatform --post-data=fileid=8F19D314130548209E75EFFADD9348DB -O cli-tools.tar
tar -xv -f cli-tools.tar
echo "::add-path::$GITHUB_WORKSPACE/mergehex"
pip3 install adafruit-nrfutil uritemplate requests intelhex
#wget https://www.nordicsemi.com/api/sitecore/Products/DownloadPlatform --post-data=fileid=8F19D314130548209E75EFFADD9348DB -O cli-tools.tar
#tar -xv -f cli-tools.tar
#echo "::add-path::$GITHUB_WORKSPACE/mergehex"
npm install --global xpm
xpm install --global @xpack-dev-tools/arm-none-eabi-gcc@latest
echo "::add-path::`echo $HOME/opt/xPacks/@xpack-dev-tools/arm-none-eabi-gcc/*/.content/bin`"
+10 -3
View File
@@ -152,10 +152,17 @@ the variable `CROSS_COMPILE` as below:
$ make CROSS_COMPILE=/opt/gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi- BOARD=feather_nrf52832 all
```
#### 2. `mergehex: No such file or directory`
#### 2. `ModuleNotFoundError: No module named 'intelhex'`
Install python-intelhex with
```
pip install intelhex
```
Make sure that `mergehex` is available from the command-line. This binary is
part of Nordic's nRF5x Command Line Tools.
#### 3. `make: nrfjprog: No such file or directory`