Download SAM4CP16C USER GUIDE
Transcript
Figure 6-5. The IAR Embedded Workbench window. Menu bar Toolbar Editor window Workspace window Message window Status bar Let’s have a closer look to the environment now. Basically, the environment is split into five different areas: Editor window: allows you to edit the source files. Workspace window: shows the project structure. Message window: displays messages from the compiler. The Menu bar lets us the menu commands. The IDE toolbar—available from the View menu—provides buttons for the most useful commands on the IDE menus, and a text box for typing a string to do a quick search. The Status bar at the bottom of the IAR Embedded Workbench IDE main window —available from the View menu— contains useful help about how to arrange windows that they can be enabled from the View menu. Open the G3-PLC workspace for SAM4CP16C platform, sam4cp16c_PLC_examples.eww. For that, on the start page, click on File>Open>Project/Solution. And select the project in the folder: “.\Software\G3_va.b.c_CENELEC\g3.workspace.sam4cp16c_sam4cp16cmb\thirdparty\g3\apps\apps_ workspace_sam4cp16c_sam4cp16cmb\iarew_workspace\sam4cp16c_PLC_examples.eww”. Once you have loaded the workspace, you can see the three G3-PLC PHY example projects and both G3-PLC DLMS applications. Open the APPS_DLMS_EMU_COORD project. And now, you can see the G3 PHY project structure (expand the tree structure) in the workspace window. That structure is showed in the previous figure. 6.1.6.1 Building, programming and debugging a project with IAR Now you can create, build, program and debug the Atmel G3-PLC Examples using the IAR. But before to do this, you can configure and customize your project as you want; i.e., adding the Output window, show the line numbers, change the language options, etc. Tool Output window is available by choosing View>Messages>Tool Output. The Tool Output window displays any messages output by user-defined tools in the Tools menu, provided that you have selected SAM4CP16C-EK Kit User Manual [USER GUIDE] Atmel-43086C-ATPL-SAM4CP16C-EK-Kit-User-Manual-UserGuide_23-Sep-2015 35 3 5