Hi!
In Pic controller Medelec show me for long time ago how to reset a program by using C box:
asm
{
goto 0
}
Does anybody know how the Ccode "hardreset" for same function for Arduino? Please. I have tryed to google without result.
Thank´s in advance.
Jorgen
Reset by software!
Moderator: Benj
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
- Contact:
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Reset by software!
Hi Jorgen
Add this line to the supplementary code window inside the project options.
void(* resetFunc) (void) = 0;
Then call the function in a c icon in your flowchart.
resetFunc();
I googled arduino software reset.
Add this line to the supplementary code window inside the project options.
void(* resetFunc) (void) = 0;
Then call the function in a c icon in your flowchart.
resetFunc();
I googled arduino software reset.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
- Contact:
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
- Contact: