← Back to Pull requests

fix(CMSIS,PeriphDrivers): Fix multiple SVD issues for me30 (MAX32657, MAX32658) #1631

Closed
unknown closed this pull request without merging on Oct 14, 2026 14:33 UTC
View on GitHub
unknown unknown commented on Sep 29, 2026 10:52 UTC
Author

Description

Fixes 18 Jira-tracked SVD issues across nine me30 peripheral SVD files and the
combined max32657.svd. All peripheral SVD changes are mirrored in
max32657.svd; device version bumped from 1.0 to 1.1.

Each Jira ticket has its own commit for easier per-change review:

| Commit | Ticket | Summary |
|--------|--------|---------|
| 1f320b7 | MSDK-1486 | Fix ICC_HBOUND description and REGCTRL.EXC bitOffset |
| d9ad18e | MSDK-1488 | Add missing ICC_CTRL fields BUSY and CRB_FLUSH_EN |
| edbb22c | MSDK-1489 | Fix PWRSEQ SRAMRET_EN description |
| cd86bbe | MSDK-1504 | Fix multiple GCR SVD errors in gcr_me30 |
| 56719a9 | MSDK-1505 | Fix PWRSEQ LPWKFL0/LPWKEN0 pin count and W1C flags |
| 249340a | MSDK-1508 | Fix MCR description typos and add OUTEN.PDOWNEN |
| 30aac2a | MSDK-1509 | Add write-only access to MCR RST register |
| 4b0525d | MSDK-1510 | Fix MCR CTRL.CLKSEL enum value 2 name |
| 7115bdd | MSDK-1512 | Add explicit read-write access to SIR BTLELDO registers |
| 0edd105 | MSDK-1516 | Fix FCR CTRL I3CDGENx enum polarity and add resetValue |
| 670651e | MSDK-1517 | Fix FCR AUTOCAL0 enum names, resetValue, and TRIM_OUT access |
| 59fa2cf | MSDK-1519 | Model FCR INTFL ERFO_RDY and FRQCNT as write-1-to-clear |
| d2a7f63 | MSDK-1520 | Add FCR FRQCNTCTRL CMP_CLKSEL RTC_ALT and fix START description |
| 466205e | MSDK-1476 | Fix TMR4/5 base addresses and DIV_BY_4096 descriptions |
| 60b685f | MSDK-1477 | Fix SPI base address |
| 8265561 | MSDK-1523 | Document UART CTRL STOPBITS field values |
| 7e79b29 | MSDK-1524 | Model UART INTFL fields as write-1-to-clear |

---

icc_reva_me30.svd (MSDK-1486, MSDK-1488)

  • Fix REGION[%s].HBOUND description (was copy-pasted from a DMA register)

  • Fix ICC_REGCTRL.EXC bitOffset: 8 → 16 (RTL writes/reads EXC at bits [23:16], not [15:8])

  • Add missing CRB_FLUSH_EN field at bit 24 of ICC_CTRL (R/W, reset 0)

  • Add missing BUSY status field at bit 7 of ICC_CTRL (read-only)
  • gcr_me30.svd (MSDK-1504)

  • Fix SYSCTRL.ICC_FLUSH description: Cortex-M4 → Cortex-M33

  • Add missing SYSCTRL.BSTAPEN (bit 0) and SYSCTRL.RR (bit 1) fields

  • Mark SYSCTRL.CHKRES (bit 15) <access>read-only</access> (HW-set result bit); fix trailing double-period typo

  • Fix PM.MODE description: "two bit field" → "4-bit field" (field is 4 bits wide)

  • Add <access>read-only</access> to SYSST.ICELOCK (combinational, no write path)

  • Add PCLKDIS1.ICC clock-disable field at bit 11 (RTL-confirmed: G_GCR_CLKDIS1_ICACHE)

  • Remove spurious EVENTEN.TX field at bit 2 (G_GCR_EVENTEN_MAX=2; bit 2 not implemented in ME30 RTL)

  • Add modifiedWriteValues=oneToClear to ECCERR.FLASH and ECCCED.FLASH (W1C flags)

  • Replace six spurious cache-ECC fields in ECCADDR (DADDR/DB/DE/TADDR/TB/TE) with a

  • single read-only 32-bit flash byte-address field; ME30 cache ECC is disabled (C_ECC_EN=1'b0)
  • Mark BTLELDOCTRL delay-status bits [15:12] (BB_EN_DLY, RF_EN_DLY, RF_BP_EN_DLY,

  • BB_BP_EN_DLY) <access>read-only</access> (write path captures only PWDATA[11:0])
  • Swap BTLELDODLY BB_CNT/RF_CNT labels: bits [16:8] = RF LDO delay (VDDA_RF), bits [28:20] = BB LDO

  • delay (VDDA_BB), per UG Table 4-37 and RTL signal names
  • Fix CLKCTRL.SYSCLK_DIV description: remove stale PLL0 reference (MAX32657 is IPO-based, no PLL)
  • pwrseq_me30.svd (MSDK-1489, MSDK-1505)

  • Fix SRAMRET_EN description (removed stale "two bits"/"RREGEN" references)

  • Fix LPWKFL0.PINS and LPWKEN0.PINS bitWidth: 12 → 14 (GPIO0 has 14 pins)

  • Add write-only access and modifiedWriteValues=oneToClear to LPWKFL_CLR

  • Add modifiedWriteValues=oneToClear to LPWKFL0.PINS, LPPWST.BACKUP, and LPPWST.RESET (W1C status flags)
  • sir_me30.svd (MSDK-1512)

  • Add explicit read-write access to BTLELDO_BB and BTLELDO_RF registers

  • (overrides peripheral-level read-only — these registers are R/W in RTL)

    mcr_me30.svd (MSDK-1508, MSDK-1509, MSDK-1510)

  • Rename CTRL.CLKSEL enum value 2 from GPIO_P0_12/RTC_IN_DIV8 → RTC_IN; update mxc_sys.h reference

  • Add write-only access to RST register (no read path)

  • Fix CTRL.CLKSEL description typo ("Clcok" → "Clock")
  • Fix CTRL.CLKSEL enum value 2: RTC_IN_DIV8 → GPIO_P0_12 (P0.12 is undivided on the 32kHz path)

  • Fix BYPASS1 description (was a copy-paste of BYPASS0)

  • Add missing OUTEN.PDOWNEN field at bit 1 (vestigial, not connected to logic)
  • fcr_me30.svd (MSDK-1516, MSDK-1517, MSDK-1519, MSDK-1520)

  • Fix CTRL.I3CDGEN0/1 enum polarity (bypass control, not enable) and add CTRL resetValue

  • Fix AUTOCAL0 enum copy-pastes (GAIN_INV, ATOMIC); add TRIM_OUT read-only access; model ATOMIC self-clear; add resetValue

  • Add modifiedWriteValues=oneToClear to INTFL.ERFO_RDY and INTFL.FRQCNT

  • Add FRQCNTCTRL.CMP_CLKSEL value 1 (RTC_ALT); model START self-clearing trigger
  • spi_reva_me30.svd (MSDK-1477)

  • Fix SPI <baseAddress>: 0x400BE000 → 0x40046000 (per UG Table 3-24 and RTL;

  • wrong address caused silent bus faults or hard faults on any SPI register access)

    uart_revb_me30.svd (MSDK-1523, MSDK-1524)

  • Add enumeratedValues to CTRL.STOPBITS and update description to document

  • the CHAR_SIZE-dependent behavior: 1.5 stop bits for 5-bit characters, 2 for 6/7/8-bit
  • Add modifiedWriteValues=oneToClear to all eight INTFL fields (RTL is W1C on all flags)

  • Fix INTEN.CTS_EV description: "Error" → "Event"
  • max32657.svd only (MSDK-1476)

  • Fix TMR4 <baseAddress>: 0x50080C00 → 0x50014000 (per UG Table 3-24 and RTL)

  • Fix TMR5 <baseAddress>: 0x50081000 → 0x50015000 (per UG Table 3-24 and RTL)
  • SVDconv Validation

  • max32657.svd: 0 errors, 23 warnings — reduced from 25: the TMR4/TMR5 address-overlap warning is eliminated by the MSDK-1476 fix; remaining warnings are pre-existing (intentional AES register aliases, minor documentation gaps).

  • Peripheral fragment files (*_me30.svd): 4 errors / 2 warnings each, unchanged from baseline. These are structural artefacts of the fragment format (missing <peripherals> wrapper required by the SVD schema); content validation is correctly done via the combined max32657.svd.
  • Checklist Before Requesting Review

  • PR Title follows correct guidelines.

  • Description of changes and all other relevant information.

  • (Optional) Provide info on any relevant functional testing/validation. SVDconv run; no new errors or warnings introduced.
  • ---

    🤖 Generated with Claude Code

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: ttmut Review duration: 21820m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1631"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.5% · Safe to merge
    20.5%