├── LICENSE ├── Makefile ├── README.md ├── doc ├── img │ ├── fw-done.svg │ ├── fw-init.svg │ ├── fw-lz4-1.svg │ ├── fw-lz4-2.svg │ ├── fw-lz4-3.svg │ ├── fw-lz4-dict-1.svg │ ├── fw-lz4-dict-2.svg │ ├── fw-lz4-dict-3.svg │ ├── fw-lz4-dict-4.svg │ ├── fw-lz4-dict-5.svg │ ├── fw-lz4-dict-inplace-1.svg │ ├── fw-lz4-dict-inplace-2.svg │ ├── fw-lz4-dict-inplace-3.svg │ ├── fw-plain-1.svg │ ├── fw-plain-2.svg │ ├── fw-plain-3.svg │ └── illustrations.odg └── uptypes.md ├── example ├── .gitignore └── stm32l0 │ ├── .gitignore │ ├── Makefile │ ├── fw.ld │ └── hello.c ├── src ├── arm │ ├── CMSIS │ │ ├── Device │ │ │ └── ST │ │ │ │ ├── STM32L0xx │ │ │ │ └── Include │ │ │ │ │ ├── stm32l051xx.h │ │ │ │ │ ├── stm32l052xx.h │ │ │ │ │ ├── stm32l053xx.h │ │ │ │ │ ├── stm32l061xx.h │ │ │ │ │ ├── stm32l062xx.h │ │ │ │ │ ├── stm32l063xx.h │ │ │ │ │ ├── stm32l071xx.h │ │ │ │ │ ├── stm32l072xx.h │ │ │ │ │ ├── stm32l073xx.h │ │ │ │ │ ├── stm32l081xx.h │ │ │ │ │ ├── stm32l082xx.h │ │ │ │ │ ├── stm32l083xx.h │ │ │ │ │ ├── stm32l0xx.h │ │ │ │ │ └── system_stm32l0xx.h │ │ │ │ └── STM32L1xx │ │ │ │ └── Include │ │ │ │ ├── stm32l1xx.h │ │ │ │ └── system_stm32l1xx.h │ │ └── Include │ │ │ ├── arm_common_tables.h │ │ │ ├── arm_const_structs.h │ │ │ ├── arm_math.h │ │ │ ├── core_cm0.h │ │ │ ├── core_cm0plus.h │ │ │ ├── core_cm3.h │ │ │ ├── core_cm4.h │ │ │ ├── core_cm7.h │ │ │ ├── core_cmFunc.h │ │ │ ├── core_cmInstr.h │ │ │ ├── core_cmSimd.h │ │ │ ├── core_sc000.h │ │ │ └── core_sc300.h │ ├── stm32lx │ │ ├── bootloader.c │ │ ├── bootloader_hw.h │ │ ├── bootloader_impl.h │ │ ├── boottab.h │ │ ├── ld │ │ │ ├── STM32L0.ld │ │ │ ├── STM32L0xx8.ld │ │ │ ├── STM32L0xxB.ld │ │ │ └── STM32L0xxZ.ld │ │ ├── startup.S │ │ └── util.S │ └── unicorn │ │ ├── bootloader.c │ │ ├── bootloader_impl.h │ │ ├── boottab.h │ │ └── ld │ │ ├── bootloader.ld │ │ └── mem.ld └── common │ ├── .gitignore │ ├── Makefile │ ├── bootloader.h │ ├── lz4.c │ ├── lz4.h │ ├── sha2.c │ ├── sha2.h │ ├── update.c │ └── update.h └── tools ├── fwtool ├── .gitignore ├── signtool.py └── zfwtool.py └── shavs ├── shabytetestvectors.zip └── shavs.py /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/README.md -------------------------------------------------------------------------------- /doc/img/fw-done.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/doc/img/fw-done.svg -------------------------------------------------------------------------------- /doc/img/fw-init.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/doc/img/fw-init.svg -------------------------------------------------------------------------------- /doc/img/fw-lz4-1.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/doc/img/fw-lz4-1.svg -------------------------------------------------------------------------------- /doc/img/fw-lz4-2.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/doc/img/fw-lz4-2.svg -------------------------------------------------------------------------------- /doc/img/fw-lz4-3.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/doc/img/fw-lz4-3.svg -------------------------------------------------------------------------------- /doc/img/fw-lz4-dict-1.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/doc/img/fw-lz4-dict-1.svg -------------------------------------------------------------------------------- /doc/img/fw-lz4-dict-2.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/doc/img/fw-lz4-dict-2.svg -------------------------------------------------------------------------------- /doc/img/fw-lz4-dict-3.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/doc/img/fw-lz4-dict-3.svg -------------------------------------------------------------------------------- /doc/img/fw-lz4-dict-4.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/doc/img/fw-lz4-dict-4.svg -------------------------------------------------------------------------------- /doc/img/fw-lz4-dict-5.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/doc/img/fw-lz4-dict-5.svg -------------------------------------------------------------------------------- /doc/img/fw-lz4-dict-inplace-1.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/doc/img/fw-lz4-dict-inplace-1.svg -------------------------------------------------------------------------------- /doc/img/fw-lz4-dict-inplace-2.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/doc/img/fw-lz4-dict-inplace-2.svg -------------------------------------------------------------------------------- /doc/img/fw-lz4-dict-inplace-3.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/doc/img/fw-lz4-dict-inplace-3.svg -------------------------------------------------------------------------------- /doc/img/fw-plain-1.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/doc/img/fw-plain-1.svg -------------------------------------------------------------------------------- /doc/img/fw-plain-2.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/doc/img/fw-plain-2.svg -------------------------------------------------------------------------------- /doc/img/fw-plain-3.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/doc/img/fw-plain-3.svg -------------------------------------------------------------------------------- /doc/img/illustrations.odg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/doc/img/illustrations.odg -------------------------------------------------------------------------------- /doc/uptypes.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/doc/uptypes.md -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/example/.gitignore -------------------------------------------------------------------------------- /example/stm32l0/.gitignore: -------------------------------------------------------------------------------- 1 | hello 2 | -------------------------------------------------------------------------------- /example/stm32l0/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/example/stm32l0/Makefile -------------------------------------------------------------------------------- /example/stm32l0/fw.ld: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/example/stm32l0/fw.ld -------------------------------------------------------------------------------- /example/stm32l0/hello.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/example/stm32l0/hello.c -------------------------------------------------------------------------------- /src/arm/CMSIS/Device/ST/STM32L0xx/Include/stm32l051xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Device/ST/STM32L0xx/Include/stm32l051xx.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Device/ST/STM32L0xx/Include/stm32l052xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Device/ST/STM32L0xx/Include/stm32l052xx.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Device/ST/STM32L0xx/Include/stm32l053xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Device/ST/STM32L0xx/Include/stm32l053xx.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Device/ST/STM32L0xx/Include/stm32l061xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Device/ST/STM32L0xx/Include/stm32l061xx.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Device/ST/STM32L0xx/Include/stm32l062xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Device/ST/STM32L0xx/Include/stm32l062xx.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Device/ST/STM32L0xx/Include/stm32l063xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Device/ST/STM32L0xx/Include/stm32l063xx.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Device/ST/STM32L0xx/Include/stm32l071xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Device/ST/STM32L0xx/Include/stm32l071xx.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Device/ST/STM32L0xx/Include/stm32l072xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Device/ST/STM32L0xx/Include/stm32l072xx.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Device/ST/STM32L0xx/Include/stm32l073xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Device/ST/STM32L0xx/Include/stm32l073xx.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Device/ST/STM32L0xx/Include/stm32l081xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Device/ST/STM32L0xx/Include/stm32l081xx.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Device/ST/STM32L0xx/Include/stm32l082xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Device/ST/STM32L0xx/Include/stm32l082xx.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Device/ST/STM32L0xx/Include/stm32l083xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Device/ST/STM32L0xx/Include/stm32l083xx.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Device/ST/STM32L0xx/Include/stm32l0xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Device/ST/STM32L0xx/Include/stm32l0xx.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Device/ST/STM32L0xx/Include/system_stm32l0xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Device/ST/STM32L0xx/Include/system_stm32l0xx.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Device/ST/STM32L1xx/Include/stm32l1xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Device/ST/STM32L1xx/Include/stm32l1xx.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Device/ST/STM32L1xx/Include/system_stm32l1xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Device/ST/STM32L1xx/Include/system_stm32l1xx.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Include/arm_common_tables.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Include/arm_common_tables.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Include/arm_const_structs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Include/arm_const_structs.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Include/arm_math.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Include/arm_math.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Include/core_cm0.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Include/core_cm0.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Include/core_cm0plus.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Include/core_cm0plus.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Include/core_cm3.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Include/core_cm3.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Include/core_cm4.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Include/core_cm4.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Include/core_cm7.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Include/core_cm7.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Include/core_cmFunc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Include/core_cmFunc.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Include/core_cmInstr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Include/core_cmInstr.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Include/core_cmSimd.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Include/core_cmSimd.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Include/core_sc000.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Include/core_sc000.h -------------------------------------------------------------------------------- /src/arm/CMSIS/Include/core_sc300.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/CMSIS/Include/core_sc300.h -------------------------------------------------------------------------------- /src/arm/stm32lx/bootloader.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/stm32lx/bootloader.c -------------------------------------------------------------------------------- /src/arm/stm32lx/bootloader_hw.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/stm32lx/bootloader_hw.h -------------------------------------------------------------------------------- /src/arm/stm32lx/bootloader_impl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/stm32lx/bootloader_impl.h -------------------------------------------------------------------------------- /src/arm/stm32lx/boottab.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/stm32lx/boottab.h -------------------------------------------------------------------------------- /src/arm/stm32lx/ld/STM32L0.ld: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/stm32lx/ld/STM32L0.ld -------------------------------------------------------------------------------- /src/arm/stm32lx/ld/STM32L0xx8.ld: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/stm32lx/ld/STM32L0xx8.ld -------------------------------------------------------------------------------- /src/arm/stm32lx/ld/STM32L0xxB.ld: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/stm32lx/ld/STM32L0xxB.ld -------------------------------------------------------------------------------- /src/arm/stm32lx/ld/STM32L0xxZ.ld: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/stm32lx/ld/STM32L0xxZ.ld -------------------------------------------------------------------------------- /src/arm/stm32lx/startup.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/stm32lx/startup.S -------------------------------------------------------------------------------- /src/arm/stm32lx/util.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/stm32lx/util.S -------------------------------------------------------------------------------- /src/arm/unicorn/bootloader.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/unicorn/bootloader.c -------------------------------------------------------------------------------- /src/arm/unicorn/bootloader_impl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/unicorn/bootloader_impl.h -------------------------------------------------------------------------------- /src/arm/unicorn/boottab.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/unicorn/boottab.h -------------------------------------------------------------------------------- /src/arm/unicorn/ld/bootloader.ld: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/unicorn/ld/bootloader.ld -------------------------------------------------------------------------------- /src/arm/unicorn/ld/mem.ld: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/arm/unicorn/ld/mem.ld -------------------------------------------------------------------------------- /src/common/.gitignore: -------------------------------------------------------------------------------- 1 | sha2test 2 | -------------------------------------------------------------------------------- /src/common/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/common/Makefile -------------------------------------------------------------------------------- /src/common/bootloader.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/common/bootloader.h -------------------------------------------------------------------------------- /src/common/lz4.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/common/lz4.c -------------------------------------------------------------------------------- /src/common/lz4.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/common/lz4.h -------------------------------------------------------------------------------- /src/common/sha2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/common/sha2.c -------------------------------------------------------------------------------- /src/common/sha2.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/common/sha2.h -------------------------------------------------------------------------------- /src/common/update.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/common/update.c -------------------------------------------------------------------------------- /src/common/update.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/src/common/update.h -------------------------------------------------------------------------------- /tools/fwtool/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/tools/fwtool/.gitignore -------------------------------------------------------------------------------- /tools/fwtool/signtool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/tools/fwtool/signtool.py -------------------------------------------------------------------------------- /tools/fwtool/zfwtool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/tools/fwtool/zfwtool.py -------------------------------------------------------------------------------- /tools/shavs/shabytetestvectors.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/tools/shavs/shabytetestvectors.zip -------------------------------------------------------------------------------- /tools/shavs/shavs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorabasics/basicloader/HEAD/tools/shavs/shavs.py --------------------------------------------------------------------------------