Commit Graph

547 Commits (4e1c9f0e1f8d39efeae2beb697cded3ee2fe125a)

Author SHA1 Message Date
David Garske 8cb3d33339 Added STM32H5 SPI Driver and support for TPM
Cleanup STM32H5 HAL port.
Refactor `__ARM_FEATURE_CMSE` to `TZ_SECURE()`
Refactor attribute cmse_nonsecure_entry to use new macro `CSME_NSE_API`
Added TPM Non Secure Callable API's
Added TPM support to STM32H5 test application
2025-11-19 16:29:28 +01:00
David Garske ecf1cb8a92 Peer review fixes. Added new WOLFBOOT_RESTORE_CLOCK option 2025-11-19 11:11:28 +01:00
David Garske c2ed553da1 Added Vorago VA416x0 wolfBoot support
Added check on image header size and sector size.
Expanded the ML-DSA testing.
2025-11-19 11:11:28 +01:00
David Garske a559b750b0
Merge pull request #629 from danielinux/sim-dualbank
Add simulator support for DUALBANK, test bank swap
2025-11-10 08:25:19 -08:00
David Garske 79fa066e5c Fix for the STM32 internal flash erase page selection mask (some variants have larger sizes) 2025-11-10 13:51:04 +01:00
Daniele Lacamera 10a0c0bfa0 Add simulator support for DUALBANK, test bank swap 2025-11-03 11:21:22 +01:00
gojimmypi f198c6ba49
Hard fail if the wrong user settings is detected 2025-10-31 11:11:05 -07:00
Mattia Moffa 07bb1e1d88 Change START to STRT to be consistent with official name 2025-10-30 20:32:17 +01:00
Mattia Moffa 61f1710ba8 Fix STM32H5 dualbank update 2025-10-30 20:27:49 +01:00
David Garske c6776bc097 Improvements to lib-fs status and added keystore. Added some useful logging/debugging 2025-10-30 16:31:27 +01:00
David Garske 4d0106caee Fixes for build warnings 2025-10-30 16:31:27 +01:00
David Garske c4b1422307 Fix build error with MMU defined. 2025-10-30 16:31:27 +01:00
Juliusz Sosinowicz 2345138a1b Implement filesystem-based partition state access and CLI tools
- Add filesystem access implementation in HAL (`hal/filesystem.c`)
- Introduce new library_fs target and build rules for filesystem-backed partition management
- Provide example configuration for library_fs
- Add CLI application (`hal/library_fs.c`) to query and manage partitions
- Update documentation with usage instructions and build steps for the new CLI tool
- Update .gitignore
2025-10-30 16:31:27 +01:00
Mattia Moffa 177358e88d Update H5 app to use new NSC API
- Make the update and swap partitions secure and inaccessible from the
  app except via NSC API
- Add a couple of necessary new NSC functions
- Update the app to only use NSC API
- Fix hal_flash_erase to account for secure addresses
- Fix some bugs in xmodem implementation
2025-10-29 00:13:01 +01:00
Mattia Moffa fd2c81a1f8 Fix H5 erase bug 2025-10-24 18:09:57 +02:00
Mattia Moffa fdcd7be322 Don't use hardcoded value; add comment 2025-10-23 22:41:20 +02:00
Mattia Moffa 58baba21e0 Fix STM32H5 update 2025-10-23 21:52:42 +02:00
Brett Nicholas 4dd932ed06 fixes for new wolfHSM 2025-10-20 14:28:59 -06:00
gojimmypi fbd8dcf8a2
Update Copyright year to 2025 2025-10-15 11:33:53 -07:00
David Garske 456c3b495f
Merge pull request #606 from bigbrett/tc3-uart-quickfix
TC3: UART quickfix
2025-10-10 11:19:46 -07:00
David Garske f7d526057a Fixes to resolve STM32H5 TrustZone example. Thank you @danielinux 2025-10-10 19:42:20 +02:00
David Garske 5d27adaf07 Improve linker script logic on STM32H5. 2025-10-10 19:42:20 +02:00
David Garske b1ff1e36eb Minor improvements. STM32H5 non-secure flash watermark. Fixing layout of linker script. Still getting fault on calls to smse functions like `wcs_get_random`. 2025-10-10 19:42:20 +02:00
David Garske 7f193af97d Fixes for STM32H5 TrustZone and PKCS11 store 2025-10-10 19:42:20 +02:00
Brett Nicholas 4761410c36 TC3: add final printout and block on TC flag 2025-10-10 11:33:12 -06:00
David Garske 8ef41994c7
Merge pull request #604 from bigbrett/tc3xx-wolf-startup-integration
TC3xx: Replace IDE/AURIX project with new HAL module
2025-10-09 10:16:16 -07:00
Brett Nicholas aa21f7c56c add license files 2025-10-08 14:38:24 -06:00
Brett Nicholas 42cf7e9b70 TC3xx: Replace IDE/AURIX project with new HAL module 2025-10-08 11:03:44 -06:00
Daniele Lacamera d6ba220e55 [rp2350] Added cache in RAM for hal_flash_write 2025-09-05 14:45:35 +02:00
Daniele Lacamera 4dd87d766c Fixed missing long_call attribute, hal erase/write
Fix definition of secure/non-secure flash areas

+ other minor fixes
2025-07-31 15:49:20 +02:00
Brett Nicholas 1febfd906e unify global HAL names between server/client, update docs 2025-06-25 12:17:39 +02:00
Brett Nicholas c106d92a48 wolfHSM server support with X509 auth 2025-06-25 12:17:39 +02:00
David Garske 1712edc136 Add support for PowerPC 32-bit SHA256 assembly speedups. Minor fix for ELF loading to set entry point before copying sections (resolves issue with loading on top of current location). Rename elf_load_image_mmu argument `entry` to `pentry` to avoid confusion with GET_H64 macro's use of header member "entry". 2025-06-24 19:02:49 +02:00
Alex Lanzano 1b37378a80 Fix shift overflow issue in stm32 uart driver 2025-06-21 15:02:24 -04:00
Alex Lanzano 10faed06a4 Update stm32f4 hal to use config options to setup clock and uart
Modifies the stm32f4 hal to use the new config options to configure the
PLL clock. This also modifies the stm32f4 uart driver to allow the user
to specify which uart they want to use via the config option.
2025-06-21 14:54:04 -04:00
Marco Oliverio 1151f5ffda pic32c: flash: check done flag after operations 2025-06-19 17:03:06 +02:00
Marco Oliverio 3a5bffaaf1 pic32c: fix buffer alignment issues in flash driver 2025-06-19 17:03:06 +02:00
David Garske 79cef5f605 Peer review fixes (thank you Copilot). 2025-06-16 19:05:49 +02:00
David Garske 8e6b0af105 Added Renesas RX TSIP encrypted updates support using AES CTR. Requires https://github.com/wolfSSL/wolfssl/pull/8854 2025-06-16 19:05:49 +02:00
David Garske 9451b47628 Fix for Renesas TSIP key types. Fix for Renesas RX .keystore location in linker script. Fix for wolfBoot as library with Renesas to make sure crypto hardware is initialized and setup. Add forced alignment on additional buffers used for flash read/write. 2025-06-16 19:05:49 +02:00
Marco Oliverio 6e8870156e address reviewer comments 2025-06-09 16:29:31 +02:00
Marco Oliverio e3c7f6c663 hal: clean hal tests and PIC32C*.ld linker script 2025-06-09 16:29:31 +02:00
Marco Oliverio 1b9ec09b1a fix reviewer's comments 2025-06-09 16:29:31 +02:00
Marco Oliverio 16c160146f hal: add additional flash hal tests 2025-06-09 16:29:31 +02:00
Marco Oliverio 2d6cf95c20 add support for PIC32CZ and PIC32CK 2025-06-09 16:29:31 +02:00
Brett Nicholas d689656a71 Add support for wolfHSM cert chain verification on TC3xx 2025-05-30 11:15:56 -06:00
Brett Nicholas 38d1441627 copilot review feedback 2025-05-28 09:37:14 -06:00
Brett Nicholas 7660bf66f8 Add wolfHSM cert chain verification for ECC and RSA 2025-05-27 15:42:59 -06:00
Brett Nicholas d49e507926 - Support external flash for elf scatter-loading
- Support ELF scatter-loading on TC3xx
- Modify TC3xx HAL flash erase to support arbitrary offsets and sizes
- Realign partition size and addresses to support more efficient sector mass erase on update
2025-05-08 08:50:26 -06:00
Brett Nicholas 21a726ab46 fix tc3xx HAL to properly handle flash writes across sector boundariese 2025-04-30 11:48:40 +02:00