Establish IP communication with Cisco device to connected PC.
If cisco to pc not pinging but you have setup ip correctly then disable firewall in your windows pc.
download
tftp server, run tftp server in your PC which is connected with the cisco device.
PC IP is 192.168.1.1
Net mask 255.255.255.0
copy new version of IOS to tftp server root folder, ex. C:\TFTP-Root\
as example we assume our new version of IOS is c3560-ipbasek9-mz.122-58.SE2.bin
Login in to cisco using console cable
>en
#copy tftp: flash:
Address or name of remote host []? 192.168.1.1
Source filename []? c3560-ipbasek9-mz.122-58.SE2.bin
Destination filename [c3560-ipbasek9-mz.122-58.SE2.bin]?
Accessing tftp://192.168.1.1/c3560-ipbasek9-mz.122-58.SE2.bin...
Loading c3560-ipbasek9-mz.122-58.SE2.bin from 192.168.1.1 (via GigabitEthernet0/1): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 15072310 bytes]
15072310 bytes copied in 337.180 secs (44701 bytes/sec)
Switch#sh flash
Directory of flash:/
2 -rwx 3096 Mar 1 1993 00:01:40 +00:00 multiple-fs
3 -rwx 1934 Mar 1 1993 00:01:40 +00:00 private-config.text
4 -rwx 1781 Mar 1 1993 00:01:40 +00:00 config.text
5 -rwx 15072310 Mar 1 1993 00:24:49 +00:00 c3560-ipbasek9-mz.122-58.SE2.bin
6 -rwx 11752155 Jun 28 2011 08:03:25 +00:00 c3560-ipbasek9-mz.122-55.SE1.bin
our old version of IOS is c3560-ipbasek9-mz.122-55.SE1.bin
our new version of IOS is c3560-ipbasek9-mz.122-58.SE2.bin
Now we need to boot our cisco device using new IOS.
(config)#boot system flash:/c3560-ipbasek9-mz.122-58.SE2.bin
(config)#^Z
#wr
#reload
now you can check current version after reload by using following command
#sh ver
#sh ver
Cisco IOS Software, C3560 Software (C3560-IPBASEK9-M), Version 12.2(58)SE2, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2011 by Cisco Systems, Inc.
Compiled Thu 21-Jul-11 01:44 by prod_rel_team
ROM: Bootstrap program is C3560 boot loader
BOOTLDR: C3560 Boot Loader (C3560-HBOOT-M) Version 12.2(44)SE5, RELEASE SOFTWARE (fc1)
Switch uptime is 49 minutes
System returned to ROM by power-on
System image file is "flash:/c3560-ipbasek9-mz.122-58.SE2.bin"