File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -141,31 +141,31 @@ SRC_S += supervisor/cpu.s \
141
141
$(STARTUPFILE )
142
142
143
143
# Needed to compile some MAX32 headers
144
- CFLAGS += -D$(MCU_VARIANT_UPPER ) \
144
+ CFLAGS += -D$(MCU_VARIANT_UPPER ) \
145
145
-DTARGET_REV=0x4131 \
146
146
-DTARGET=$(MCU_VARIANT_UPPER ) \
147
147
-DIAR_PRAGMAS=0 \
148
148
-DRISCV_LOAD=0 \
149
149
-DCONFIG_TRUSTED_EXECUTION_SECURE=0
150
150
151
151
# todo: add these for linkerfiles later on so that it's easier to add new boards
152
- # -DFLASH_ORIGIN=0x10000000 \
153
- # -DFLASH_SIZE=0x340000 \
154
- # -DSRAM_ORIGIN=0x20000000 \
155
- # -DSRAM_SIZE=0x100000
152
+ # -DFLASH_ORIGIN \
153
+ # -DFLASH_SIZE \
154
+ # -DSRAM_ORIGIN \
155
+ # -DSRAM_SIZE
156
156
157
157
CPU_CORE =cortex-m4
158
158
CFLAGS += -mthumb -mcpu=$(CPU_CORE ) -mfloat-abi=softfp -mfpu=fpv4-sp-d16
159
159
160
- # NOTE: Start with DEBUG ONLY settings for now
160
+ # NOTE: Start with DEBUG=1 defaults for now
161
161
ifeq ($(DEBUG ) ,)
162
162
DEBUG ?= 1
163
163
endif
164
164
165
165
ifeq ($(DEBUG ) ,1)
166
- COPT = -Og -ggdb3 -Os
166
+ COPT = -ggdb3 -Og -Os
167
167
else
168
- COPT += -Os # opt completely off to start
168
+ COPT += -Os
169
169
endif
170
170
171
171
# TinyUSB CFLAGS
Original file line number Diff line number Diff line change @@ -65,11 +65,14 @@ static uint32_t tick_flag = 0;
65
65
// defined by cmsis core files
66
66
extern void NVIC_SystemReset (void ) NORETURN ;
67
67
68
+ // FIXME: Currently have an issue with time.sleep b/c MXC_Delay uses SysTick,
69
+ // and SysTick ISR isn't happening. Seems that MXC_Delay results in inf. loop
68
70
safe_mode_t port_init (void ) {
69
71
int err = E_NO_ERROR ;
70
72
71
73
// 1ms tick timer
72
74
SysTick_Config (SystemCoreClock / 1000 );
75
+ NVIC_EnableIRQ (SysTick_IRQn ); // FIXME: Test with NVIC Enable here before committing
73
76
74
77
// Enable GPIO (enables clocks + common init for ports)
75
78
for (int i = 0 ; i < MXC_CFG_GPIO_INSTANCES ; i ++ ) {
You can’t perform that action at this time.
0 commit comments