AVR App Custom Editor

Ahe AVR App mode is selected using a custom editor.

../../../../_images/avr-app.png

Operation Modes :

AVRSleep

../../../../_images/AVR-SLEEP.png

The AVR is put into Sleep mode and doesn’t participate in the runtime.

Arduino IDE Monitor Mode

The Project directory is monitored for the <projectName>.ino.standard.hex hex file that is exported using the Export compiled Binary from the Arduino IDE. The hex file is loaded into the virtual Arduino when a project is launched and also when changes to the hex file are made during virtualization.

To load a new HEX file you should use theArduino IDE Tools->Export Compiled Binary option to generate a new HEX file in the project directory

../../../../_images/exporthex.png

The Arduino project should be in the same folder as the Virtual Breadboard project. So for example if you have created a new project called BlinkSim then the Arduino file should also be called BlinkSim.ino. If your project name uses special characters not supported by the Arduino you can also create an Arduino project called ArduinoApp as a subfolder.

The hex file that is loaded for simulation is the same hex file that can be programmed into a standard Arduino UNO, or an Arduino UNO upgraded with the VBBMicro-47K42A328P. Programming is done directly from the Arduino IDE over the USB Serial connection.

When starting in Arduino IDE Monitor mode the Arduino IDE will launch a new session with this BlinkSim.ino file loaded and will start monitoring the project directory for new HEX files.

HEX Monitor Mode

../../../../_images/AVR-HEX.png

HEX Monitor mode allows you to pick a specific HEX file from the file system to monitor. This allows tools other than the Arduino IDE to be used with VBB. Because of Windows Store Applications security you need to first pick the folder the HEX file you want to monitor is in. This gives the VBB App permission to work with the HEX file. Hence, when you select HEX Monitor mode a picker dialog will popup allowing you locate the HEX file.

../../../../_images/hexpicker.png

  1. Click the Browse Button to open a FolderPicker to locate the folder containing the HEX

  2. The available HEX files will apear in the list. Select the HEX file to monitor.

  3. Click OK to monitor the HEX.

Mixed Reality IDE Mode

../../../../_images/AVR-MIX-IDE.png

The project folder is monitored for the standard Arduino IDE output HEX file as per Arduino IDE Monitor Mode. When the HEX file changes the virtualization is restarted and the HEX file is downloaded the real ATMega328p device over the serial Connection.

Mixed Reality IDE Mode

../../../../_images/AVR-MIX-HEX.png

The HEX file as per HEX Monitor Mode. When the HEX file changes the virtualization is restarted and the HEX file is downloaded the real ATMega328p device over the serial Connection.