GNU C/C++ HelloWorld
This chapter covers the basics of C/C++ embedded projects including creating, building, running, and debugging embedded applications. The project referred to in this chapter is called “Hello World.” This application prints “Hello World” text and runs a simple for-loop as a simple demonstration. The application can also be built and run on QEMU emulator.
Note: To build, run and debug Embedded applications with QEMU emulator, please install the xplor-studio-elf blueprint first. Please refer to Guidelines for more information.
Create a new project
Select File > New > C Project choose RISC-V Embedded Project > RISC-V Helloworld project and Toolchains: Baremetal XploR Toolchain for RISC-V then click Next.
In the next screens, the user can specify project options such as Author, copyright notice, project description, compiler, assembler, linker, and run/debug options. Then click the Next button.
Then click Next to select Vendor Information. From the list, User can select one platform and one core to run/debug.
Then click Finish.
Update build settings
The build setting is the same as the quick-start project’s settings. Please refer to Update build settings for more information.
Build project
The build step is the same as the quick-start project’s step. Please refer to Build project for more information.
Running and Debugging project with QEMU emulator
The running and debugging step is the same as the quick-start project’s step. Please refer to Running and Debugging project with QEMU emulator for more information.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.