Skip to main content
Visitor II
May 26, 2006
Question

Check CPU integrity

  • May 26, 2006
  • 2 replies
  • 839 views
Posted on May 26, 2006 at 10:56

Check CPU integrity

    This topic has been closed for replies.

    2 replies

    Visitor II
    May 25, 2006
    Posted on May 25, 2006 at 13:28

    Hi,

    Does ST have function to check the CPU integrity?

    I need that kind of function on startup to check if the CPU flags (overflow...) are valid.

    Normally, these are asm function.

    Does that kind of function exist?

    Thanks

    Frank

    Visitor II
    May 26, 2006
    Posted on May 26, 2006 at 10:56

    Does any one knows how to generate an overflow ?

    CPU : STR712F

    I tried this but it does not work:

    __asm (''MOV R1,#0xffffffff \n'');

    __asm (''MOV R2,#0xffffffff \n'');

    __asm (''MOV R3,#0xffffffff \n'');

    __asm (''ADDS R2,R1,R3 \n'');

    __asm (''MOV R2,#0xffffffff \n'');

    __asm (''ADCS R2,R1,R3 \n'');

    __asm (''BVC cpu_errors \n'');

    __asm (''BVS exit \n'');

    Thanks