Skip to content

Commit 92f82e3

Browse files
committed
Add support for picocom as a monitor
1 parent 9629867 commit 92f82e3

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

Arduino.mk

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,14 +1488,16 @@ show_boards:
14881488
@$(CAT) $(BOARDS_TXT) | grep -E '^[a-zA-Z0-9_]+.name' | sort -uf | sed 's/.name=/:/' | column -s: -t
14891489

14901490
monitor:
1491-
ifneq ($(MONITOR_CMD), 'putty')
1492-
$(MONITOR_CMD) $(call get_monitor_port) $(MONITOR_BAUDRATE)
1491+
ifeq ($(MONITOR_CMD), 'putty')
1492+
ifneq ($(strip $(MONITOR_PARMS)),)
1493+
$(MONITOR_CMD) -serial -sercfg $(MONITOR_BAUDRATE),$(MONITOR_PARMS) $(call get_monitor_port)
1494+
else
1495+
$(MONITOR_CMD) -serial -sercfg $(MONITOR_BAUDRATE) $(call get_monitor_port)
1496+
endif
1497+
else ifeq ($(MONITOR_CMD), picocom)
1498+
$(MONITOR_CMD) -b $(MONITOR_BAUDRATE) $(MONITOR_PARAMS) $(call get_monitor_port)
14931499
else
1494-
ifneq ($(strip $(MONITOR_PARMS)),)
1495-
$(MONITOR_CMD) -serial -sercfg $(MONITOR_BAUDRATE),$(MONITOR_PARMS) $(call get_monitor_port)
1496-
else
1497-
$(MONITOR_CMD) -serial -sercfg $(MONITOR_BAUDRATE) $(call get_monitor_port)
1498-
endif
1500+
$(MONITOR_CMD) $(call get_monitor_port) $(MONITOR_BAUDRATE)
14991501
endif
15001502

15011503
disasm: $(OBJDIR)/$(TARGET).lss

0 commit comments

Comments
 (0)