LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a LV code that can send a compiled hex program to a PIC

Hi,
I am looking for an application that download a hex compiled program to a PIC via serial port. The PIC is working with a bootloader so that I can send hex files to its serial port.
Does anybody have any information about how to do this?
Thank you
0 Kudos
Message 1 of 4
(3,296 Views)
You may have to program the bootloader first using some sort of BDM or JTAG device. There are various devices out there depending of which PIC you are using.

Maybe I misunderstood. DOes the PIC already have a bootloader? If so, if you have the command to transmit the hex file through the serial port, you can implement it using the Serial Port vi's.

Typically, a download is done by blocks. You can create a loop which reads and writes the hex file in the appropriate block size. The trick is that your hex file is probably in binary format and you may have to convert it to text to send it through the serial port.

If this is what you are looking for, I can give you details on how this is done. I do not have a ready-made vi for the PIC.

JLV
Message 2 of 4
(3,296 Views)
Thank you JLV for your answer.
Indeed, the PIC (PIC16F876A) has a bootloader and You are right, I am looking for a method to properly write compiled hex files to the PIC.
Thank you

Arnaud
0 Kudos
Message 3 of 4
(3,296 Views)
Hi,
So ? Can someone help me please because I did not succeed in sending hex files to my PIC (which has a bootloader embedded).
Thank you
Regards,
0 Kudos
Message 4 of 4
(3,296 Views)