Skip to content

Cleanup conf files#25

Open
Nathan-Stohs wants to merge 3 commits into
mainfrom
cleanup-conf
Open

Cleanup conf files#25
Nathan-Stohs wants to merge 3 commits into
mainfrom
cleanup-conf

Conversation

@Nathan-Stohs

Copy link
Copy Markdown
Contributor

These are changes / cleanups I am proposing for the ECG mote that I deem worthy of backporting to the PPG. More to come.

The conf file child_image/hci_ipc.conf (i.e., the network core settings) was not included in the build. Instead the Zephyr default sample was being used. This was largely not a problem but it did reduce Tx power from +3dBm to +0dBm

I fixed the build to add our conf file back in, however I copied over the sample defaults for a clean start. None should matter too much although this needs a little testing. I also explicitly included some previously implicit default values for clarity. I kept the reduced Tx power so note that it can be increased to +3dBm if desired. Ask me if you'd like more information on any setting in particular.

I also did a treatment to the prj.conf file (application core settings) . I removed some unused settings and edited some comments. Made some implicit defaults explicit.

All of this is to hopefully make it more clear where a particular setting is done although DT still makes this hard. There should be no functional change.

I also added a powershell wrapper script to allow AI agents to build nRF SDK / west projects instead of having to initiate under VScode. At least Codex needs this, did not try Claude or others. I don't normally do this but it is convenient sometimes. Add a note about the tools directory to your AGENTS.md file or whatever. The wrapper is currently fragile and if you have different tool paths or change the SDK or toolchain it will probably need adjustment.

Apply the HCI IPC fragment through sysbuild and explicitly configure
controller PHY, TX power, and external 20 ppm LF clock settings.
Remove inactive settings and make LFXO, connection-parameter,
PHY, and data-length behavior explicit.
...So that AI can build projects
@Nathan-Stohs
Nathan-Stohs requested a review from dman82499 July 13, 2026 05:17
@Nathan-Stohs Nathan-Stohs self-assigned this Jul 13, 2026

@dman82499 dman82499 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm confused on some of the functionality and some things seem redundant, see individual comments on details, but other than that it seems fine.

Comment thread MSenseDevice/prj.conf
#CONFIG_DEBUG_COREDUMP=y
#CONFIG_DEBUG_COREDUMP_BACKEND_LOGGING=y
CONFIG_DEBUG_INFO=y
CONFIG_EXCEPTION_STACK_TRACE=y

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

the stack trace was still useful for me when looking at the crashes I believe, unless there's something else keeping it enabled

@@ -0,0 +1,8 @@
# Apply the project-owned configuration fragment to the network-core HCI IPC
# image selected in sysbuild.conf.
if(SB_CONFIG_NETCORE_HCI_IPC)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this is redundant, it will auto happen by sysbuild

CONFIG_BT_CTLR_PHY_CODED=y


# Workaround: Unable to allocate command buffer when using K_NO_WAIT since

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I don't understand what these do or why they are important but I will trust you on that

@@ -1,23 +1,38 @@
CONFIG_IPC_SERVICE=y

@dman82499 dman82499 Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

that's necessary? seems strange. I thought that was deprecated because sysbuild should be processing that. Or basically sysbuild should auto set IPC Service and MBox, when I do SB_CONFIG_CHLID_IMAGE_IPC which is in the sysbuild file.

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.

2 participants