- Войти
- Добавить новую школу
-
Предоставить доступ к
существующей школе
Run (integrated with MATLAB). Polyspace is a static analysis tool that proves the absence of runtime errors (division by zero, buffer overflows) in generated C code. This is a mandatory step for ISO 26262 ASIL-D.
Tier-1 suppliers use ISO Matlab to generate code for battery management systems (BMS), electronic power steering (EPS), and ADAS controllers. MathWorks' is TÜV SÜD certified for ISO 26262 up to ASIL-D. iso matlab
| Pitfall | Why it violates ISO | The ISO Matlab fix | | :--- | :--- | :--- | | | Leads to dynamic memory allocation (malloc), banned in safety standards. | Use coder.varsize with explicit bounds or redesign using fixed-size buffers. | | eval() function | Non-deterministic. Hard to trace. | Replace with str2func or switch statements. | | Implicit type casting | MISRA C:2012 Rule 10.1 violation. | Use cast() or typecast() explicitly in MATLAB. | | Recursive functions | Stack overflow risk. | Convert to iterative loops. | Run (integrated with MATLAB)
These metrics can be exported to align with ISO 25000 reporting. Tier-1 suppliers use ISO Matlab to generate code