apache / apache/nuttx

Board Initialization: Architecture-specific initialization vs Custom board late initialization

Open
#10,821 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

When putting an application on ENTRYPOINT instead of launching it manually through nsh, some driver initialization is missing.

This is explained in the faq. https://nuttx.apache.org/docs/latest/faq/index.html#why-after-putting-my-application-on-entrypoint-it-stops-to-work

Is there a drawback to replace `CONFIG_NSH_ARCHINIT=y` by `CONFIG_BOARD_LATE_INITIALIZE=y` in the boards defconfig ?
Is `CONFIG_NSH_ARCHINIT` useful compared to `CONFIG_BOARD_LATE_INITIALIZE` ?

This way new users won't have to figure out why their application works when launching from nsh and doesn't when launching as ENTRYPOINT.

Contributor guide

Open the contributing guide

Research direction

Start with the FAQ section linked in the issue and inspect the boards' defconfig files for CONFIG_NSH_ARCHINIT and CONFIG_BOARD_LATE_INITIALIZE. Compare how ENTRYPOINT and nsh affect driver initialization, then determine whether replacing the setting is safe and what documentation or configuration changes would be needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.