EmbeddedRelated.com
Forums
Imagine Conference

Reason behind MISRA rule 111

Started by vikasvds May 12, 2011
In message <irh2ne.10s.1@stefan.msgid.phost.de>, Stefan Reuther
<stefan.news@arcor.de> writes
>Vinzent Hoefler wrote: >> Stefan Reuther wrote: >> Maybe original MISRA wasn't intended for systems which even had I/O. ;) > >Indeed, many of the rules make much more sense if you have an engine >control unit in mind, not an infotainment device with a megapixel screen >and a few Gigs of flash.
All systems MISRA is aimed at have IO... It is just that most don't have screens. -- \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ \/\/\/\/\ Chris Hills Staffs England /\/\/\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Chris H wrote:

> All systems MISRA is aimed at have IO... It is just that most don't have > screens.
Depends on what you count as I/O. Of course, any electric wire going in or out the MCU are technically I/O. But I don't think, I could drive a PWM-signal with the facilities of <stdio.h>. ;) Vinzent. -- A C program is like a fast dance on a newly waxed dance floor by people carrying razors. -- Waldi Ravens
In message <op.vvzziadwlzeukk@jellix.jlfencey.com>, Vinzent Hoefler
<0439279208b62c95f1880bf0f8776eeb@t-domaingrabbing.de> writes
>Chris H wrote: > >> All systems MISRA is aimed at have IO... It is just that most don't have >> screens. > >Depends on what you count as I/O. Of course, any electric wire going in or >out the MCU are technically I/O.
They are IO... not just "technically" comparatively few computers have screens.
>But I don't think, I could drive a PWM-signal with the facilities of ><stdio.h>. ;)
printf is essential :-) -- Support Sarah Palin for the next US President Go Palin! Go Palin! Go Palin! In God We Trust! Rapture Ready!!! http://www.sarahpac.com/
Stefan Reuther wrote:

> Vinzent Hoefler wrote: > >> Maybe original MISRA wasn't intended for systems which even had I/O. ;) > > Indeed, many of the rules make much more sense if you have an engine > control unit in mind, not an infotainment device with a megapixel screen > and a few Gigs of flash.
I see. It sure is a very critical device, so that restricting the developers to use a safety-critical language subset saves a lot of money. ;) Not like that stupid airbag that nobody's gonna need anyway. Vinzent. -- A C program is like a fast dance on a newly waxed dance floor by people carrying razors. -- Waldi Ravens

Imagine Conference