Skip to content

Support for custom flash option byte on NXP S32K14xx#697

Open
dgarske wants to merge 1 commit intowolfSSL:masterfrom
dgarske:nxp_s32k14xx_fopt
Open

Support for custom flash option byte on NXP S32K14xx#697
dgarske wants to merge 1 commit intowolfSSL:masterfrom
dgarske:nxp_s32k14xx_fopt

Conversation

@dgarske
Copy link
Contributor

@dgarske dgarske commented Feb 25, 2026

No description provided.

@dgarske dgarske self-assigned this Feb 25, 2026
Copilot AI review requested due to automatic review settings February 25, 2026 23:12
Copy link
Contributor

Copilot AI left a comment

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 adds support for customizing the Flash Option Byte (FOPT) on NXP S32K14xx microcontrollers. The FOPT value controls hardware features like the RESET pin configuration and NMI interrupt settings.

Changes:

  • Added a configurable WOLFBOOT_FOPT macro with default value 0xFF to allow override via compiler flags
  • Updated documentation with detailed FOPT bit field reference table and usage examples
  • Added commented configuration examples across all S32K14x variant config files

Reviewed changes

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

Show a summary per file
File Description
hal/s32k1xx.c Introduced WOLFBOOT_FOPT macro to replace hardcoded flash option byte value
docs/Targets.md Added comprehensive documentation table describing FOPT bit fields and usage
config/examples/nxp-s32k148.config Added commented example for FOPT override configuration
config/examples/nxp-s32k146.config Added commented example for FOPT override configuration
config/examples/nxp-s32k144.config Added commented example for FOPT override configuration
config/examples/nxp-s32k142.config Added commented example for FOPT override configuration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dgarske
Copy link
Contributor Author

dgarske commented Feb 25, 2026

Customer confirmed fix: "I tested by pulling your branch and pressing the reset button on our dev board and I can no longer reset the board (which is what we want)". Ready for review/merge

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.

4 participants