Escolar Documentos
Profissional Documentos
Cultura Documentos
Triton IDE C/C++ Environment opens as shown in below figure in which you
can create new project, open existing one etc.
To create new project go to Project menu New C Project. You will get
below figure.
o
o
o
o
o
o
o
o
o
o
o
Click Next.
Below screen will appear. Select Debug and Release configurations.
Click Finish.
The project is created and opened in the IDE. You should see the following components:
The Projects window, which contains a tree view of the components of the
project, including source files and properties file that your code depends on. .
The Source Editor window with a file called keypad_main.c open.
q_printf("%s \r\nkey;","Hello");
q_displaylcd("Hello", 5);
while(1)
{
while((key = q_keyread()) == 0);
key = key + 0x30;
q_clrscreen();
q_printf("%x \n", key);
q_displaylcd(&key, 1);
}
}
To build Project right click on keypad project and select Build Project.
Open the build console view to check for any errors as shown in the below figure.
Now that you have built the project, you download executable on target board and run the
program.
Select the appropriate download option and right click on the *.hex file generated
and click Download as shown below.
After successful download of program you can check the application by running it
on target board.
To know more about download options refer to IDE integrated help file by clicking on
Help menu and open Help contents.
Also you can refer Triton IDE user manual.
In Triton IDE you can debug your program by three options:Monitor, Odyssey JTAG and Ethernet.
As per your requirement select appropriate option for debugging and build the
project in debug mode (same step as Release mode)
After compilation download the generated executable and you can now debug the
project.
Right click on the project and select Debug As and click Debug Local C/C++
Application.
Debug environment allows you to debug code using commands Step In, Step Out,
Step over etc. Debug environment also displays disassembly, registers,
breakpoint, variables view.
To know more about debug options refer to IDE integrated help file by clicking on Help
menu and open Help contents.
Also you can refer Triton IDE user manual.