Configure custom Arduino hardware ports for debugging

 

It is possible to add debug support for custom boards that use Serial classes which differ to standard Arduino boards. A local project board.txt can be used to test various settings or the core boards.txt and platform.txt files can be used to apply settings to all boards.

This example reigsters the fact that Serial uses the UsbSerial class and Serial1-3 use USARTSerial

vm.debug.class_type.Serial=VM_DEBUGGER_TYPE_USBSERIAL

vm.debug.class_type.Serial1=VM_DEBUGGER_TYPE_USARTSERIAL

vm.debug.class_type.Serial2=VM_DEBUGGER_TYPE_USARTSERIAL

vm.debug.class_type.Serial3=VM_DEBUGGER_TYPE_USARTSERIAL


Available types are as follows:-

VM_DEBUGGER_TYPE_USBSERIAL
VM_DEBUGGER_TYPE_MS430_SERIAL_
VM_DEBUGGER_TYPE_SERIALUSB
VM_DEBUGGER_TYPE_USBAPI
VM_DEBUGGER_TYPE_NET_UDP
VM_DEBUGGER_TYPE_HARDWARESERIAL3
VM_DEBUGGER_TYPE_HARDWARESERIAL2
VM_DEBUGGER_TYPE_HARDWARESERIAL1
VM_DEBUGGER_TYPE_CDCSerialClass
VM_DEBUGGER_TYPE_Uart
VM_DEBUGGER_TYPE_TTYUART
VM_DEBUGGER_TYPE_USBSERIAL
VM_DEBUGGER_TYPE_USART
VM_DEBUGGER_TYPE_UART
VM_DEBUGGER_TYPE_TEENSY
VM_DEBUGGER_TYPE_USB
VM_DEBUGGER_TYPE_HARDWARESERIAL (default)