start debug

This commit is contained in:
Scott Shawcroft 2018-11-12 13:59:29 -08:00
parent 7b4521f039
commit 47212ee31e
No known key found for this signature in database
GPG Key ID: FD0EDC4B6C53CA59
2 changed files with 3 additions and 3 deletions

View File

@ -78,8 +78,8 @@ CFLAGS += -DCFG_TUSB_MCU=OPT_MCU_NRF5X -DCFG_TUD_CDC_RX_BUFSIZE=1024 -DCFG_TUD_C
#Debugging/Optimization #Debugging/Optimization
ifeq ($(DEBUG), 1) ifeq ($(DEBUG), 1)
#ASMFLAGS += -g -gtabs+ #ASMFLAGS += -g -gtabs+
CFLAGS += -O1 -ggdb CFLAGS += -Os -ggdb
LDFLAGS += -O1 LDFLAGS += -Os
else else
CFLAGS += -Os -DNDEBUG CFLAGS += -Os -DNDEBUG
LDFLAGS += -Os LDFLAGS += -Os

View File

@ -50,7 +50,7 @@ void filesystem_init(bool create_allowed, bool force_create) {
supervisor_flash_init_vfs(vfs_fat); supervisor_flash_init_vfs(vfs_fat);
// try to mount the flash // try to mount the flash
FRESULT res = f_mount(&vfs_fat->fatfs); volatile FRESULT res = f_mount(&vfs_fat->fatfs);
if ((res == FR_NO_FILESYSTEM && create_allowed) || force_create) { if ((res == FR_NO_FILESYSTEM && create_allowed) || force_create) {
// No filesystem so create a fresh one, or reformat has been requested. // No filesystem so create a fresh one, or reformat has been requested.