eblc1388
Active Member
kupikupi said:--- when does the bootloader comes into the picture?? is it when i want the PIC to communicate with the PC??
Bootloader is just the middle man, like a postman delivering a letter from one location to another, except that he lives in your garden/or one room of your house when he has nothing to do.
It gets the program HEX file from user's computer via serial communication and program it into the PIC remaining program memory(the bootloader uses part of the PIC program memory).
Bootloader requires a specific software running on the PC or MAC to work. This software running on the computer knows how to "talk" to the bootloader inside the PIC.
When you have sent your HEX file, and the bootloader written your codes to the remaining program memory, the bootloader's work is done and it just let your program takes over.
If your PIC program has codes to use the USART, then you can communicate with the PC using serial port. Don't expect the bootloader to offer you any "additional power" that your code does not have.