2006-05-26 01:56 AM
2006-05-25 04:28 AM
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 Frank2006-05-26 01:56 AM
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