From 7a6d14775c637af251104de0ac92fbbe45da6387 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mali=C5=A1a=20Vu=C4=8Dini=C4=87?= Date: Fri, 25 Oct 2024 17:43:37 +0200 Subject: [PATCH] example: fix the compilation target to Cortex-M4F using hard floats This fixes the issue of mismatched binary of Cryptocell310 and the nRF compilation target, making cryptocell310-based backend work in this example, as well. Using now the cryptocell310 backend by default. --- examples/lakers-nrf52840/.cargo/config.toml | 2 +- examples/lakers-nrf52840/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/lakers-nrf52840/.cargo/config.toml b/examples/lakers-nrf52840/.cargo/config.toml index 17616a05..066c5164 100644 --- a/examples/lakers-nrf52840/.cargo/config.toml +++ b/examples/lakers-nrf52840/.cargo/config.toml @@ -3,7 +3,7 @@ runner = "probe-rs run --chip nRF52840_xxAA" [build] -target = "thumbv7em-none-eabi" +target = "thumbv7em-none-eabihf" [env] DEFMT_LOG = "trace" diff --git a/examples/lakers-nrf52840/Cargo.toml b/examples/lakers-nrf52840/Cargo.toml index 1e882943..6a7e5dce 100644 --- a/examples/lakers-nrf52840/Cargo.toml +++ b/examples/lakers-nrf52840/Cargo.toml @@ -34,7 +34,7 @@ cortex-m-rt = "0.7.0" panic-probe = { version = "0.3", features = ["print-defmt"] } [features] -default = [ "crypto-psa", "ead-none" ] +default = [ "crypto-cryptocell310", "ead-none" ] crypto-cryptocell310 = [ "lakers-crypto/cryptocell310" ] crypto-psa = [ "lakers-crypto/psa-baremetal" ] ead-none = [ ]