diff --git a/Makefile.include b/Makefile.include index a6faea4790..884e722cd2 100644 --- a/Makefile.include +++ b/Makefile.include @@ -687,6 +687,12 @@ usb_id_check: $(COLOR_ECHO) "$(COLOR_RED)Private testing pid.codes USB VID/PID used!, do not use it outside of test environments!$(COLOR_RESET)" 1>&2 ; \ $(COLOR_ECHO) "$(COLOR_RED)MUST NOT be used on any device redistributed, sold or manufactured, VID/PID is not unique!$(COLOR_RESET)" 1>&2 ; \ fi + @if [ "$(USB_VID) $(subst D,d,$(USB_PID))" = "1209 7d00" ]; then \ + $(COLOR_ECHO) "$(COLOR_RED)RIOT standard peripherals code (1209/7D00) cannot be set explicitly.$(COLOR_RESET)" 1>&2 ; \ + $(COLOR_ECHO) "$(COLOR_RED)Unset USB_VID / USB_PID for the code to be picked automatically, or set$(COLOR_RESET)" 1>&2 ; \ + $(COLOR_ECHO) "$(COLOR_RED)them to \$${USB_VID_TESTING} / \$${USB_PID_TESTING} during development.$(COLOR_RESET)" 1>&2 ; \ + exit 1; \ + fi .PHONY: usb_id_check all: | usb_id_check