Skip to content

Conversation

@Parker4091
Copy link

@Parker4091 Parker4091 commented Oct 29, 2025

This bug was discovered while testing serial DFU with MCUBoot on the branch c40_flash_hal_nxp_1. These changes allow serial DFU to complete successfully.

Without this fix serial DFU hangs indefinitely.

sumitbatra-nxp and others added 2 commits October 22, 2025 17:02
- fsl_c40_flash.c: Initialize `ret` in FLASH_Erase() to
  `kStatus_FLASH_Success` to avoid potential use-before-set warnings on some
  toolchains/static analyzers (no functional change).

- S32K344_features.h: Define C40 array geometry for S32K344 using unsigned
  constants:
    * FSL_FEATURE_FLASH_C40_BLOCK_SIZE_CODE (1 MiB)
    * FSL_FEATURE_FLASH_C40_BLOCK_COUNT_CODE (4)
    * FSL_FEATURE_FLASH_C40_BLOCK_SIZE_DATA (256 KiB)
  Note: erase/program granularities are controller-level and handled by driver.

- S32K344_glue_mcux.h: Provide conditional aliases mapping FLASH↔IP_FLASH and
  PFLASH↔IP_PFLASH to harmonize SDK naming and improve build portability.

Signed-off-by: Sumit Batra <[email protected]>
@sumitbatra-nxp sumitbatra-nxp force-pushed the c40_flash_hal_nxp_1 branch 6 times, most recently from 50cc6f6 to 59a3b6c Compare November 16, 2025 18:57
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