From 6ba2a5c259a7abd0eb42c0dba50c167ac538792c Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" <5425387+Ralim@users.noreply.github.com> Date: Mon, 24 Jul 2023 09:07:38 +1000 Subject: [PATCH] BLE crash fixing (Part ?) (#1756) * Remap printf * Help to unify formatting --------- Co-authored-by: discip <53649486+discip@users.noreply.github.com> Co-authored-by: Ivan Zorin --- source/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Makefile b/source/Makefile index 49b86532..3726cce4 100644 --- a/source/Makefile +++ b/source/Makefile @@ -427,7 +427,9 @@ DEV_LDFLAGS=-nostartfiles \ -L $(PINECILV2_BLE_CRAPWARE_BLOB_DIR) \ -L $(PINECILV2_RF_CRAPWARE_BLOB_DIR) \ -l blecontroller_702_m0s1s \ - -l bl702_rf + -l bl702_rf \ + -Wl,--wrap=printf \ + -Wl,--defsym=__wrap_printf=bflb_platform_printf DEV_AFLAGS= DEV_GLOBAL_DEFS=-DCFG_FREERTOS \