Skip to content

Commit 01aeb48

Browse files
author
Cruz Monrreal
authored
Merge pull request #9767 from TacoGrandeTX/fix_nrf_swo_led2_clash
Remove ITM from NRF52_DK and DELTA_DFBM_NQ620 targets
2 parents bba538c + 5fb5a4a commit 01aeb48

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

targets/TARGET_NORDIC/TARGET_NRF5x/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,16 @@ The assert handler is defined in mbed-os/features/FEATURE_BLE/targets/TARGET_NOR
153153
* It is not possible to do an asynchronous write from flash and receive non-asynchronously at the same time since the non-asynchronous receive buffer is being used as the temporary transmission buffer.
154154
* The driver will flush the DMA buffer after a configurable timeout. During this process the UART will be halted and therefor unable to receive data. Hardware flow control should be enabled to avoid missing any data during this window.
155155

156+
#### Serial Wire Output (SWO)
157+
158+
On the nRF52832 pin 18 (p18 or p0_18) is the SWO pin and a GPIO pin. On the nRF52_DK and DELTA_DFBM_NQ620 targets p18 is also mapped to LED2, so the ITM has been removed from these targets to avoid contention. If you need SWO capability instead of LED2, add the ITM through ```mbed_app.json```:
159+
```
160+
"target_overrides": {
161+
"*": {
162+
"target.device_has_add": ["ITM"]
163+
}
164+
}
165+
```
156166

157167
## SoftDevice
158168

targets/targets.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6855,7 +6855,8 @@
68556855
"device_name": "nRF52832_xxAA",
68566856
"macros_add": [
68576857
"WSF_MAX_HANDLERS=10"
6858-
]
6858+
],
6859+
"device_has_remove": ["ITM"]
68596860
},
68606861
"SDT52832B": {
68616862
"inherits": ["MCU_NRF52832"],
@@ -6899,7 +6900,8 @@
68996900
"supported_form_factors": ["ARDUINO"],
69006901
"inherits": ["MCU_NRF52832"],
69016902
"release_versions": ["5"],
6902-
"device_name": "nRF52832_xxAA"
6903+
"device_name": "nRF52832_xxAA",
6904+
"device_has_remove": ["ITM"]
69036905
},
69046906
"MCU_NRF52840": {
69056907
"inherits": ["Target"],

0 commit comments

Comments
 (0)