flipperzero-firmware/bootloader
gornekich b405a22cd1
[FL-1167] Rework GPIO and EXTI with LL lib (#424)
* api-hal-gpio: rework gpio on ll
* one_wire_slave: rework gpio initialization
* interrupts: add attribute weak to hal exti interrupts handlers
* api-hal-gpio: add exti interrupt handlers
* input: rework with api-hal-gpio interrupts
* one_wire_slave: rework with api-hal-gpio interrupts
* api-hal-gpio: fix incorrect exti line config
* api-hal-gpio: add doxygen documentation
* api-hal-gpio: add enable / disable interrupts
* api-hal-gpio: add get_rfid_level
* core: remove api-gpio
* applications: rework gpio with api-hal-gpio
* lib: rework gpio with api-hal-gpio
* rfal: disable exti interrupt when rfal is inactive
* rfal: add interrupt gpio reinitialization
* api-hal-gpio: hide setting speed and pull mode LL implementation
* stm32wbxx_it: remove unused EXTI handlers
* api-hal-gpio: guard set, enable, disable and remove interrupt
* Drop F4 target
* Accessor: update gpio api usage

Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2021-04-29 11:51:48 +03:00
..
src Implement bootloader #137 (#142) 2020-10-01 02:05:04 +03:00
targets [FL-1167] Rework GPIO and EXTI with LL lib (#424) 2021-04-29 11:51:48 +03:00
Makefile [FL-873] Add F5 target, lp5562 driver and api-hal-light (#347) 2021-02-18 15:49:32 +03:00
ReadMe.md Remove obsolete target. Cleanup and update ReadMe. (#279) 2020-12-28 11:52:35 +06:00

Flipper bootloader

What it does?

  • [+] Hardware initialization
  • [+] Boot process LED indicators
  • [+] Firmware update
  • Firmware CRC check
  • Interactive UI
  • FS check
  • Recovery mode
  • Errata crutches

Targets

| Name | Bootloader | Firmware | Reset | DFU | | | Address | Address | Combo | Combo |

| f4 | 0x08000000 | 0x00008000 | L+Back | L+Back, hold L |

Also there is a ST bootloader combo available on empty device: L+Ok+Back, release Back,Left. Target independend code and headers in srcand target/include folders.

Building

With dev docker image:

docker-compose exec dev make -C bootloader

With toolchain installed in path:

make -C bootloader

Build Options

  • DEBUG - 0/1 - enable or disable debug build. Default is 1.
  • TARGET - string - target to build. Default is f4.

Flashing

Using stlink(st-flash):

make -C bootloader flash

Or use ST bootloader:

make -C bootloader upload

Debug

Using stlink (st-util + gdb):

make -C bootloader debug