Skip to content

Remove ITM from NRF52_DK and DELTA_DFBM_NQ620 targets #9767

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions targets/TARGET_NORDIC/TARGET_NRF5x/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,16 @@ The assert handler is defined in mbed-os/features/FEATURE_BLE/targets/TARGET_NOR
* 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.
* 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.

#### Serial Wire Output (SWO)

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```:
```
"target_overrides": {
"*": {
"target.device_has_add": ["ITM"]
}
}
```

## SoftDevice

Expand Down
6 changes: 4 additions & 2 deletions targets/targets.json
Original file line number Diff line number Diff line change
Expand Up @@ -6791,7 +6791,8 @@
"device_name": "nRF52832_xxAA",
"macros_add": [
"WSF_MAX_HANDLERS=10"
]
],
"device_has_remove": ["ITM"]
},
"SDT52832B": {
"inherits": ["MCU_NRF52832"],
Expand Down Expand Up @@ -6835,7 +6836,8 @@
"supported_form_factors": ["ARDUINO"],
"inherits": ["MCU_NRF52832"],
"release_versions": ["5"],
"device_name": "nRF52832_xxAA"
"device_name": "nRF52832_xxAA",
"device_has_remove": ["ITM"]
},
"MCU_NRF52840": {
"inherits": ["Target"],
Expand Down