This example is compiled with the c++ compiler options. It does driver and board initialization and prints the string, Hello World! on UART console.
Parameter | Value |
---|---|
CPU + OS | mcu-r5fss0-0 nortos |
mcu-r5fss0-0 freertos | |
Toolchain | ti-arm-clang |
arm.gnu.aarch64-none | |
Board | am62px-sk |
Example folder | examples/empty/ |
Shown below is a sample output when the application is run,
In this example the "hello_world.cpp" and "main.cpp" files are built with the c++ compiler flags. The example will link with the prebuilt mcu sdk libs.
Below are the flags used for the files to build with c++ flags along with the other flags used for c files.
The pre built libs provided in mcu sdk are built with the c flags. However the application can re build the libs using the c++ flags. The application needs to pass the below additional flag for the make commands used for building libs
note: Before re building the libs you need to clean all the pre built libs.
Hello world cpp example is provided as referance to building application using c++ flags. If you want to build the application using the c++ flags please refer the makefile In the makefile the files with extn .cpp are compiled with the c++ flags and files with .c extn are compiled with c flags.