From df40efb5d828002e8d9ab3a13ab1461fbef8f0b1 Mon Sep 17 00:00:00 2001 From: Will Hedgecock Date: Wed, 11 Sep 2024 14:20:05 -0500 Subject: [PATCH] Change -fno-omit-frame-pointer flag since it was causing weird bugs --- software/firmware/Makefile | 6 +++--- software/management/dashboard/tottag.py | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/software/firmware/Makefile b/software/firmware/Makefile index 6dccc884..20bd2bd0 100644 --- a/software/firmware/Makefile +++ b/software/firmware/Makefile @@ -37,9 +37,9 @@ DEFINES += -D_FW_REVISION=$(shell cd ../.. && git log --pretty=format:'%h' -n 1) DEFINES += -DPART_$(PART) DEFINES += -D$(PART_DEF) DEFINES += -D'SEGGER_RTT_SECTION="SHARED_RW"' -DEFINES += -D__USE_FREERTOS__ DEFINES += -DAM_PACKAGE_BGA DEFINES += -DDM_NUM_ADV_SETS=1 +DEFINES += -D__USE_FREERTOS__ DEFINES += -Dgcc DW_LIBRARY := ./src/external/decadriver/libdwt_uwb_driver-m4-hfp-6.0.14.a @@ -254,10 +254,10 @@ DEPS = $(CSRC:%.c=$(CONFIG)/%.d) DEPS+= $(ASRC:%.s=$(CONFIG)/%.d) LIBS = AmbiqSDK/bsp/$(BSP)/gcc/bin/libam_bsp.a -LIBS += AmbiqSDK/mcu/$(PART)/hal/mcu/gcc/bin/libam_hal.a +LIBS+= AmbiqSDK/mcu/$(PART)/hal/mcu/gcc/bin/libam_hal.a CFLAGS = -mthumb -mcpu=$(CPU) -mfpu=$(FPU) -mfloat-abi=$(FABI) -CFLAGS+= -ffunction-sections -fdata-sections -fomit-frame-pointer +CFLAGS+= -ffunction-sections -fdata-sections -fno-omit-frame-pointer CFLAGS+= -MMD -MP -std=c99 -Wall -O0 CFLAGS+= $(DEFINES) CFLAGS+= $(INCLUDES) diff --git a/software/management/dashboard/tottag.py b/software/management/dashboard/tottag.py index 43704309..1e4e1642 100755 --- a/software/management/dashboard/tottag.py +++ b/software/management/dashboard/tottag.py @@ -304,7 +304,6 @@ async def connect_to_tottag(self): self.connected_device = device self.result_queue.put_nowait(('CONNECTED', device_address)) except Exception as e: - traceback.print_exc() self.result_queue.put_nowait(('CONNECTING', False)) self.result_queue.put_nowait(('ERROR', ('TotTag Connection Error', 'Timed out attempting to connect to the specified TotTag'))) self.command_queue.task_done() @@ -318,7 +317,6 @@ async def reconnect_to_tottag(self): self.connected_device = device await self.download_log_continuation() except Exception as e: - traceback.print_exc() self.result_queue.put_nowait(('DISCONNECTED', True)) self.result_queue.put_nowait(('ERROR', ('TotTag Connection Error', 'Timed out communicating with the specified TotTag')))