ch32v208 add ota, need to debug
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
SRC_FILES := boot.S interrupt.c tick.c switch.S prepare_rhwstack.c interrupt_switch.S ble_task_scheduler.S
|
||||
SRC_FILES := boot.S interrupt.c tick.c switch.S prepare_rhwstack.c interrupt_switch.S
|
||||
ifeq ($(CONFIG_BSP_USING_BLE),y)
|
||||
SRC_FILES += ble_task_scheduler.S
|
||||
endif
|
||||
SRC_DIR := Core User Debug
|
||||
# interrupt_switch.S
|
||||
include $(KERNEL_ROOT)/compiler.mk
|
||||
|
||||
@@ -268,7 +268,11 @@ handle_reset:
|
||||
csrw mtvec, t0
|
||||
|
||||
jal SystemInit
|
||||
#ifdef __BOOTLOADER /* BOOT */
|
||||
la t0, ota_entry
|
||||
#else /* APP */
|
||||
la t0, entry
|
||||
#endif /* BOOT */
|
||||
csrw mepc, t0
|
||||
mret
|
||||
|
||||
|
||||
Reference in New Issue
Block a user