Daniele Lacamera
2ec2bcdf79
Fixed flag comparison selecting most recent flags
2024-07-17 08:55:14 +02:00
David Garske
3444c47fdb
* Added support for RX65N and RX72N with native Makefile and RX ELF GCC compiler.
...
* Added initialization of the clocks and UART driver.
- wolfBoot uses on chip high speed oscillator (HOCO) at (120MHz RX65N and 240Mhz for RX72N).
* Added RX RSPI and QSPI driver support with external SPI flash
* Improve documentation and fix spelling errors.
* Added .srec (s-record) format support
* Added RX TSIP support for ECDSA (requires https://github.com/wolfSSL/wolfssl/pull/7685 ).
* Allow custom implementation of `get_trailer_at`, `set_trailer_at` and `set_partition_magic` using `CUSTOM_PARTITION_TRAILER`
2024-07-17 06:08:31 +02:00
David Garske
35db4cf388
Merge pull request #469 from danielinux/nvm-unit-tests
...
New unit tests for NVM_FLASH_WRITEONCE, fix bug in offset calculation
2024-07-16 10:02:09 -07:00
Daniele Lacamera
8f0c090b69
Unit tests for memory blob parsers
2024-07-16 17:37:01 +02:00
Daniele Lacamera
a7668842c7
Remove silencer for -Warray-bounds
2024-07-16 17:18:41 +02:00
Daniele Lacamera
80fa66fe44
Added more tests
2024-07-16 17:13:05 +02:00
Daniele Lacamera
230174e2f7
nvm_select_fresh_sector: fix flag offset
...
The offset for the sector flags position to compare the two
redundant blocks with NVM_FLASH_WRITEONCE mode was wrong, resulting
in a negative offset, which in turn caused an out-of-bound access
outside of the UPDATE partition space.
2024-07-16 16:16:46 +02:00
Daniele Lacamera
dd4bd8e91a
Added new unit tests for NVM_FLASH_WRITEONCE
2024-07-16 16:06:54 +02:00
David Garske
b9dc7eee46
Merge pull request #463 from jpbland1/bad-image-recovery
...
add emergency fallback test, currently fails due to
2024-07-10 14:08:48 -07:00
John Bland
6c3940fafc
refactor final step of powerfail safe update and add
...
emergency fallback test
2024-07-10 16:58:23 -04:00
JacobBarthelmeh
eedd86f5ba
Merge pull request #455 from danielinux/stm32h5_uart
...
STM32H5 UART Demo
2024-07-09 21:48:25 -06:00
David Garske
1854383462
Do not enable OTP write protect unless `ENABLE_OTP_WP=1` is passed during make.
2024-07-09 16:18:08 -07:00
David Garske
463cc32b7d
Further documentation cleanups.
2024-07-09 14:07:24 -07:00
David Garske
fbc6f02dea
More documentation updates. Cleanups in the otp-keystore-gen.
2024-07-09 13:26:12 -07:00
David Garske
e89a10d21b
Minor documentation updates.
2024-07-09 12:43:54 -07:00
David Garske
750c8f6ace
Define a generic max OTP size to appease otp_keystore.h
2024-07-09 10:49:28 -07:00
David Garske
ace95cc2dc
Added instructions for STM32H5 demo to `docs/flash-OTP.md`.
2024-07-09 10:27:52 -07:00
Daniele Lacamera
11ce50f6c1
Removed debug print, added PKCS11_SMALL, fixes
2024-07-09 10:22:43 -07:00
David Garske
16bdc19914
Fixes for building STM32H5 without PKCS11.
2024-07-09 10:22:43 -07:00
David Garske
0d41724395
Fix for STM32H5 without OTP keystore `FLASH_OTP_KEYSTORE=0`.
2024-07-09 10:22:43 -07:00
David Garske
4e6e81c509
Don't hide the bank swap registers behind `DUALBANK_SWAP`.
2024-07-09 10:22:43 -07:00
Daniele Lacamera
0fb1f81c0a
STM32H5 Test app: improved console
2024-07-09 10:22:43 -07:00
Daniele Lacamera
9b61f8923b
Fixed update + write to the right bank
2024-07-09 10:22:42 -07:00
Daniele Lacamera
4f50f423a8
Take into account bank swapping on erase.
...
Fixes update demo.
2024-07-09 10:22:42 -07:00
Daniele Lacamera
107247f0fb
Fix xmodem packet number sync
2024-07-09 10:22:42 -07:00
Daniele Lacamera
9d563ae60f
Added XMODEM update
2024-07-09 10:22:42 -07:00
Daniele Lacamera
aff2072694
Demo app: added test, benchmark, other gadgets
2024-07-09 10:22:42 -07:00
Daniele Lacamera
34d5ec15ea
Fixed UART devices in NS-mode, fixed H5 clock
2024-07-09 10:22:42 -07:00
Daniele Lacamera
059868ec45
STM32H5 uart support, work in progress
2024-07-09 10:22:42 -07:00
David Garske
78c9e11203
Merge pull request #468 from danielinux/otpgen
...
Add command line tool to generate otp.bin
2024-07-09 10:21:08 -07:00
Daniele Lacamera
c6586f2d85
test: Delete keystore after removing private key
2024-07-09 18:59:17 +02:00
Daniele Lacamera
4f5e168350
Moved keystore.c overwrite check
2024-07-09 18:03:51 +02:00
Daniele Lacamera
46f0d87946
test: revert keystore.c overwrite check
2024-07-09 17:42:58 +02:00
Daniele Lacamera
8f41132ca3
Added more verbosity to key import failure error
2024-07-09 16:31:18 +02:00
Daniele Lacamera
398c660827
External key test: cleanup keystore.c before importing
2024-07-09 16:01:13 +02:00
Daniele Lacamera
b59f11bc88
Integrated documentation for otpgen
2024-07-09 09:35:14 +02:00
Daniele Lacamera
2082bd003c
Avoid to silently overwrite keystore.c
2024-07-09 09:28:40 +02:00
Daniele Lacamera
213315507c
Add command line tool to generate otp.bin
2024-07-09 08:42:33 +02:00
David Garske
626fcf01b9
Merge pull request #466 from danielinux/delta_base_version_fix
...
Bugfix: delta update not rejecting wrong base_version
2024-07-05 11:02:24 -07:00
Daniele Lacamera
32d6592e50
Fixed regression on powerfail resume
2024-07-04 18:19:02 +02:00
Daniele Lacamera
68f3bfad58
Take into account resumed delta updates due to powerfail events
2024-07-04 17:31:17 +02:00
Daniele Lacamera
929f9d3343
Fix base_version mismatch
2024-07-04 17:27:04 +02:00
Daniele Lacamera
597ca3a406
Added test to reproduce "wrong delta base version" bug
2024-07-04 17:14:36 +02:00
David Garske
40ccd9ea22
Merge pull request #464 from MulattoKid/flexspi_safe
...
Fix DCache not being invalidated after erasing/writing to flash on i.MX RT10xx
2024-07-03 15:11:16 -07:00
David Garske
83359a2b1e
Added RT1062 EVKB support and tested on real hardware. Updated documentation.
2024-07-03 14:58:04 -07:00
David Garske
de9a3cd0bf
Fix with PKA=1 were fsl_cache is added twice.
2024-07-03 14:52:16 -07:00
David Garske
f60de60195
Merge pull request #465 from danielinux/azure-keyvault-docs
...
Added documentation for signing with Azure Key Vault
2024-07-03 13:25:43 -07:00
David Garske
06c5280211
Minor doc fixes.
2024-07-03 11:48:17 -07:00
Daniele Lacamera
57796c25ac
Added documentation for signing with Azure Key Vault
2024-07-03 19:46:00 +02:00
Daniel Fedai Larsen
74270cdc56
Add fsl_cache to test-app
2024-07-03 07:44:54 +02:00