I want to use the CCS bootloader for my PIC18F6310. I need the pc application that sends the new hex file to run under Windows CE. This is a touch screen using Windows CE 1Ghz processor 256MB ram. The CE application is written using Visual Studio 2005. Where can I find information about writing my own application to bootload a PIC? Thanks.
Wayne_
Joined: 10 Oct 2007 Posts: 681
Posted: Thu Jun 26, 2008 8:43 am
This is probably not a good idea.
The code on a pic runs in flash so to boot from a PC means to rewrite a block of flash with the code each time it boots up. Flash has a limited write count.
You are better off letting the PIC startup as normal but to use a booter to allow serial upgrade. When new code is available it uploads to the PIC from the PC via the serial/usb or ethernet interface but the pic will always startup with current code in the flash.
The standard booter allows programming via serial port. Your main code just needs to waits for a specific command from the serial port which forces a reboot into the booter which then waits for a serial upload.
Your CE app just needs to send than command, wait for the pic to reset and then upload the new code. This is easy using either .net compact framework C#, VB.net or even just using C/C++ with Visual Studio.
ljbeng
Joined: 10 Feb 2004 Posts: 205
Posted: Thu Jun 26, 2008 9:27 am
I will only update the PIC flash if there is a newer version, not every power cycle....
MarcosAmbrose
Joined: 25 Sep 2006 Posts: 38 Location: Adelaide, Australia
Posted: Thu Jun 26, 2008 10:38 pm
CodeLoader from "The Byte Factory" http://www.thebytefactory.com/ only requires a terminal application (eg HyperTerminal) to upload hex file to your target board. I'm sure you could find a terminal app for WinCE.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum