One of our customer, has a question regarding the chip MPC5643L. They are using your motor control toolbox
(Version # 1.2 ) together with Matlab 2013b for model based application software design, and one of the customers requires that the code generated from the model meet MISRA C rules, but seems like some of the freescale library *.c and *.h files does not meet the MISRA C rules.
Do you have any customer that uses the above motor control toolbox for their products? Have they ever had the same issue? If yes, is there any solutions to make the code MISRA C complied? Or do you have any supporting documents which states that the library files are reliable even not MISRA C complied?
Appreciate support on the above questions from the customer.
Following answer from Daniel will clarify all your doubts:
Please allow me a few comments which i think will answer your main 3 questions:
1) The generated code is complaint to MIRSA standard?
We need to differentiate between 3 layers of generated code:
MISRA C setup:
ISO/IEC Certification Kit: IEC Certification Kit - MATLAB & Simulink
2) The generated code is any ISO complaint?
We - Model Based Design Team - do not provide a qualification kit for such purpose. Our main intentions are easy prototyping and to open up the NXP HW into the world of MathWorks products. Then using their offerings and additional toolboxes ISO 26262 Support in MATLAB and Simulink - Automotive Industry Standards - MATLAB & Simulink to allow users to pursue various options.
3) can it be used is safety critical applications?
Typically, when we talk about safety critical application we think about running application using lockstep systems. NXP offers such microprocessors and the most common ones are the MPC families. Is that what you mean by safety ?