While QM can be used to generate an Arduino project, all mechanical details are embedded/hidden. There is no way you can create a QM Arduino from scratch, you will have to re-use an existing QM/Arduino project, save it to another folder under another name, and modify that one. You will use the ICON tool "Generate Code" from inside QM to generate the ".ino" Arduino project. This brings a problem: Arduino embedded settings inside QM are going to mess-up the name in the new folder, it will appear with the old name, in this case "blinky", even if the new folder/project name is "00001_blinky". Oops! Arduino is quirky, must have identical new names...
This is the temporary fix I implemented trough QM external tools definition (Windows 10):
Manage External Tools
Environment Variables:
PROJECT 00001_blinky
ARDUINO_HOME D:\work\programs\Arduino
ARDUINO_SKETCHBOOK D:\work\projects\QM\Windows_arduino
BOARD_MCU atmega2560
BOARD_VARIANT standard
BOARD_F_MHZ 16
BOARD_COM COM3
BOARD_BAUD 115200
External Tools > generate code
Icon: (4)
Title: replace Arduino file
Command cmd.exe
Arguments: /C del /F /Q %PROJECT%.ino && move .ino %PROJECT%.ino
Working Directory: .
[_] Generate code before launching
[X] Show error message box after failure
[_] Start as detached from QM
External Tools > verify and upload
Icon: (7)
Title: verify and upload
Command "%ARDUINO_HOME%\arduino_debug.exe"
Arguments: --upload --verbose %PROJECT%
Working Directory: .
[_] Generate code before launching
[X] Show error message box after failure
[_] Start as detached from QM
External Tools > serialterm
Icon: (9)
Title: serialterm
Command "%ARDUINO_SKETCHBOOK%\tools\utils\serialterm.exe"
Arguments: %BOARD_COM% %BOARD_BAUD%
Working Directory:
[_] Generate code before launching
[_] Show error message box after failure
[X] Start as detached from QM
External Tools > delete Arduino files
Icon: (6)
Title: clean all
Command cmd.exe
Arguments: /C del /F /Q *.ino
Working Directory: .
[_] Generate code before launching
[X] Show error message box after failure
[_] Start as detached from QM
Save > File > Save Model
Anonymous
The newer versions of QP-Arduino integration changed the policy of building the project and no longer rely on building the code or uploading the code from QM. Instead, the the newer QP-Arduino integrations rely on the Arduino IDE to perform these functions.
The code could be still generated automatically from the QM model, and it is recommended to set the Arduino IDE into the "use external editor" mode. That way the Arduino IDE will pick up all code changes from QM.
This problem is closed is no longer relevant.
--MMS