How to erase the application memory in EM1000-TEV
Hi,
I used EM1000-TEV development system.
The problem is
1) The device firmware is uploading properly through serial port. But the device reboot suddenly,by not allowing the program to upload via network.
2)Even in the device Explorer window,the device is not listed,this is because of frequent rebooting of the device.
3) The frequent reboot occurs because " sub on_pat( ) sys.reboot end sub" is included as shown below:
sub on_sys_init
dim sp as string
io.num=PL_IO_NUM_1
io.enabled=YES
ser.num=1
ser.rxbuffrq(4) 'we ask for 4*256-16=1008 bytes for the RX buffer of ser 1
ser.txbuffrq(4) 'we ask for 4*256-16=1008 bytes for the TX buffer of ser 1
net.ip = "192.168.1.93" '' set IP address << YOU MIGHT NEED TO CHANGE
sock.num = 0
sock.rxbuffrq(4)
sock.txbuffrq(4)
sock.varbuffrq(2)
sock.protocol=PL_SOCK_PROTOCOL_TCP
sock.inconmode=PL_SOCK_INCONMODE_ANY_IP_ANY_PORT
sock.httpportlist="80"
sys.buffalloc
ser.num=1
ser.enabled=YES 'The serial port is now ON!
pat.play("G-G-G_",NO)
end sub
// Some other code removed here........
sub on_pat()
sys.reboot
end sub
4)Because of this code, every time the device reboots and initializes and again reboots which is occurring continuously.Hence not allowing to upload the other program through the network.
5)Also suggest me, whether it is possible to upload the program through serial port.
So kindly suggest me the solution for these problems.
Regards,
Sivabalan
I used EM1000-TEV development system.
The problem is
1) The device firmware is uploading properly through serial port. But the device reboot suddenly,by not allowing the program to upload via network.
2)Even in the device Explorer window,the device is not listed,this is because of frequent rebooting of the device.
3) The frequent reboot occurs because " sub on_pat( ) sys.reboot end sub" is included as shown below:
sub on_sys_init
dim sp as string
io.num=PL_IO_NUM_1
io.enabled=YES
ser.num=1
ser.rxbuffrq(4) 'we ask for 4*256-16=1008 bytes for the RX buffer of ser 1
ser.txbuffrq(4) 'we ask for 4*256-16=1008 bytes for the TX buffer of ser 1
net.ip = "192.168.1.93" '' set IP address << YOU MIGHT NEED TO CHANGE
sock.num = 0
sock.rxbuffrq(4)
sock.txbuffrq(4)
sock.varbuffrq(2)
sock.protocol=PL_SOCK_PROTOCOL_TCP
sock.inconmode=PL_SOCK_INCONMODE_ANY_IP_ANY_PORT
sock.httpportlist="80"
sys.buffalloc
ser.num=1
ser.enabled=YES 'The serial port is now ON!
pat.play("G-G-G_",NO)
end sub
// Some other code removed here........
sub on_pat()
sys.reboot
end sub
4)Because of this code, every time the device reboots and initializes and again reboots which is occurring continuously.Hence not allowing to upload the other program through the network.
5)Also suggest me, whether it is possible to upload the program through serial port.
So kindly suggest me the solution for these problems.
Regards,
Sivabalan
2
people have this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?I got the solution from Tibbo technical support.Thanks to Tibbo technology for their fast response with in a minute.Now my device working properly. Thank a lot again.
1 person says
this solves the problem
-
1 person says
this solves the problem
-
Dear $@M,
From what you are describing I am assuming that you are not running under
debug mode.
You mentioned that you cannot load the firmware through the serial port?
If the serial upload does not work, please try this:
1. First open the project you had and remove the sys.reboot.
2. Goto Projects > Rebuild All and Upload and wait until it says "uploading",
at this time plug in the power to the EM1000 TEV.
This should give the system enough time to not run the program inside and
start the uploading of the new program.
Regards,
sivabalan -
Inappropriate?Otherwise u try this one,
OK, supposedly when you load new firmware, it should cover over the program
running inside. Anyways, please try this.
1. Change your code under TIDE so that it will not reboot.
2. Press Project > Rebuild All
3. Copy the project's TPC file to a temp location.
4. Copy the firmware to the same location as the TPC file.
5. Open Command Prompt (Windows Start > Run > cmd)
6. Navigate to the folder holding the two files.
7. type : copy /B xxx.bin+yyy.tpc zzz.bin (xxx = firmware name, yyy = TPC
name, ZZZ final combined file name that you can choose)
8. Now, load this complied firmware using the serial port, it should cover
over the old program inside.
1 person says
this solves the problem
Loading Profile...



