Skip to content

Commit 1aae596

Browse files
[nrf52] minimum examples (#5493)
* [nrf52] minimum examples * Update nrf52.md * Update nrf52.md * Apply suggestions from code review * Apply suggestions from code review * Update content/components/nrf52.md --------- Co-authored-by: Jonathan Swoboda <[email protected]>
1 parent c9bf379 commit 1aae596

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

content/components/nrf52.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,76 @@ nrf52:
9595

9696
- **reset_pin** (*Required*, [Pin](/guides/configuration-types#pin)): The pin to use for trigger a hardware reset. This pin should be connected to the MCU's reset line or to a circuit that causes the bootloader to enter DFU mode after reset.
9797

98+
## Troubleshooting
99+
100+
### Flashing is unstable
101+
102+
If you are using the Adafruit bootloader, upgrade to the latest version:
103+
[Adafruit nRF52 Bootloader Releases](https://github.com/adafruit/Adafruit_nRF52_Bootloader/releases)
104+
105+
### How to start
106+
107+
Try minimum LED blinking config for the board:
108+
109+
[supermini-nrf52840](https://github.com/joric/nrfmicro/wiki/Alternatives#supermini-nrf52840)
110+
111+
```yaml
112+
nrf52:
113+
board: adafruit_itsybitsy_nrf52840
114+
115+
esphome:
116+
name: supermini-nrf52840
117+
118+
logger:
119+
level: DEBUG
120+
121+
output:
122+
- platform: gpio
123+
pin: P0.15
124+
id: red_led
125+
126+
interval:
127+
- interval: 1s
128+
then:
129+
- output.turn_on: red_led
130+
- delay: 0.5s
131+
- output.turn_off: red_led
132+
```
133+
134+
[xiao-nrf52840](https://wiki.seeedstudio.com/XIAO_BLE/)
135+
136+
```yaml
137+
nrf52:
138+
board: xiao_ble
139+
140+
esphome:
141+
name: xiao-nrf52840
142+
143+
logger:
144+
level: DEBUG
145+
146+
output:
147+
- platform: gpio
148+
pin: P0.26
149+
id: red_led
150+
151+
interval:
152+
- interval: 1s
153+
then:
154+
- output.turn_on: red_led
155+
- delay: 0.5s
156+
- output.turn_off: red_led
157+
```
158+
159+
### Board does not boot
160+
161+
Disable DC/DC:
162+
163+
```yaml
164+
nrf52:
165+
dcdc: false
166+
```
167+
98168
## See Also
99169

100170
- {{< docref "esphome/" >}}

0 commit comments

Comments
 (0)