Commit 9f2c421
committed
hal/nxp: mcux: flash_c40: add IP aliases; init ret; S32K344: define C40 features
- Add conditional aliases (FLASH↔IP_FLASH, PFLASH↔IP_PFLASH) so the driver
builds across MCUX SDK variants that name the C40 IP differently. No
functional change; improves portability.
- Initialize `ret` to `kStatus_FLASH_Success` in FLASH_Program() to avoid
potential use-before-set warnings and satisfy static analyzers on edge
paths.
- Define S32K344 C40 flash geometry in S32K344_features.h:
* 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)
* aggregate total code flash size macro
Values use unsigned constants for toolchain robustness. Min erase/program
granularities remain controller-level (handled in the driver).
Tested on S32K344 (XIP) alongside Zephyr C40 on-chip flash driver integration.
Signed-off-by: Sumit Batra <sumit.batra@nxp.com>1 parent 18a86af commit 9f2c421
File tree
2 files changed
+30
-1
lines changed- mcux/mcux-sdk-ng/drivers/flash_c40
- s32/mcux/devices/S32K344
2 files changed
+30
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
33 | 41 | | |
34 | 42 | | |
35 | 43 | | |
| |||
818 | 826 | | |
819 | 827 | | |
820 | 828 | | |
821 | | - | |
| 829 | + | |
822 | 830 | | |
823 | 831 | | |
824 | 832 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
239 | 260 | | |
0 commit comments