Skip to content

Commit

Permalink
Change -fno-omit-frame-pointer flag since it was causing weird bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
hedgecrw committed Sep 11, 2024
1 parent 6b51fc3 commit df40efb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions software/firmware/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions software/management/dashboard/tottag.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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')))

Expand Down

0 comments on commit df40efb

Please sign in to comment.