Skip to content

sm_ppp_shell: Change to interrupt UART for shell - #408

Open
MarkusLassila wants to merge 1 commit into
nrfconnect:mainfrom
MarkusLassila:sm-ppp-shell-fota-dfu-fixes
Open

sm_ppp_shell: Change to interrupt UART for shell#408
MarkusLassila wants to merge 1 commit into
nrfconnect:mainfrom
MarkusLassila:sm-ppp-shell-fota-dfu-fixes

Conversation

@MarkusLassila

Copy link
Copy Markdown
Contributor

Use interrupt UART for the shell with sufficiently large buffer size to hold maximum expected AT-command.

Async UART for shell freezes if a message exceeding buffers is copied, it has no flow control and maximum buffer size of 127*4.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the samples/sm_ppp_shell sample configuration to use an interrupt-driven UART backend for the shell (instead of async), and increases relevant modem/shell buffer sizes to avoid freezes when handling long AT command/response payloads.

Changes:

  • Increase modem UART/user-pipe and AT shell command/response buffer sizes in prj.conf.
  • Switch shell backend to interrupt-driven UART on nRF54L15 DK configurations and set a larger serial RX ring buffer.
  • Add an optional (commented) logging knob for URC visibility.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
samples/sm_ppp_shell/prj.conf Enlarges modem and AT shell buffers; adjusts modem backend selection; adds optional URC logging line.
samples/sm_ppp_shell/boards/nrf54l15dk_nrf54l15_cpuapp.conf Configures shell UART to use interrupt-driven backend with a larger RX ring buffer; keeps modem UART async.
samples/sm_ppp_shell/boards/nrf54l15dk_nrf54l15_cpuapp_ns.conf Same as the non-NS config: interrupt-driven shell UART + large RX ring buffer; modem UART remains async.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread samples/sm_ppp_shell/prj.conf
Comment thread samples/sm_ppp_shell/prj.conf Outdated
Use interrupt UART for the shell with sufficiently large
buffer size to hold maximum expected AT-command.

Async UART for shell freezes if a message exceeding buffers
is copied, it has no flow control and maximum buffer size
of 127*4.

Signed-off-by: Markus Lassila <markus.lassila@nordicsemi.no>
@MarkusLassila
MarkusLassila force-pushed the sm-ppp-shell-fota-dfu-fixes branch from 0a92141 to 0605927 Compare August 19, 2026 06:14
@github-actions

github-actions Bot commented Aug 19, 2026

Copy link
Copy Markdown

Memory usage did not change for nRF91M1 configuration. See CI run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants