User manual
Programming via LAN BootLoader (BL)
All mentioned in the previous chapter is about the old fashion programming using ICSP programmer.
The latest demo (which is uploaded on the new PIC-WEB boards) provides a BL that makes possible remotely
updating the firmware without programmer! To do this you must have:
1) already uploaded BL – as it was mentioned above the new boards will have it, but the older won't. So if
your board doesn't have the BL but you want to use the it you must program the board with
programmer. You must do this as well in case you erase/reprogram the memory with a firmware
without BL.
2) access to the board – of course you must be able to connect to the IP address of the board IN
BOOTLOADER MODE. By default the BL IP address is 192.168.0.200.
3) appropriate hex file – this BL enforce some size limitations. So if you want to upload a specific hex file
make sure it isn't bigger than 121788 bytes. For more details about the BL check this link, section
7.2.2.Internet Bootloader, pages 117-123:
http://www.egr.msu.edu/classes/ece480/capstone/fall11/group03/TCPIP%20Stack%20Help.pdf
4) TFTP.exe installed on your PC – in Windows Vista and 7 TFTP.exe isn't available by default. In order
to enable it check this link: http://avtech.com/Support/index.php?action=kb&article=108
Here is an example of how can we do the whole procedure:
1) Uploading BL to the board (this point isn't necessary in case you already have BL) – you can do this
either:
- import the prebuilt hex file inside the demo zip of PIC-WEB: “<extraction directory>\PIC-WEB
5.42 UEXT Full\TCPIP\Prebuilt\Bootloader.hex”
- rebuild the BL project which is also provided on the PIC-WEB product page: “<extraction
directory>\PIC-WEB bootloader\TCPIP\Internet Bootloader\Internet Bootloader.mcp”
2) Preparing the hex file – you must have a hex file within the limits mentioned above. The most common
way is to compile a project using MPLAB/MPLABX.
As you can see this demo is within range since it is smaller than 60894 words (121788 bytes).
So we can upload it using the BL.
Page 28 of 36










