From 8f6b5f5d6a3e3dc83d95f73d7bd68030f91eac87 Mon Sep 17 00:00:00 2001 From: srningap <107042150+srningap@users.noreply.github.com> Date: Tue, 11 Jul 2023 04:05:52 +0530 Subject: [PATCH] Adds fix 917SoC Apps build failure (#27859) --- examples/platform/silabs/SiWx917/BUILD.gn | 1 + examples/platform/silabs/SoftwareFaultReports.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/examples/platform/silabs/SiWx917/BUILD.gn b/examples/platform/silabs/SiWx917/BUILD.gn index 9c1e3a60bd4e42..392663f7b16624 100644 --- a/examples/platform/silabs/SiWx917/BUILD.gn +++ b/examples/platform/silabs/SiWx917/BUILD.gn @@ -248,6 +248,7 @@ source_set("siwx917-common") { sources = [ "${silabs_common_plat_dir}/LEDWidget.cpp", + "${silabs_common_plat_dir}/SoftwareFaultReports.cpp", "${silabs_common_plat_dir}/heap_4_silabs.c", "${silabs_common_plat_dir}/silabs_utils.cpp", "${silabs_common_plat_dir}/syscalls_stubs.cpp", diff --git a/examples/platform/silabs/SoftwareFaultReports.cpp b/examples/platform/silabs/SoftwareFaultReports.cpp index d7557fdc7e41f1..89015dc2e47b7f 100644 --- a/examples/platform/silabs/SoftwareFaultReports.cpp +++ b/examples/platform/silabs/SoftwareFaultReports.cpp @@ -34,6 +34,10 @@ #endif #endif // BRD4325A +#ifdef BRD4325A // For SiWx917 Platform only +#include "core_cm4.h" +#endif + // Technically FaultRecording is an octstr up to 1024 bytes. // We currently only report short strings. 100 char will more than enough for now. constexpr uint8_t kMaxFaultStringLen = 100;