Skip to content

Latest commit

 

History

History
50 lines (41 loc) · 948 Bytes

README.md

File metadata and controls

50 lines (41 loc) · 948 Bytes

DFU bootloader for PIC18F

Note

THIS SOFTWARE COMES WITHOUT ANY WARRANTY!

License

LGPL v2.1 (DFU part use MIT)

Requirements

  • PIC182550 (it may work on other MCU with little code changes)
  • PICkit2 or any other Programmer
  • SDCC
  • GNU PIC Utilities (gputils)
  • SRecord
  • dfu-utils or any other DFU Software
  • Python

Bootloader Configuration

  • Edit bootloader/config.h
  • Edit bootloader/Makefile
  • Edit bootloader/fuses.h
  • Edit bootloader/usb/usb_descriptors.c

How to build

  • Type 'make' on project root directory

Install bootloader with PICkit2

pk2cmd -PPIC18F2550 -M -Fbootloader.hex -R

Flash application with dfu-utils

dfu-util -D example.dfu

What works

  • Download application
  • Upload
  • Interrupts
  • Leave bootloader and jump to application

ToDo

  • Fix various bugs