mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-23 07:40:42 +01:00
When running a script with infinite recursion, micropython now throws an error instead of aborting and rebooting the device. Change-Id: Icd409e56de58a48b25b6bdb30eea1e70b344cc14
19 lines
538 B
Makefile
19 lines
538 B
Makefile
TOOLCHAIN ?= arm-gcc
|
|
USE_LIBA = 1
|
|
EXE = elf
|
|
|
|
python/port/port.o: CXXFLAGS += -DMP_PORT_USE_STACK_SYMBOLS=1
|
|
|
|
.PHONY: %_run
|
|
%_run: %.$(EXE)
|
|
$(GDB) -x gdb_script.gdb $<
|
|
|
|
.PHONY: %_flash
|
|
%_flash: %.bin
|
|
@echo "DFU $@"
|
|
@echo "INFO About to flash your device. Please plug your device to your computer"
|
|
@echo " using an USB cable and press the RESET button the back of your device."
|
|
@until dfu-util -l | grep "Internal Flash" > /dev/null 2>&1; do sleep 1;done
|
|
@echo "DFU $@"
|
|
@dfu-util -i 0 -a 0 -s 0x08000000:leave -D $<
|