Hello, all! I´d like to create a bootloader for a PIC16F1829, but I have no clue how to do it.
Is there a place where I have to download the firmware, or a software that I must use to configure the source
code?
Please, help me, I´m trying very hard to understand how Tiny Bootloader works!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have replaced the complexity of writing the bootloader with an application. The application essentially does this.
Determines chip and the chip parameters from the GCBASIC reference/compiler files.
Determines the parameters like freq, bps etc
Determines TinyBootLoader+ chip ID. This is based on memory and HEF/SAF sizes,
Determine the chip memory architecture and chip family. There are three difference chip family and six different memory architectures across all the PICs. Some of the memory architectures require buffer writes and some do not.
Setup the oscillator
Setup the USART and the PPS, if defined.
Setup to variables and memory space
At this point the program is ready to accept data.
Receive the chip type from the application. Respond using byte determined at #4 above, or exit
Receive address data byte, length of packet and data type or if timeout then exit.
Receive data byte, or if timeout then exit.
Depending data type write received data to PROGMEM or EE , or, buffer.
If at end of packet and using buffer, write received data in buffer to PROGMEM or EE
Send checksum to application.
Repeat from #2 above until time out ( no data arriving ).
Hello, all! I´d like to create a bootloader for a PIC16F1829, but I have no clue how to do it.
Is there a place where I have to download the firmware, or a software that I must use to configure the source
code?
Please, help me, I´m trying very hard to understand how Tiny Bootloader works!
I have replaced the complexity of writing the bootloader with an application. The application essentially does this.
At this point the program is ready to accept data.
https://www.youtube.com/watch?v=NgVbc-LsF7k
Writing this is ASM is not that way to do this anymore. I wrote many bootloaders using the ASM then I wrote the solution in the video.
A bootloader needs to be consistent and reliable. And, the method in the video provides these.
Ping me on pickitplus AT anobium DOT co DOT UK