My program reset code, to ICP-i7188 sended by the support.Code:#include <conio.h>
#include "..\..\lib\7188e.h"
void (far *Reset_Program)(void)=0xFFFF0000L; //Program start address.
void main(void)
{
InitLib();
Print("Press any ket to begin\n\r");
Print("and press any key can reset the program.\n\r");
Getch();
for(;;)
{
if(Kbhit())
{
Print("7188E have reseted by software.");
DelayMs(10); //Delay 10 ms to wait for all data is sent to COM port.
Reset_Program(); //You can call the function or
//replace it by following 3 asam codes.
//_asm push 0xffff
//_asm push 0
//_asm retf
}
else
Print("*"); //Print '*' while the program is running.
}
}