Files
Upsilon/build/platform.device.mak
Léa Saviot 805bdd1381 [python] Fixed infinite recursion bug.
When running a script with infinite recursion, micropython now throws an
error instead of aborting and rebooting the device.

Change-Id: Icd409e56de58a48b25b6bdb30eea1e70b344cc14
2017-12-01 12:06:05 +01:00

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 $<