fix(Boards): Change guard around MXC_ICC_Enable() in system_max32657.c #1643
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.37) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 227 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.325
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1643"
general
weight: 0.35
ttmut
Description
SystemInit()enables in the instruction cache controller (ICC) only when the code is compiled with-mcmse. Builds that run in Secure state without-mcmsetherefore run with the ICC off.The guard is meant to detect Secure state.
__ARM_FEATURE_CMSE == 3Udoesn't detect that. It means "compiled with-mcmse".Libraries/CMSIS/Device/Maxim/GCC/gcc.mksets the two independently:| Build |
CONFIG_TRUSTED_EXECUTION_SECURE(gcc.mk:295-308) |-mcmse(gcc.mk:314-344) | ICC enabled ||---|---|---|---|
| Single image (
TRUSTZONE=0,MSECURITY_MODE=SECURE| 1 | no | no (incorrect) || TrustZone, Secure image (
TRUSTZONE=1,SECURE) | 1 | yes | yes || TrustZone, Non-Secure image (
NONSECURE) | 0 | no | no (correct) |This PR replaces the guard around
MXC_ICC_Enable()to:Checklist Before Requesting Review