@nordicsemiconductor/pc-nrfconnect-shared 223.0.0 → 225.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Changelog.md +71 -55
- package/ipc/device.ts +1 -0
- package/ipc/launcherConfig.ts +0 -2
- package/nrfutil/device/logLibVersions.ts +5 -5
- package/nrfutil/sandbox.ts +1 -1
- package/nrfutil/version/jlinkVersion.test.ts +13 -13
- package/nrfutil/version/jlinkVersion.ts +5 -5
- package/package.json +2 -2
- package/release_notes.md +2 -4
- package/scripts/nordic-publish.js +1 -1
- package/src/Device/deviceInfo/deviceInfo.ts +11 -0
- package/src/Device/deviceLister.ts +1 -1
- package/src/FactoryReset/FactoryResetButton.tsx +3 -1
- package/src/utils/systemReport.ts +1 -1
- package/typings/generated/ipc/device.d.ts +1 -1
- package/typings/generated/ipc/device.d.ts.map +1 -1
- package/typings/generated/ipc/launcherConfig.d.ts +0 -2
- package/typings/generated/ipc/launcherConfig.d.ts.map +1 -1
- package/typings/generated/ipc/schema/packageJson.d.ts +9 -9
- package/typings/generated/nrfutil/version/jlinkVersion.d.ts +4 -4
- package/typings/generated/src/Device/deviceInfo/deviceInfo.d.ts.map +1 -1
- package/typings/generated/src/FactoryReset/FactoryResetButton.d.ts.map +1 -1
- package/typings/generated/src/utils/packageJson.d.ts +2 -2
package/Changelog.md
CHANGED
|
@@ -7,6 +7,22 @@ This project does _not_ adhere to
|
|
|
7
7
|
[Semantic Versioning](https://semver.org/spec/v2.0.0.html) but contrary to it
|
|
8
8
|
every new version is a new major version.
|
|
9
9
|
|
|
10
|
+
## 225.0.0 - 2025-09-01
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Added `nRF9151 SMA DK` to known devices.
|
|
15
|
+
|
|
16
|
+
## 224.0.0 - 2025-08-27
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- Apps did not reload after restoring the default settings.
|
|
21
|
+
|
|
22
|
+
### Removed
|
|
23
|
+
|
|
24
|
+
- Removed the `isSkipUpdate*` properties from the launcher config.
|
|
25
|
+
|
|
10
26
|
## 223.0.0 - 2025-07-28
|
|
11
27
|
|
|
12
28
|
### Changed
|
|
@@ -109,7 +125,7 @@ every new version is a new major version.
|
|
|
109
125
|
|
|
110
126
|
### Added
|
|
111
127
|
|
|
112
|
-
- Specify what core version of
|
|
128
|
+
- Specify what core version of nRF Util an app depends on.
|
|
113
129
|
|
|
114
130
|
### Removed
|
|
115
131
|
|
|
@@ -122,7 +138,7 @@ every new version is a new major version.
|
|
|
122
138
|
### Steps to upgrade when using this package
|
|
123
139
|
|
|
124
140
|
- In apps in `package.json` set the field `nrfConnectForDesktop.nrfutilCore`
|
|
125
|
-
to the core version of
|
|
141
|
+
to the core version of nRF Util that the nRF Util commands will use.
|
|
126
142
|
- Replace usage of `prepareSandbox` with `NrfutilSandbox.create`
|
|
127
143
|
- Update calls of `xRead`.
|
|
128
144
|
|
|
@@ -141,18 +157,18 @@ every new version is a new major version.
|
|
|
141
157
|
- Scrollbars no longer appear in the device list for a second when
|
|
142
158
|
disconnecting a device.
|
|
143
159
|
- `Dropdown` active label now handles overflow.
|
|
144
|
-
-
|
|
160
|
+
- nRF Util device batch will not run if no subcommand has been added to the
|
|
145
161
|
batch.
|
|
146
162
|
|
|
147
163
|
### Steps to upgrade when using this package
|
|
148
164
|
|
|
149
|
-
- Minimum version of nrfutil
|
|
165
|
+
- Minimum version of `nrfutil device` is 2.7.16.
|
|
150
166
|
|
|
151
167
|
## 209.0.0 - 2025-04-30
|
|
152
168
|
|
|
153
169
|
### Changed
|
|
154
170
|
|
|
155
|
-
-
|
|
171
|
+
- `nrfutil device` use of `fw-read` is replaced with `x-read`.
|
|
156
172
|
|
|
157
173
|
### Steps to upgrade when using this package
|
|
158
174
|
|
|
@@ -209,11 +225,11 @@ every new version is a new major version.
|
|
|
209
225
|
|
|
210
226
|
### Added
|
|
211
227
|
|
|
212
|
-
- `nrf-probe` verison check for nrfutil device
|
|
228
|
+
- `nrf-probe` verison check for `nrfutil device`.
|
|
213
229
|
|
|
214
230
|
### Removed
|
|
215
231
|
|
|
216
|
-
- `nrfjprog` verison check for nrfutil device
|
|
232
|
+
- `nrfjprog` verison check for `nrfutil device`.
|
|
217
233
|
|
|
218
234
|
### Changed
|
|
219
235
|
|
|
@@ -306,7 +322,7 @@ Overrides v202 as it was released a prerelease.
|
|
|
306
322
|
|
|
307
323
|
### Fixed
|
|
308
324
|
|
|
309
|
-
-
|
|
325
|
+
- nRF Util: mcu-state-set caused an error if no target was specified.
|
|
310
326
|
|
|
311
327
|
## 193.0.0 - 2024-12-04
|
|
312
328
|
|
|
@@ -329,9 +345,9 @@ Overrides v202 as it was released a prerelease.
|
|
|
329
345
|
|
|
330
346
|
### Changed
|
|
331
347
|
|
|
332
|
-
-
|
|
333
|
-
-
|
|
334
|
-
reflecting the behaviour since `nrfutil
|
|
348
|
+
- nRF Util: The core gets upgraded before installing a command.
|
|
349
|
+
- nRF Util: The `version` properties of dependencies are now optional,
|
|
350
|
+
reflecting the behaviour since `nrfutil device` v2.7.0.
|
|
335
351
|
- Warning for J-Link versions: Only inform (not warn) if the installed version
|
|
336
352
|
is newer than the tested version. Updated the text for all cases.
|
|
337
353
|
|
|
@@ -351,11 +367,11 @@ Overrides v202 as it was released a prerelease.
|
|
|
351
367
|
|
|
352
368
|
- Dropdown helper functions which are used in `pc-nrfconnect-serial-terminal`
|
|
353
369
|
and `pc-nrfconnect-programmer`.
|
|
354
|
-
- Add
|
|
370
|
+
- Add nRF Util `mcu-state-options` for multi target support.
|
|
355
371
|
|
|
356
372
|
### Steps to upgrade when using this package
|
|
357
373
|
|
|
358
|
-
- Minimum support version of nrfutil device is now 2.5.0
|
|
374
|
+
- Minimum support version of `nrfutil device` is now 2.5.0.
|
|
359
375
|
|
|
360
376
|
## 188.0.0 - 2024-10-15
|
|
361
377
|
|
|
@@ -397,7 +413,7 @@ Overrides v202 as it was released a prerelease.
|
|
|
397
413
|
|
|
398
414
|
### Fixed
|
|
399
415
|
|
|
400
|
-
- Stop
|
|
416
|
+
- Stop nRF Util sandbox from starting to run an aborted command.
|
|
401
417
|
- Device setup event call order when autoreconnecting at the same time as
|
|
402
418
|
selecting.
|
|
403
419
|
|
|
@@ -438,13 +454,13 @@ Overrides v202 as it was released a prerelease.
|
|
|
438
454
|
|
|
439
455
|
### Changed
|
|
440
456
|
|
|
441
|
-
-
|
|
457
|
+
- nRF Util sandbox deletes any residual sandbox folder before install.
|
|
442
458
|
|
|
443
459
|
## 180.0.0 - 2024-07-01
|
|
444
460
|
|
|
445
461
|
### Changed
|
|
446
462
|
|
|
447
|
-
-
|
|
463
|
+
- nRF Util sandbox folder is deleted if installation fails.
|
|
448
464
|
|
|
449
465
|
## 179.0.0 - 2024-06-20
|
|
450
466
|
|
|
@@ -478,7 +494,7 @@ Overrides v202 as it was released a prerelease.
|
|
|
478
494
|
|
|
479
495
|
### Fixed
|
|
480
496
|
|
|
481
|
-
-
|
|
497
|
+
- nRF Util Sandbox s installed on Apple Silicon now uses the arm64 folder and
|
|
482
498
|
not the intel one.
|
|
483
499
|
|
|
484
500
|
## 175.0.0 - 2024-05-02
|
|
@@ -514,7 +530,7 @@ Overrides v202 as it was released a prerelease.
|
|
|
514
530
|
|
|
515
531
|
### Added
|
|
516
532
|
|
|
517
|
-
- Support for splitting M1 and x64
|
|
533
|
+
- Support for splitting M1 and x64 nRF Util sandboxes.
|
|
518
534
|
|
|
519
535
|
## 172.0.0 - 2024-04-15
|
|
520
536
|
|
|
@@ -602,7 +618,7 @@ Overrides v202 as it was released a prerelease.
|
|
|
602
618
|
|
|
603
619
|
### Added
|
|
604
620
|
|
|
605
|
-
- Auto update
|
|
621
|
+
- Auto update nRF Util core for sandboxes
|
|
606
622
|
|
|
607
623
|
## 164.0.0 - 2024-03-05
|
|
608
624
|
|
|
@@ -693,11 +709,11 @@ Overrides v202 as it was released a prerelease.
|
|
|
693
709
|
### Changed
|
|
694
710
|
|
|
695
711
|
- `getReadbackProtection` now returns protection type `ProtectionStatus` from
|
|
696
|
-
nrfutil device common.ts
|
|
712
|
+
`nrfutil device` common.ts
|
|
697
713
|
|
|
698
714
|
### Steps to upgrade when using this package
|
|
699
715
|
|
|
700
|
-
- Minimum support version of nrfutil device is now 2.1.1
|
|
716
|
+
- Minimum support version of `nrfutil device` is now 2.1.1.
|
|
701
717
|
|
|
702
718
|
## 157.0.0 - 2024-02-06
|
|
703
719
|
|
|
@@ -778,9 +794,9 @@ Overrides v202 as it was released a prerelease.
|
|
|
778
794
|
### Fixed
|
|
779
795
|
|
|
780
796
|
- `Overlay` tooltips weren't centered due to incorrect sizing styles.
|
|
781
|
-
- When spawning the
|
|
797
|
+
- When spawning the nRF Util process fails in certain ways, an uncaught
|
|
782
798
|
exception in the main process got thrown. The “certain ways” make this a bit
|
|
783
|
-
hard to reproduce: On macOS this happened, when the
|
|
799
|
+
hard to reproduce: On macOS this happened, when the nRF Util executable did
|
|
784
800
|
not have the executable file mode. Usually this should not happen, because
|
|
785
801
|
we set that mode ourselves correctly.
|
|
786
802
|
|
|
@@ -804,10 +820,10 @@ Overrides v202 as it was released a prerelease.
|
|
|
804
820
|
### Added
|
|
805
821
|
|
|
806
822
|
- `getModule` export from `@nordicsemiconductor/pc-nrfconnect-shared/nrfutil`
|
|
807
|
-
to retrieve/initialise specific
|
|
823
|
+
to retrieve/initialise specific nRF Util module sandbox.
|
|
808
824
|
- `setVerboseLogging`, `setLogLevel` and `getAllModuleVersions` exports from
|
|
809
825
|
`@nordicsemiconductor/pc-nrfconnect-shared/nrfutil` to target all
|
|
810
|
-
initialised
|
|
826
|
+
initialised nRF Util modules.
|
|
811
827
|
|
|
812
828
|
### Changed
|
|
813
829
|
|
|
@@ -816,14 +832,14 @@ Overrides v202 as it was released a prerelease.
|
|
|
816
832
|
(previously this was only used to determine whether an app should have
|
|
817
833
|
verbose logging enabled on startup). This allows code which does/should not
|
|
818
834
|
have access to the redux store to still retrieve the verbose logging state.
|
|
819
|
-
- `Create system report` now logs the version of all initialised
|
|
835
|
+
- `Create system report` now logs the version of all initialised nRF Util
|
|
820
836
|
modules.
|
|
821
|
-
- nrfutil device exports have now been moved to
|
|
837
|
+
- `nrfutil device` exports have now been moved to
|
|
822
838
|
`@nordicsemiconductor/pc-nrfconnect-shared/nrfutil/device`.
|
|
823
839
|
|
|
824
840
|
### Steps to upgrade
|
|
825
841
|
|
|
826
|
-
- Replace all calls of nrfutil device imported from
|
|
842
|
+
- Replace all calls of `nrfutil device` imported from
|
|
827
843
|
`@nordicsemiconductor/pc-nrfconnect-shared/nrfutil` to
|
|
828
844
|
`@nordicsemiconductor/pc-nrfconnect-shared/nrfutil/device`.
|
|
829
845
|
|
|
@@ -903,7 +919,7 @@ Overrides v202 as it was released a prerelease.
|
|
|
903
919
|
### Added
|
|
904
920
|
|
|
905
921
|
- Added command wrappers to interact with the Board Controller using
|
|
906
|
-
`nrfutil
|
|
922
|
+
`nrfutil device`. `boardController()` to write board controller config to
|
|
907
923
|
the DK. `getBoardControllerVersion()` to get the version information from
|
|
908
924
|
the Board Controller. (like firmware version and board hardware revision)
|
|
909
925
|
|
|
@@ -915,7 +931,7 @@ Overrides v202 as it was released a prerelease.
|
|
|
915
931
|
|
|
916
932
|
### Fixed
|
|
917
933
|
|
|
918
|
-
-
|
|
934
|
+
- nRF Util sandbox `execCommand` did not escape executable path leading to
|
|
919
935
|
failure when path has whitespace
|
|
920
936
|
|
|
921
937
|
## 137.0.0 - 2023-12-04
|
|
@@ -939,7 +955,7 @@ Overrides v202 as it was released a prerelease.
|
|
|
939
955
|
dependency of a useEffect
|
|
940
956
|
- `useStopWatch` start optional time param no longer default to the last time
|
|
941
957
|
when paused but 0.
|
|
942
|
-
- `nrfutil device
|
|
958
|
+
- `nrfutil device device-info` returns undefined if reading info throws
|
|
943
959
|
|
|
944
960
|
### Steps to upgrade when using this package
|
|
945
961
|
|
|
@@ -980,7 +996,7 @@ Overrides v202 as it was released a prerelease.
|
|
|
980
996
|
|
|
981
997
|
### Changed
|
|
982
998
|
|
|
983
|
-
-
|
|
999
|
+
- nRF Util `sandbox` default logging level to 'off' in production and 'error'
|
|
984
1000
|
in development environments
|
|
985
1001
|
|
|
986
1002
|
## 132.0.0 - 2023-11-14
|
|
@@ -1012,7 +1028,7 @@ Overrides v202 as it was released a prerelease.
|
|
|
1012
1028
|
### Fixed
|
|
1013
1029
|
|
|
1014
1030
|
- Ensure that all enumerated devices are always processed in order to avoid:
|
|
1015
|
-
- calling nrfutil device-info multiple times for the same device
|
|
1031
|
+
- calling `nrfutil device-info` multiple times for the same device
|
|
1016
1032
|
- only calling onSuccess once when waiting for device when rebooting
|
|
1017
1033
|
- `nrfutil device` now calls `device-info` before notifying the app with an
|
|
1018
1034
|
onSelectedDevice. This is to ensure the operations to the device are
|
|
@@ -1022,17 +1038,17 @@ Overrides v202 as it was released a prerelease.
|
|
|
1022
1038
|
|
|
1023
1039
|
### Added
|
|
1024
1040
|
|
|
1025
|
-
-
|
|
1026
|
-
|
|
1027
|
-
-
|
|
1041
|
+
- nRF Util sandbox now allows caller to pass optional lambda to manipulate the
|
|
1042
|
+
env values
|
|
1043
|
+
- nRF Util provides an alternative to spawn and just exec
|
|
1028
1044
|
- `nrfutil device` auto logs version information when it is initialed for the
|
|
1029
1045
|
first time.
|
|
1030
1046
|
|
|
1031
1047
|
### Changed
|
|
1032
1048
|
|
|
1033
|
-
- `ErrorBoundary` only collect device lib info if these app adds
|
|
1034
|
-
device as a dependency in `package.json`
|
|
1035
|
-
- `App` no longer logs nrfutil device version.
|
|
1049
|
+
- `ErrorBoundary` only collect device lib info if these app adds
|
|
1050
|
+
`nrfutil device` as a dependency in `package.json`
|
|
1051
|
+
- `App` no longer logs `nrfutil device` version.
|
|
1036
1052
|
|
|
1037
1053
|
## 128.0.0 - 2023-11-08
|
|
1038
1054
|
|
|
@@ -1206,7 +1222,7 @@ render(<App panes={[]} />);
|
|
|
1206
1222
|
|
|
1207
1223
|
### Fixed
|
|
1208
1224
|
|
|
1209
|
-
-
|
|
1225
|
+
- nRF Util's abort log messages is now more descriptive
|
|
1210
1226
|
- `nrfutil device batch` could previously call the `onException` when task was
|
|
1211
1227
|
complete.
|
|
1212
1228
|
|
|
@@ -1278,7 +1294,7 @@ declare module '!!@svgr!*.svg' {
|
|
|
1278
1294
|
|
|
1279
1295
|
### Changed
|
|
1280
1296
|
|
|
1281
|
-
- Improve
|
|
1297
|
+
- Improve nRF Util sandbox error messages.
|
|
1282
1298
|
|
|
1283
1299
|
### Added
|
|
1284
1300
|
|
|
@@ -1307,7 +1323,7 @@ declare module '!!@svgr!*.svg' {
|
|
|
1307
1323
|
|
|
1308
1324
|
### Added
|
|
1309
1325
|
|
|
1310
|
-
- Log warning for any
|
|
1326
|
+
- Log warning for any device that was not enumerated with `nrfutil device`.
|
|
1311
1327
|
|
|
1312
1328
|
### Fixed
|
|
1313
1329
|
|
|
@@ -1317,8 +1333,8 @@ declare module '!!@svgr!*.svg' {
|
|
|
1317
1333
|
|
|
1318
1334
|
### Changed
|
|
1319
1335
|
|
|
1320
|
-
- `
|
|
1321
|
-
nrfutil device 1.4.2
|
|
1336
|
+
- `nrfutil device` batch now generate batch JSON using the CLI. Requires
|
|
1337
|
+
`nrfutil device` 1.4.2
|
|
1322
1338
|
|
|
1323
1339
|
### Fixed
|
|
1324
1340
|
|
|
@@ -1361,25 +1377,25 @@ declare module '!!@svgr!*.svg' {
|
|
|
1361
1377
|
|
|
1362
1378
|
### Fixed
|
|
1363
1379
|
|
|
1364
|
-
- Unable to use nrfutil device in production due to issue with
|
|
1365
|
-
logging when set to off.
|
|
1380
|
+
- Unable to use `nrfutil device` in production due to issue with
|
|
1381
|
+
`nrfutil device` logging when set to off.
|
|
1366
1382
|
|
|
1367
1383
|
## 99.0.0 - 2023-09-04
|
|
1368
1384
|
|
|
1369
1385
|
### Added
|
|
1370
1386
|
|
|
1371
|
-
- nrfutil device list now supports optional timeout parameter
|
|
1387
|
+
- `nrfutil device list` now supports optional timeout parameter
|
|
1372
1388
|
|
|
1373
1389
|
### Changed
|
|
1374
1390
|
|
|
1375
|
-
-
|
|
1391
|
+
- `nrfutil device list` now default to 3000ms timeout when enumerating (was
|
|
1376
1392
|
1000ms)
|
|
1377
|
-
-
|
|
1378
|
-
-
|
|
1393
|
+
- `nrfutil device` now support `nrfutil device` 1.4.x only
|
|
1394
|
+
- `nrfutil device` will not log in production unless verbose logging is on
|
|
1379
1395
|
|
|
1380
1396
|
### Fixed
|
|
1381
1397
|
|
|
1382
|
-
-
|
|
1398
|
+
- `nrfutil device` std error message string
|
|
1383
1399
|
- When SDFU MCU State change fails, wait for device is now canceled
|
|
1384
1400
|
|
|
1385
1401
|
### Removed
|
|
@@ -1454,19 +1470,19 @@ declare module '!!@svgr!*.svg' {
|
|
|
1454
1470
|
|
|
1455
1471
|
### Added
|
|
1456
1472
|
|
|
1457
|
-
-
|
|
1473
|
+
- nRF Util progress now has a new property `totalProgressPercentage` that
|
|
1458
1474
|
computes the progress across all steps
|
|
1459
1475
|
|
|
1460
1476
|
### Changed
|
|
1461
1477
|
|
|
1462
|
-
-
|
|
1478
|
+
- nRF Util progress properties `step` and `amountOfSteps` are now always
|
|
1463
1479
|
present
|
|
1464
|
-
-
|
|
1480
|
+
- nRF Util progress properties `progressPercentage` has been renamed to
|
|
1465
1481
|
`stepProgressPercentage`
|
|
1466
1482
|
|
|
1467
1483
|
### Steps to upgrade
|
|
1468
1484
|
|
|
1469
|
-
- Any usage of
|
|
1485
|
+
- Any usage of nRF Util property `progressPercentage` need to be renamed to
|
|
1470
1486
|
`stepProgressPercentage`
|
|
1471
1487
|
|
|
1472
1488
|
## 92.0.0 - 2023-08-24
|
package/ipc/device.ts
CHANGED
package/ipc/launcherConfig.ts
CHANGED
|
@@ -35,29 +35,29 @@ export default (moduleVersion: ModuleVersion) => {
|
|
|
35
35
|
try {
|
|
36
36
|
const dependencies = moduleVersion.dependencies;
|
|
37
37
|
|
|
38
|
-
log('nrfutil
|
|
38
|
+
log('nrfutil device', moduleVersion.version);
|
|
39
39
|
log('nrf-device-lib', findDependency('nrfdl', dependencies));
|
|
40
40
|
log('nrf-probe', findDependency('nrf-probe', dependencies));
|
|
41
|
-
log('
|
|
41
|
+
log('SEGGER J-Link', findDependency('JlinkARM', dependencies));
|
|
42
42
|
|
|
43
43
|
const jlinkCompatibility = getJlinkCompatibility(moduleVersion);
|
|
44
44
|
|
|
45
45
|
switch (jlinkCompatibility.kind) {
|
|
46
|
-
case 'No J-Link installed':
|
|
46
|
+
case 'No SEGGER J-Link installed':
|
|
47
47
|
logger?.warn(
|
|
48
48
|
`SEGGER J-Link is not installed. ` +
|
|
49
49
|
`Install at least version ${jlinkCompatibility.requiredJlink} ` +
|
|
50
50
|
`from https://www.segger.com/downloads/jlink`
|
|
51
51
|
);
|
|
52
52
|
break;
|
|
53
|
-
case 'Outdated J-Link':
|
|
53
|
+
case 'Outdated SEGGER J-Link':
|
|
54
54
|
logger?.warn(
|
|
55
55
|
`Outdated SEGGER J-Link. Your version of SEGGER J-Link (${jlinkCompatibility.actualJlink}) ` +
|
|
56
56
|
`is older than the one this app was tested with (${jlinkCompatibility.requiredJlink}). ` +
|
|
57
57
|
`Install the newer version from https://www.segger.com/downloads/jlink`
|
|
58
58
|
);
|
|
59
59
|
break;
|
|
60
|
-
case 'Newer J-Link is used':
|
|
60
|
+
case 'Newer SEGGER J-Link is used':
|
|
61
61
|
logger?.info(
|
|
62
62
|
`Your version of SEGGER J-Link (${jlinkCompatibility.actualJlink}) ` +
|
|
63
63
|
`is newer than the one this app was tested with (${jlinkCompatibility.requiredJlink}). ` +
|
package/nrfutil/sandbox.ts
CHANGED
|
@@ -190,7 +190,7 @@ export class NrfutilSandbox {
|
|
|
190
190
|
this.coreVersion ?? CORE_VERSION_FOR_LEGACY_APPS;
|
|
191
191
|
if (currentCoreVersion.version === requestedCoreVersion) {
|
|
192
192
|
getNrfutilLogger()?.debug(
|
|
193
|
-
`Requested
|
|
193
|
+
`Requested nRF Util's core version ${requestedCoreVersion} is already installed.`
|
|
194
194
|
);
|
|
195
195
|
|
|
196
196
|
return;
|
|
@@ -206,7 +206,7 @@ describe('getJlinkCompatibility', () => {
|
|
|
206
206
|
...dependencies: Dependency[]
|
|
207
207
|
): ModuleVersion => ({
|
|
208
208
|
classification: 'nrf-external',
|
|
209
|
-
name: 'nrfutil
|
|
209
|
+
name: 'nrfutil device',
|
|
210
210
|
version: '2.5.0',
|
|
211
211
|
build_timestamp: '',
|
|
212
212
|
commit_date: '',
|
|
@@ -227,15 +227,15 @@ describe('getJlinkCompatibility', () => {
|
|
|
227
227
|
host: '',
|
|
228
228
|
});
|
|
229
229
|
|
|
230
|
-
it(`Reports no installed J-Link for for module versions reported by nrfutil
|
|
230
|
+
it(`Reports no installed SEGGER J-Link for for module versions reported by nrfutil device before v2.7`, () => {
|
|
231
231
|
expect(getJlinkCompatibility(createModuleVersion())).toEqual({
|
|
232
|
-
kind: 'No J-Link installed',
|
|
232
|
+
kind: 'No SEGGER J-Link installed',
|
|
233
233
|
requiredJlink: '7.94e',
|
|
234
234
|
actualJlink: 'none',
|
|
235
235
|
});
|
|
236
236
|
});
|
|
237
237
|
|
|
238
|
-
it(`Reports no installed J-Link for for module versions reported by nrfutil
|
|
238
|
+
it(`Reports no installed SEGGER J-Link for for module versions reported by nrfutil device since v2.7`, () => {
|
|
239
239
|
expect(
|
|
240
240
|
getJlinkCompatibility(
|
|
241
241
|
createModuleVersion({
|
|
@@ -247,13 +247,13 @@ describe('getJlinkCompatibility', () => {
|
|
|
247
247
|
})
|
|
248
248
|
)
|
|
249
249
|
).toEqual({
|
|
250
|
-
kind: 'No J-Link installed',
|
|
250
|
+
kind: 'No SEGGER J-Link installed',
|
|
251
251
|
requiredJlink: '8.10f',
|
|
252
252
|
actualJlink: 'none',
|
|
253
253
|
});
|
|
254
254
|
});
|
|
255
255
|
|
|
256
|
-
it(`Reports an outdated J-Link version`, () => {
|
|
256
|
+
it(`Reports an outdated SEGGER J-Link version`, () => {
|
|
257
257
|
expect(
|
|
258
258
|
getJlinkCompatibility(
|
|
259
259
|
createModuleVersion({
|
|
@@ -267,13 +267,13 @@ describe('getJlinkCompatibility', () => {
|
|
|
267
267
|
})
|
|
268
268
|
)
|
|
269
269
|
).toEqual({
|
|
270
|
-
kind: 'Outdated J-Link',
|
|
270
|
+
kind: 'Outdated SEGGER J-Link',
|
|
271
271
|
requiredJlink: '7.94i',
|
|
272
272
|
actualJlink: '7.94e',
|
|
273
273
|
});
|
|
274
274
|
});
|
|
275
275
|
|
|
276
|
-
it(`Reports a newer J-Link version is used`, () => {
|
|
276
|
+
it(`Reports a newer SEGGER J-Link version is used`, () => {
|
|
277
277
|
expect(
|
|
278
278
|
getJlinkCompatibility(
|
|
279
279
|
createModuleVersion({
|
|
@@ -287,13 +287,13 @@ describe('getJlinkCompatibility', () => {
|
|
|
287
287
|
})
|
|
288
288
|
)
|
|
289
289
|
).toEqual({
|
|
290
|
-
kind: 'Newer J-Link is used',
|
|
290
|
+
kind: 'Newer SEGGER J-Link is used',
|
|
291
291
|
requiredJlink: '7.94i',
|
|
292
292
|
actualJlink: '8.10f',
|
|
293
293
|
});
|
|
294
294
|
});
|
|
295
295
|
|
|
296
|
-
it(`Reports the tested J-Link version is used`, () => {
|
|
296
|
+
it(`Reports the tested SEGGER J-Link version is used`, () => {
|
|
297
297
|
expect(
|
|
298
298
|
getJlinkCompatibility(
|
|
299
299
|
createModuleVersion({
|
|
@@ -306,10 +306,10 @@ describe('getJlinkCompatibility', () => {
|
|
|
306
306
|
},
|
|
307
307
|
})
|
|
308
308
|
)
|
|
309
|
-
).toEqual({ kind: 'Tested J-Link is used' });
|
|
309
|
+
).toEqual({ kind: 'Tested SEGGER J-Link is used' });
|
|
310
310
|
});
|
|
311
311
|
|
|
312
|
-
it(`Reports the tested J-Link version is used by specifying no expected version`, () => {
|
|
312
|
+
it(`Reports the tested SEGGER J-Link version is used by specifying no expected version`, () => {
|
|
313
313
|
expect(
|
|
314
314
|
getJlinkCompatibility(
|
|
315
315
|
createModuleVersion({
|
|
@@ -318,6 +318,6 @@ describe('getJlinkCompatibility', () => {
|
|
|
318
318
|
versionFormat: 'string',
|
|
319
319
|
})
|
|
320
320
|
)
|
|
321
|
-
).toEqual({ kind: 'Tested J-Link is used' });
|
|
321
|
+
).toEqual({ kind: 'Tested SEGGER J-Link is used' });
|
|
322
322
|
});
|
|
323
323
|
});
|
|
@@ -34,7 +34,7 @@ export const hasExpectedVersionFormat = (
|
|
|
34
34
|
|
|
35
35
|
if (!result && logFailure) {
|
|
36
36
|
console.error(
|
|
37
|
-
`The J-Link version was not reported in the expected format. ` +
|
|
37
|
+
`The SEGGER J-Link version was not reported in the expected format. ` +
|
|
38
38
|
`Format: ${dependency.versionFormat}, ` +
|
|
39
39
|
`version: ${JSON.stringify(dependency)}, `
|
|
40
40
|
);
|
|
@@ -99,7 +99,7 @@ export const getJlinkCompatibility = (moduleVersion: ModuleVersion) => {
|
|
|
99
99
|
? strippedVersionName(jlinkVersionDependency.expectedVersion)
|
|
100
100
|
: nrfutilDeviceToJLink(moduleVersion.version);
|
|
101
101
|
return {
|
|
102
|
-
kind: 'No J-Link installed',
|
|
102
|
+
kind: 'No SEGGER J-Link installed',
|
|
103
103
|
requiredJlink: requiredVersion,
|
|
104
104
|
actualJlink: 'none',
|
|
105
105
|
} as const;
|
|
@@ -115,7 +115,7 @@ export const getJlinkCompatibility = (moduleVersion: ModuleVersion) => {
|
|
|
115
115
|
const actualJlink = strippedVersionName(jlinkVersionDependency);
|
|
116
116
|
|
|
117
117
|
return {
|
|
118
|
-
kind: 'Outdated J-Link',
|
|
118
|
+
kind: 'Outdated SEGGER J-Link',
|
|
119
119
|
requiredJlink,
|
|
120
120
|
actualJlink,
|
|
121
121
|
} as const;
|
|
@@ -127,7 +127,7 @@ export const getJlinkCompatibility = (moduleVersion: ModuleVersion) => {
|
|
|
127
127
|
jlinkVersionDependency.expectedVersion.version
|
|
128
128
|
) {
|
|
129
129
|
return {
|
|
130
|
-
kind: 'Tested J-Link is used',
|
|
130
|
+
kind: 'Tested SEGGER J-Link is used',
|
|
131
131
|
} as const;
|
|
132
132
|
}
|
|
133
133
|
|
|
@@ -137,7 +137,7 @@ export const getJlinkCompatibility = (moduleVersion: ModuleVersion) => {
|
|
|
137
137
|
const actualJlink = strippedVersionName(jlinkVersionDependency);
|
|
138
138
|
|
|
139
139
|
return {
|
|
140
|
-
kind: 'Newer J-Link is used',
|
|
140
|
+
kind: 'Newer SEGGER J-Link is used',
|
|
141
141
|
requiredJlink,
|
|
142
142
|
actualJlink,
|
|
143
143
|
} as const;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nordicsemiconductor/pc-nrfconnect-shared",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "225.0.0",
|
|
4
4
|
"description": "Shared commodities for developing pc-nrfconnect-* packages",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/NordicSemiconductor/pc-nrfconnect-shared.git"
|
|
8
8
|
},
|
|
9
9
|
"author": "Nordic Semiconductor ASA",
|
|
10
|
-
"license": "
|
|
10
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
11
11
|
"bin": {
|
|
12
12
|
"check-for-typescript": "scripts/check-for-typescript.ts",
|
|
13
13
|
"check-app-properties": "scripts/check-app-properties.ts",
|
package/release_notes.md
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
###
|
|
1
|
+
### Added
|
|
2
2
|
|
|
3
|
-
-
|
|
4
|
-
exports were removed, because they were only needed in the launcher and
|
|
5
|
-
having them in shared made changes harder in the launcher.
|
|
3
|
+
- Added `nRF9151 SMA DK` to known devices.
|