Skip to content

Conversation

@tomaszduda23
Copy link
Contributor

Description:

Add troubleshooting for nrf52 so people can reference it easier.

Related issue (if applicable): fixes

Pull request in esphome with YAML changes (if applicable):

  • esphome/esphome#

Checklist:

  • I am merging into next because this is new documentation that has a matching pull-request in esphome as linked above.
    or

  • I am merging into current because this is a fix, change and/or adjustment in the current documentation and is not for a new component or feature.

  • Link added in /components/index.rst when creating new documents for new components or cookbook.

New Component Images

If you are adding a new component to ESPHome, you can automatically generate a standardized black and white component name image for the documentation.

To generate a component image:

  1. Comment on this pull request with the following command, replacing COMPONENT_NAME with your component name in UPPER_CASE format with underscores (e.g., BME280, SHT3X, DALLAS_TEMP):

    @esphomebot generate image COMPONENT_NAME
    
  2. The ESPHome bot will respond with a downloadable ZIP file containing the SVG image.

  3. Extract the SVG file and place it in the images/ folder of this repository.

  4. Use the image in your component's index table entry in /components/index.rst.

Example: For a component called "DHT22 Temperature Sensor", use:

@esphomebot generate image DHT22

@esphome esphome bot added the current label Oct 18, 2025
@netlify
Copy link

netlify bot commented Oct 18, 2025

Deploy Preview for esphome ready!

Name Link
🔨 Latest commit d6b518a
🔍 Latest deploy log https://app.netlify.com/projects/esphome/deploys/691ca5d4f074e00008b4dd17
😎 Deploy Preview https://deploy-preview-5493--esphome.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 18, 2025

Walkthrough

Added a Troubleshooting section to content/components/nrf52.md with guidance on unstable flashing (Adafruit nRF52 bootloader), two minimal ESPHome LED-blink examples for supermini-nrf52840 and xiao_ble, and a note recommending dcdc: false if boards do not boot.

Changes

Cohort / File(s) Change Summary
nrf52 documentation
content/components/nrf52.md
Added a Troubleshooting section: guidance on upgrading the Adafruit nRF52 bootloader for unstable flashing; a "How to start" subsection with two ESPHome LED-blink YAML examples for supermini-nrf52840 and xiao_ble; and a "Board does not boot" note recommending dcdc: false.

Sequence Diagram(s)

(omitted — changes are documentation-only and do not affect control flow)

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

  • Single documentation file; no code or API changes.
  • Quick checks: YAML example syntax and dcdc: false spelling.

Suggested reviewers

  • jesserockz

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title '[nrf52] minimum examples' clearly relates to the main change, which adds troubleshooting examples and YAML snippets for nRF52 devices.
Description check ✅ Passed The description is related to the changeset, stating the purpose is to 'Add troubleshooting for nrf52 so people can reference it easier,' which aligns with the documentation additions.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
content/components/nrf52.md (1)

106-106: Minor text clarity improvement.

The phrase "Try minimum LED blinking sketch for the board:" is slightly awkward. Consider rephrasing to: "Try this minimal LED blinking sketch for your board:" for better readability.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 87f9442 and ccd9dc7.

📒 Files selected for processing (1)
  • content/components/nrf52.md (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**

⚙️ CodeRabbit configuration file

  • Do not generate or add any sequence diagrams

Files:

  • content/components/nrf52.md
🔇 Additional comments (2)
content/components/nrf52.md (2)

98-156: Comprehensive troubleshooting and examples structure looks good.

The addition of a Troubleshooting section with bootloader upgrade guidance and "How to start" examples with concrete YAML configurations is a solid improvement to the documentation. The YAML syntax is correct, GPIO pin references are valid per the GPIO Pin Numbering section, and the interval/output configuration patterns are idiomatic to ESPHome. Once the board naming clarification is addressed, this section should be highly useful for users getting started with nrf52 boards.


106-131: ---

Clarify board naming inconsistency in the supermini example.

The header references "supermini-nrf52840" but the configuration specifies board: adafruit_itsybitsy_nrf52840. This mismatch will confuse users about which board identifier to use. Either update the header to indicate this is an alternative board using the adafruit_itsybitsy_nrf52840 configuration, or clarify the relationship between the supermini board and the adafruit configuration being used.

@optimusprimespace
Copy link
Contributor

This is great for newbies. What would be even better is if somebody would include the nrf52 to the "add new device" option at the dashboard.
github

@lboue
Copy link
Contributor

lboue commented Nov 15, 2025

Great idea. It will simplify the setup for beginners.

@esphome
Copy link

esphome bot commented Nov 18, 2025

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

@esphome esphome bot marked this pull request as draft November 18, 2025 16:52
@swoboda1337 swoboda1337 marked this pull request as ready for review November 18, 2025 16:53
@esphome esphome bot requested a review from swoboda1337 November 18, 2025 16:53
@esphome esphome bot marked this pull request as draft November 18, 2025 16:56
@swoboda1337 swoboda1337 marked this pull request as ready for review November 18, 2025 16:56
@esphome esphome bot requested a review from swoboda1337 November 18, 2025 16:56
@esphome esphome bot marked this pull request as draft November 18, 2025 16:58
@swoboda1337 swoboda1337 marked this pull request as ready for review November 18, 2025 16:59
@swoboda1337 swoboda1337 enabled auto-merge (squash) November 18, 2025 16:59
@swoboda1337 swoboda1337 merged commit 1aae596 into esphome:current Nov 18, 2025
4 of 5 checks passed
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
content/components/nrf52.md (1)

109-113: Clarify board compatibility for supermini-nrf52840 example.

The example section is titled [supermini-nrf52840] but uses board: adafruit_itsybitsy_nrf52840. While this compatibility selection may work, it could confuse beginners who expect to see a supermini_nrf52840 board option or don't understand why the example title differs from the board configuration.

Consider adding a brief explanatory note (e.g., "Note: The supermini-nrf52840 is compatible with the itsybitsy board configuration") to clarify this compatibility relationship.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0817d6b and d6b518a.

📒 Files selected for processing (1)
  • content/components/nrf52.md (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**

⚙️ CodeRabbit configuration file

  • Do not generate or add any sequence diagrams

Files:

  • content/components/nrf52.md
🧠 Learnings (1)
📓 Common learnings
Learnt from: jesserockz
Repo: esphome/esphome-docs PR: 4865
File: .github/workflows/needs-docs.yml:0-0
Timestamp: 2025-05-01T03:29:47.922Z
Learning: In the esphome-docs repository, the "current" label is automatically added by a bot to pull requests, making it a reliable indicator for the target branch.
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Build
🔇 Additional comments (1)
content/components/nrf52.md (1)

98-166: Troubleshooting content is well-structured and practical.

The new troubleshooting section provides:

  • A clear, actionable link for the common flashing instability issue
  • Two minimal, reproducible LED-blink examples covering different boards
  • A concise solution for boot failures

The examples follow consistent structure and use the correct pin naming conventions (P0.xx format), making them appropriate as getting-started templates.

@jesserockz jesserockz mentioned this pull request Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants