Commit Graph

350 Commits (fce6149cf8df011484da689d064ef1909e18cddc)

Author SHA1 Message Date
David Garske 485253f305 Fix build error with macro typo. 2019-12-20 19:08:31 +01:00
David Garske 79277d60ce Progress on expanding STM32WB testing support. Including external SPI/TPM and RSA. Fixes to prevent STM32WB macro collisions with PKA. Makefile improvements for combinations of PKA, SIGN and WOLFTPM. 2019-12-20 19:08:31 +01:00
Daniele Lacamera 25455744b6 Make Stm32 SPI driver more generic to reuse on other STM32 platforms 2019-12-20 19:08:31 +01:00
David Garske 515c4a015a Fix for external SPI CS for STM32F4. 2019-12-17 13:07:13 -08:00
David Garske 041ca75793 Added support for TPM2.0 module via wolfTPM. Tested with STM32F4. Build using `make SIGN=ECC256 WOLFTPM=1`. 2019-12-17 10:59:11 -08:00
David Garske fae6a974c8 Adds RSA support to wolfBoot using "SIGN=RSA2048". Includes RSA signing script tool in Python and instructions. 2019-12-17 09:44:02 -08:00
David Garske d146193615 Support for STM32H7. 2019-12-16 14:44:45 -08:00
Daniele Lacamera f1d983cbb6 Added missing file for stm32wb55 hal configuration 2019-11-13 09:17:32 +01:00
Daniele Lacamera 0b822cefbb Fixes to kinetis K82F 2019-11-11 14:27:16 -08:00
Daniele Lacamera c78f0d7026 Added support for STM32 PKA 2019-11-11 15:06:04 +01:00
Daniele Lacamera ca9ffbab7c Configuration (via .config), single entry point for options 2019-10-10 20:39:25 +02:00
Daniele Lacamera 3bd71fa96e Fixed erase page size and PG bit 2019-07-30 14:16:03 -07:00
Daniele Lacamera f9f10cb099 Added support for STM32WB 2019-07-30 14:16:03 -07:00
Daniele Lacamera 34def41dd1 Added support for STM32F7 + DUALBANK_SWAP hw-assisted support 2019-07-17 11:37:43 -07:00
David Garske da467e0ecf Updated wolfSSL sub-module. Enlarged RAM region to 36KB, which is good for any G07x or higher (note G03x or G04x only have 8KB RAM). 2019-07-17 11:35:15 -07:00
David Garske f2be454e08 Fixes for building STM32G0. 2019-07-16 12:04:34 -07:00
Daniele Lacamera 254882c5f2 Added support for STM32G0 (tested on STM32G070-Nucleo) 2019-07-16 08:46:14 -07:00
Daniele Lacamera e016722e66 Added support for STM32L0X3
(firmware update successfully tested on STM32L073)
2019-07-15 08:55:15 -07:00
Daniele Lacamera 88d0e4dcfb HiFive1 eSPI driver: Fixed return-to-hwmode, refactoring hal_flash_write
for short write operations
2019-07-08 19:10:16 +02:00
Daniele Lacamera 93fdc4a848 [hifive1] Flash Frequency set back to 50MHz 2019-06-27 13:11:32 +02:00
Daniele Lacamera 9cc558b7a2 [hifive1] fixed hal_flash_write 2019-06-27 12:40:40 +02:00
Daniele Lacamera e08d282879 [Hifive1 SPI] Changed order of SPI operations/direction changes 2019-06-26 19:24:39 +02:00
David Garske 68b5f67f23 Fix for `hal_flash_write` to use incremented data pointer for page. 2019-06-24 11:11:07 -07:00
David Garske 0a0e8f6a22 Fix for compile warning with operators and parens. 2019-06-24 10:54:47 -07:00
Daniele Lacamera 5c8bad047c Moved hifive1_write_page to separate module 2019-06-20 15:46:47 +02:00
Daniele Lacamera 637ffa9801 hifive hal: switch back to "hw mode" after erase/write operations 2019-06-19 15:56:39 +02:00
David Garske 92ed57832f Fixes for long jump. Targets.md fix for RAM_CODE typo. 2019-06-12 17:25:38 +02:00
David Garske 0f00f8e700 SiFive HiFive (FE310) RISC-V support
* HiFive1 HAL Support for PLL Clock, UART, RTC and Flash QSPI Erase/Write.
* HiFive1 update demo application for accepting firmware updates over UART.
* Added test-update-server application for pushing firmware image over UART.
* Fixes for building with `make SIGN=ECC256`.
* Improvements to wolfCrypt `user_settings.h`.
* General library cleanup (license headers and formatting)
* Updated the wolfSSL submodule to latest.
* Documentation updates including new `Targets.md` section for hardare instructions.
2019-06-07 13:08:15 -07:00
Daniele Lacamera 2ef5e47d61 Added test for bootloader update 2019-04-29 20:32:04 +02:00
Daniele Lacamera fc547e4a25 wolfBoot can update itself when compiled with RAM_CODE=1
- Added wolfBoot version
- Added extra 16bit header tag to identify the image type and authentication
- Implemented optional in-ram self-update of the bootloader, with version control
and authentication mechanism (not fail-safe)
2019-04-29 20:32:04 +02:00
Daniele Lacamera 937e9d46fb Introducing RAMCODE tag to transfer functions to RAM
- Moved functions in the flash write path to RAM, so their execution
does not depend on flash access

- RAMCODE can be enabled via "make RAM_CODE=1"
2019-04-29 20:32:04 +02:00
Daniele Lacamera b918014203 Multi-platform test application, added K82 to Kinetis port 2019-04-04 16:31:45 +02:00
Daniele Lacamera b5fd49a82a Initial experimental support for RISC-V
- New Makefile to support multiple architectures
- Separate architecture-specific start-up files
- Stub for a hifive1 HAL port
2019-04-01 14:01:14 +02:00
Daniele Lacamera da8175b856 stm32f4 SPI-flash: Remove unnecessary delay after CS-off 2019-03-18 12:10:40 +01:00
Daniele Lacamera fcf1985978 STM32F4 Hal: support internal flash up to 1MB 2019-03-18 12:10:03 +01:00
Daniele Lacamera 630a10eafa Automated tests for EXT_FLASH/SPI_FLASH 2019-03-15 11:16:34 +01:00
Daniele Lacamera 8eb8374795 Added NVM_FLASH_WRITEONCE compile option. Optimized write in kinetis HAL. 2019-03-10 12:40:21 +01:00
Daniele Lacamera 472cdd07b3 Kinetis hal: removed clock settings from libwolfboot 2019-03-10 09:49:14 +01:00
Daniele Lacamera 8a8875fc05 Added support for Kinetis SDK 2019-03-05 20:35:04 +01:00
Daniele Lacamera 6b5b1ed854 Added support for Texas Instrument cc26x2 2019-02-25 09:20:33 +01:00
Daniele Lacamera 503b008cf5 New feature: allow swapping from external memory (e.g. SPI flash) 2019-02-15 13:41:06 +01:00
Daniele Lacamera aa2abc8da2 Fixed Sam-R21 hal_flash_write() 2019-01-27 14:44:33 +01:00
Daniele Lacamera f4f65ae31d Added support for ATMEL SAM-R21 2019-01-08 09:08:46 +01:00
Daniele Lacamera ab35c7f8fe Fixed image swap, tested fail-recovery from interrupted update 2018-11-28 21:37:39 +01:00
Daniele Lacamera 1f196bd64c Major bug fixes in new update code 2018-11-27 07:37:40 +01:00
Daniele Lacamera 24f8c091ac Fixed nrf52 hal for unaligned byte write operations 2018-11-22 18:52:13 +01:00
Daniele Lacamera c5f644f97e Fixed nrf52 flash access 2018-10-25 08:19:54 +02:00
Daniele Lacamera 7f02df51c9 Added SWAP=0 option, fixed some warnings 2018-10-21 10:04:50 +02:00
Daniele Lacamera 34a8ae443d Added NO_VTOR to disable interrupt table relocation 2018-10-20 10:46:07 +02:00
Daniele Lacamera ec66c47375 First version of the bootloader 2018-10-11 12:23:58 +02:00