Topic : STM8L generate "illegal command" or illegal opcode for software reset

Forum : ST7/STM8

Original Post
Post Information Post
January 20, 2012 - 9:28pm
Guest

My ST support person said to do a software reset, without using the watchdog, call illegal opcode 0x75. I know nothing about assembler and he gave me this:

With Cosmic:
_asm("dc.b $75");

How do I convert this to Raisonance or maybe some other way to generate an illegal command?

Replies
Post Information Post
+1
0
-1
January 23, 2012 - 4:32am
Guest

I read AN55 a bit and got it.

asm { 0x75 } //generate software reset