3.8 Building the Mi-V Project

To build the Mi-V project, right-click the MiV_uart_blinky project in SoftConsole, and select Build Project.

The project is built successfully, and the HEX file is generated in the Debug folder, as shown in the following figure.

Figure 3-27. HEX File
The HEX file is used for Design and Memory Initialization. For more information, see Configure Design Initialization Data and Memories.
Important: If the user is facing any issues with building the project, ensure that LEGACY_DIR_STRUCTURE is included as a defined symbol in preprocessor in the GNU RISC-V Cross C Compiler, perform the following steps:
  1. Right-click MiV_uart_blinky project, and then go to Properties.
  2. Go to C/C++ Build, click Settings and select GNU RISC-V Cross Compiler > Preprocessor > Defined symbols (-D), and then add LEGACY_DIR_STRUCTURE as shown in the following figure.
    Figure 3-28. Properties for MiV_uart_blinky