cancel
Showing results for 
Search instead for 
Did you mean: 

Check CPU integrity

fbordeleau
Associate II
Posted on May 26, 2006 at 10:56

Check CPU integrity

2 REPLIES 2
fbordeleau
Associate II
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

fbordeleau
Associate II
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