Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12748 Discussions

How can I add the ecos to the Nios II RTOS combo

Altera_Forum
Honored Contributor II
1,719 Views

Hi: 

We know that when I compiled a common "c/c++ Application",there are RTOS combo in the system library ,which includes: none(single-thread) and MicrC/OS-II .  

now ,I had set up the ecos , and buildt a "Advance c/c++" , meanwhile , the "Build Command" on the "Make Builder" tab is fix : make INSTALL_DIR=<PATH> , but ecos did not appear on the RTOS combo, Can anyone can tell me how the ecos can be added to the RTOS combo
0 Kudos
9 Replies
Altera_Forum
Honored Contributor II
850 Views

There is no RTOS combo box for an "Advanced C/C++ project", so please check that&#39;s what you really selected and not a "C/C++ Application". 

 

All eCos realated build features are defined by the Makefile you provide for your project, so there is no need to select the RTOS in Eclipse.
0 Kudos
Altera_Forum
Honored Contributor II
850 Views

Hi monkeyboy : 

From your replying it means that if I want to builde a new standard "c/c++" project on the ecos ,I should build the standard "c/c++" on the Advance "c/c++" project , yes or not? 

Thanks
0 Kudos
Altera_Forum
Honored Contributor II
850 Views

I&#39;m not certain what your question is here, but if I understand you correctly, you should only use an "Advance c/c++" project for eCos, not the standard "c/c++ Application".

0 Kudos
Altera_Forum
Honored Contributor II
850 Views

Hi monkeyboy: 

my promble is that when I had successed built a application following the document meanwhile successed build a "advance c/c++ project " and run the "hello.c" following the document , now I want to set a common "c/c++ application" in the evirment of ecos . I found that the Microu/os is listed in the combo of the RTOS on a "c/c++ application " project &#39;s " system peoperties " and the "c/c++ application &#39; can choose the os evirment by choosing the "none or Micro/os ". So i think the ecos should be listed in the combo but it is ont found .So I think if i want to set a "c/c++ application " in the evirment of ecos , I should built a "Advance c/c++ application" project----named aihuazou, which is based on ecos , then I set a "c/c++ application " below the project "aihuazou" ,only that ,I can success a c/c++ application on ecos, is it right or not. 

thanks
0 Kudos
Altera_Forum
Honored Contributor II
850 Views

It&#39;s right up until the point you try to use a standard "c/c++ application". These don&#39;t work for eCos. You can only use an "advanced c/c++ project ". The easiest ways to do this is to start with the examples provided, and then modify the makefile to build whatever source files you want to build.

0 Kudos
Altera_Forum
Honored Contributor II
850 Views

Hi monkeyboy: 

Thanks for your help, and I had soluted all the problem refered before. Now I designed a new kit ,whose components is different from the components of the altera&#39;s kit which refered in the configuration template of the ecos . How can I added myself kit or the kit&#39;s components to the template ? 

Additional ,how can I transplant my design to our hard target ?  

Thanks!
0 Kudos
Altera_Forum
Honored Contributor II
850 Views

If you want to create a new target, you can do so by editing the ecos.db file that comes with the released version of eCos. Look at what&#39;s been done for the nios2_dev_board target as an example. 

 

To download an executable to the board, you can use: 

 

nios2-elf-download -g <elf file> 

 

from the command line. Alternatively you can use the run or debug features of the IDE. 

 

If you want to program the flash on your board, you can use the IDE flash programmer, or the auto-generated program-flash script as descrived in the getting started guide.
0 Kudos
Altera_Forum
Honored Contributor II
850 Views

Hi Mokeyboy: 

Thanks for your help. 

Now I want to ask you that there include the "nios2 &#39;s hal" in the condition of the ecos , if i want to transplant the ecos system to my target , I need not to modify the content of the nios2 , what i should modify is to modify the content of I/O components and dev componts , yes or not? .
0 Kudos
Altera_Forum
Honored Contributor II
850 Views

The Nios II HAL should have been automatically configured to match your hardware design (PTF file) by the nios2configtool. If you follow the steps outlined in the getting started documentation, you will be able to succesfully run the examples on your board.

0 Kudos
Reply