Force Crash

Simon61131
2019-07-01
2019-07-02
  • Simon61131 - 2019-07-01

    Hello,

    I am searching errors in our ECU code. Allegedly the ECU crashes every once in a while. I have created some diagnostic source, which I would like to test. Therefore I want to let the ECU crash.

    Is there an (easy) way to let the ECU crash explicitly?
    (Division by zero didn't work -> "inf". How about pagefaults?)

    Best regards and thanks in advance

     
  • Simon61131 - 2019-07-02

    This worked for me:

    Β  Β test_byte: BYTE :=5;
    Β  Β test_crash: POINTER TO BYTE;
    
    test_crash := 16#FF88FF12;
    test_crash^:=5;
    
     
  • e.kislov - 2019-07-02

    Or one line less:

    Β  Β test_byte: BYTE;
    Β  Β test_crash: POINTER TO BYTE;
    Β  Β 
    Β  Β test_byte := test_crash^;
    
     
  • Simon61131 - 2019-07-02

    That didn't work for me...

     

Log in to post a comment.