Skip to content

Conversation

@dariusarnold
Copy link
Contributor

It appears that NRF has moved the download to a new location. The old URL is now a 404.
Update the build script and README to use the same URL the download website currently provides.

Fixes #2267

It seems like NRF has moved the download to a new location- Update the build script to fetch from the same URL the download website currently provides.
@github-actions
Copy link

github-actions bot commented Mar 13, 2025

Build size and comparison to main:

Section Size Difference
text 373088B 0B
data 948B 0B
bss 22536B 0B

Run in InfiniEmu

@mark9064 mark9064 added documentation Improvements or additions to documentation maintenance Background work labels Mar 13, 2025
@mark9064 mark9064 added this to the 1.16.0 milestone May 16, 2025
@JF002
Copy link
Collaborator

JF002 commented May 21, 2025

@dariusarnold Do you know if those URLs are still hosted by Nordic and if they are "official"? The domain name does not seem to be directly linked to Nordic Semiconductor.

@mark9064
Copy link
Member

mark9064 commented May 21, 2025

It's official, you can find them on the nordic website

See here https://www.nordicsemi.com/Products/Development-software/nRF5-SDK/Download#infotabs

@JF002
Copy link
Collaborator

JF002 commented May 21, 2025

Oh yes, right! I previously clicked on the big "Download files (.zip)" button and did not notice that I could simply click on the name of the package!

@mark9064 mark9064 merged commit 248a6ae into InfiniTimeOrg:main May 21, 2025
7 checks passed
@mark9064 mark9064 mentioned this pull request May 23, 2025
NeroBurner added a commit that referenced this pull request May 24, 2025
The upstream NRF-SDK download url and zip archive filename changed,
which was fixed with #2270

But the archive contents stayed the same, with the "old" folder name.

After #2270 we have basically the same docker-container as before the PR,
but the `GetNrfSdk` function of the `build.sh` script is called again during
firmware build time as the expected foldername for the SDK isn't the same as
the zip filename:

```sh
[ ! -d "$TOOLS_DIR/$NRF_SDK_VER" ] && GetNrfSdk
```

Then during the build the `buils.sh` script tries to execute `GetNrfSdk` again,
which fails as the files already exist resulting in the following error:

```
replace /opt/nRF5_SDK_15.3.0_59ac345/components/802_15_4/api/HAL/hal_atomic.h? [y]es, [n]o, [A]ll, [N]one, [r]ename:  NULL
```

Fix this by reverting the `NRF_SDK_VER` to the folder name in the zip
archive and by some character replacement generate the download URL from
the above (the download is in lower-case without the `_` and `.`
characters).

Furthermore add safeguards to check after the `GetNrfSdk` call if the
expected folder is really created. Then we have an error early during
container image creation if the contents of the zip-archive are
unexpected.
NeroBurner added a commit that referenced this pull request May 27, 2025
The upstream NRF-SDK download url and zip archive filename changed,
which was fixed with #2270

But the archive contents stayed the same, with the "old" folder name.

After #2270 we have basically the same docker-container as before the PR,
but the `GetNrfSdk` function of the `build.sh` script is called again during
firmware build time as the expected foldername for the SDK isn't the same as
the zip filename:

```sh
[ ! -d "$TOOLS_DIR/$NRF_SDK_VER" ] && GetNrfSdk
```

Then during the build the `buils.sh` script tries to execute `GetNrfSdk` again,
which fails as the files already exist resulting in the following error:

```
replace /opt/nRF5_SDK_15.3.0_59ac345/components/802_15_4/api/HAL/hal_atomic.h? [y]es, [n]o, [A]ll, [N]one, [r]ename:  NULL
```

Fix this by reverting the `NRF_SDK_VER` to the folder name in the zip
archive and by some character replacement generate the download URL from
the above (the download is in lower-case without the `_` and `.`
characters).

Furthermore add safeguards to check after the `GetNrfSdk` call if the
expected folder is really created. Then we have an error early during
container image creation if the contents of the zip-archive are
unexpected.
JustScott pushed a commit to JustScott/InfiniTime that referenced this pull request Jul 29, 2025
nRF has moved the download to a new location- Update the build script to fetch from the same URL the download website currently provides.
JustScott pushed a commit to JustScott/InfiniTime that referenced this pull request Jul 29, 2025
)

The upstream NRF-SDK download url and zip archive filename changed,
which was fixed with InfiniTimeOrg#2270

But the archive contents stayed the same, with the "old" folder name.

After InfiniTimeOrg#2270 we have basically the same docker-container as before the PR,
but the `GetNrfSdk` function of the `build.sh` script is called again during
firmware build time as the expected foldername for the SDK isn't the same as
the zip filename:

```sh
[ ! -d "$TOOLS_DIR/$NRF_SDK_VER" ] && GetNrfSdk
```

Then during the build the `buils.sh` script tries to execute `GetNrfSdk` again,
which fails as the files already exist resulting in the following error:

```
replace /opt/nRF5_SDK_15.3.0_59ac345/components/802_15_4/api/HAL/hal_atomic.h? [y]es, [n]o, [A]ll, [N]one, [r]ename:  NULL
```

Fix this by reverting the `NRF_SDK_VER` to the folder name in the zip
archive and by some character replacement generate the download URL from
the above (the download is in lower-case without the `_` and `.`
characters).

Furthermore add safeguards to check after the `GetNrfSdk` call if the
expected folder is really created. Then we have an error early during
container image creation if the contents of the zip-archive are
unexpected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation maintenance Background work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docker build broken because NRF SDK changed download location

3 participants