http://www.visualmicro.com/post/2013/04/26/How-to-debug-Arduino-on-a-different-usb-serial-port.aspx
ひっかかったのは、SoftwareSerialのピンを指定するときは、Remote RX及びRemote TXは指定して、Remote portは指定しない(空欄にする)。
以下を見ると7と22が空いているのでここにSoftwareSerialを割り当てようかなと思う
ただし、以下を読むと、Arduino Megaでは
10, 11, 12, 13, 14, 15, 50, 51, 52, 53, A8 (62), A9 (63), A10 (64), A11 (65), A12 (66), A13 (67), A14 (68), A15 (69).
にしかSoftwareSerialのRXを割り当てられない
https://www.arduino.cc/en/Reference.SoftwareSerial
以下のデフォルト配線を確認して、
11: RX
16: TX
にしてみた
http://forums.reprap.org/read.php?219,168722
// For RAMPS 1.4 #define X_STEP_PIN 54 #define X_DIR_PIN 55 #define X_ENABLE_PIN 38 #define X_MIN_PIN 3 #define X_MAX_PIN 2 #define Y_STEP_PIN 60 #define Y_DIR_PIN 61 #define Y_ENABLE_PIN 56 #define Y_MIN_PIN 14 #define Y_MAX_PIN 15 #define Z_STEP_PIN 46 #define Z_DIR_PIN 48 #define Z_ENABLE_PIN 62 #define Z_MIN_PIN 18 #define Z_MAX_PIN 19 #define E_STEP_PIN 26 #define E_DIR_PIN 28 #define E_ENABLE_PIN 24 #define SDPOWER -1 #define SDSS 53 #define LED_PIN 13 #define FAN_PIN 9 #define PS_ON_PIN 12 #define KILL_PIN -1 #define HEATER_0_PIN 10 #define HEATER_1_PIN 8 #define TEMP_0_PIN 13 // ANALOG NUMBERING #define TEMP_1_PIN 14 // ANALOG NUMBERING
Visual Studio 2015 + 最新版Visual Microだとビルド&転送できたけど
デバッガからの応答がMarlinの通常のシリアル(G-code送信用)に流れてきてる?
Visual MicroはあきらめてAtmel ICE Basicを使うことにした
http://akizukidenshi.com/catalog/g/gM-08285/