{"id":335,"date":"2021-07-07T04:36:01","date_gmt":"2021-07-07T04:36:01","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=335"},"modified":"2022-06-09T17:44:11","modified_gmt":"2022-06-09T17:44:11","slug":"lets-get-started-with-vega","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/lets-get-started-with-vega\/","title":{"rendered":"Let\u2019s get started with VEGA"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Overview<\/h2>\n\n\n\n<p>This guide will provide you with a step by step walk-through of running a software on VEGA based development boards.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"prerequisites\">Prerequisites<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"hardware\"><a href=\"https:\/\/reference.digilentinc.com\/learn\/programmable-logic\/tutorials\/zedboard-getting-started-with-zynq\/start#hardware\"><\/a>Hardware<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/vegaprocessors.in\/devboards\/\">ARIES Development Boards<\/a><\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"software\"><a href=\"https:\/\/reference.digilentinc.com\/learn\/programmable-logic\/tutorials\/zedboard-getting-started-with-zynq\/start#software\"><\/a>Software<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/ubuntu.com\/#download\">Ubuntu 18.04\/20.04 Operating system<\/a><\/li><li><a href=\"https:\/\/cdac-vega.gitlab.io\/sdkuserguide\/installing.html#install-vega-tools\">VEGA SDK<\/a><\/li><li><a href=\"https:\/\/cdac-vega.gitlab.io\/sdkuserguide\/installing.html#install-vega-tools\">VEGA Tools<\/a><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Setup VEGA Ecosystem<\/h2>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Gitlab Access<\/strong><\/h5>\n\n\n\n<p>Create a new account\/Login in <a href=\"https:\/\/gitlab.com\/\">gitlab.com<\/a>, Sent a &#8220;Request  Access&#8221; in VEGA repository[ <a href=\"https:\/\/gitlab.com\/cdac-vega\">https:\/\/gitlab.com\/cdac-vega<\/a> ] to access and install VEGA SDK &amp; Tools. Please view the below video to know more about the gitlab access and account creation.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Prerequisite for installing VEGA SDK: GitLab Access\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/FiFmj9SZi8g?start=26&#038;feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Clone SDK &amp; Tools<\/strong><\/h4>\n\n\n\n<p>Once your gitlab access is granted, you can see repositories listed in <a href=\"https:\/\/gitlab.com\/cdac-vega\">CDAC-VEGA<\/a> gitlab page<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"794\" height=\"684\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/gitlab.png\" alt=\"\" class=\"wp-image-1415\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/gitlab.png 794w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/gitlab-300x258.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/gitlab-768x662.png 768w\" sizes=\"auto, (max-width: 794px) 100vw, 794px\" \/><figcaption>CDAC VEGA Repository<\/figcaption><\/figure>\n\n\n\n<p>Now, download the  VEGA SDK by using <a href=\"https:\/\/en.wikipedia.org\/wiki\/Git\">git<\/a> and <a href=\"https:\/\/git-scm.com\/docs\/git-clone\">clone<\/a> its repository using the below command in Ubuntu PC<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>git clone --recursive https:\/\/gitlab.com\/cdac-vega\/vega-sdk.git<\/code><\/code><\/pre>\n\n\n\n<p>Also download the VEGA Tools using the below command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone --recursive https:\/\/gitlab.com\/cdac-vega\/vega-tools.git<\/code><\/pre>\n\n\n\n<p>After cloning is completed(this may take some time), you can see &#8220;vega-sdk&#8221;, &#8220;vega-tools&#8221; folders in your working directory.<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/files\/risc_v_2.png\" alt=\"\" width=\"841\" height=\"631\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Install SDK &amp; Tools<\/strong><\/h4>\n\n\n\n<p>To install SDK &amp; Tools, first you need to setup the environment file by executing the setup-env.sh in  &#8220;vega-tools&#8221;.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd vega-tools<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/setup-env.sh<\/code><\/pre>\n\n\n\n<p>Also to setup the &#8220;vega-sdk&#8221;, execute the script &#8220;setup-thejas32.sh&#8221; for THEJAS32 SoC and &#8220;setup-thejas64.sh&#8221; for THEJAS64 SoC. During the sdk installation all necessary libraries required to build the programs will install automatically. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd ..\/vega-sdk\n\ngit checkout aries<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/setup.sh <\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code><\/code><\/pre>\n\n\n\n<p>Now the toolchain and SDK path environments are ready.<\/p>\n\n\n\n<p><strong>Build sample program<\/strong>s<\/p>\n\n\n\n<p>Now you can build all the examples provided in example folder using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make<\/code><\/pre>\n\n\n\n<p>You can clean the builds using the clean command like:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make clean<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/files\/risc_v_4.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>All the examples programs are built and now we can look in to one sample program in examples\/uart\/hello_world. There, you can see the hello.c and Makefile. The build folder contains the executable file of hello_world program<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/files\/risc_v_5.png\" alt=\"\" width=\"829\" height=\"622\"\/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p>You can clean the executable using clean command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd examples\/uart\/hello_world<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>make clean<\/code><\/pre>\n\n\n\n<p>You can build this program alone by using the make command in this folder.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/files\/risc_v_6.png\" alt=\"\" width=\"843\" height=\"633\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Connect the board to PC<\/strong><\/h4>\n\n\n\n<p>The basic connection of the board can be observed in the image below. As seen in the figure, you have to connect a micro USB to the connector J10. For more details about the board powering up please visit <a href=\"https:\/\/cdac-vega.gitlab.io\/boardsetup\/setup.html\">Setting Up The Board<\/a><\/p>\n\n\n\n<p class=\"has-text-align-center\"><a class=\"\" href=\"https:\/\/cdac-vega.gitlab.io\/_images\/usb-power1.jpg\"><img decoding=\"async\" width=\"500px\" height=\"auto\" src=\"https:\/\/cdac-vega.gitlab.io\/_images\/usb-power1.jpg\" alt=\"Micro USB Connection\"><\/a><\/p>\n\n\n\n<p>If everything is correct, you can see the bootloader in the <a href=\"https:\/\/wiki.emacinc.com\/wiki\/Getting_Started_With_Minicom\">minicom<\/a> using the below command in terminal<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo minicom aries<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code><\/code><\/pre>\n\n\n\n<p>Now you can see the minicom terminal opened and the board uart terminal is ready.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"837\" height=\"680\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/Screenshot-from-2021-04-30-13-43-041-1.png\" alt=\"\" class=\"wp-image-342\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/Screenshot-from-2021-04-30-13-43-041-1.png 837w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/Screenshot-from-2021-04-30-13-43-041-1-300x244.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/Screenshot-from-2021-04-30-13-43-041-1-768x624.png 768w\" sizes=\"auto, (max-width: 837px) 100vw, 837px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Run a program in board<\/strong><\/h4>\n\n\n\n<p>Use <strong>CTRL+A S<\/strong> to enter file sending menu and select <strong>xmodem<\/strong> by pressing <strong>Enter<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">+-[Upload]--+\n| zmodem    |\n| ymodem    |\n|&gt;xmodem&lt;   |\n| kermit    |\n| ascii     |\n+-----------+<\/pre>\n\n\n\n<p>In the next window, with <strong>space bar<\/strong> select the <strong>.bin<\/strong> file to be transferred, by pressing <strong>Enter<\/strong>, transfer process starts.<\/p>\n\n\n\n<p>Wait until the process is completed. The screen should display how much data has been transferred.<\/p>\n\n\n\n<p>After completing transfer the Program will start to execute.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/risc_v_10.png\" alt=\"\" class=\"wp-image-343\" width=\"838\" height=\"536\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/risc_v_10.png 680w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/risc_v_10-300x192.png 300w\" sizes=\"auto, (max-width: 838px) 100vw, 838px\" \/><\/figure>\n\n\n\n<p>For more details please visit <a href=\"https:\/\/cdac-vega.gitlab.io\/sdkuserguide\/running.html#setting-up-serial-device\">Running Program on Target Board<\/a><\/p>\n\n\n\n<p>For more details, Please watch our video tutorial :<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Build your first application with C-DAC VEGA Processor\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/77lZ8-rzuOY?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview This guide will provide you with a step by step walk-through of running a software on VEGA based development boards. Prerequisites Hardware ARIES Development Boards Software Ubuntu 18.04\/20.04 Operating system VEGA SDK VEGA Tools Setup VEGA Ecosystem Gitlab Access Create a new account\/Login in gitlab.com, Sent a &#8220;Request Access&#8221; in VEGA repository[ https:\/\/gitlab.com\/cdac-vega ] [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":536,"comment_status":"open","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,15,1],"tags":[35,37,36,7,38,11,26,25,31,5,33,34,24],"class_list":["post-335","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general","category-getting-started","category-uncategorized","tag-arty-board","tag-arty100t","tag-arty35t","tag-cdac","tag-getting-start","tag-india-microprocessor","tag-thejas-64","tag-thejas-soc","tag-thejas32","tag-vega","tag-vega-sdk-2","tag-vega-tools","tag-vegaprocessor"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/335","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/comments?post=335"}],"version-history":[{"count":13,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/335\/revisions"}],"predecessor-version":[{"id":1418,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/335\/revisions\/1418"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media\/536"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}