Forum Discussion
Altera_Forum
Honored Contributor
21 years agousing ecos on UP3 kit
hello all : I have got a UP3 kit from Altera , which is a NiosII kit , including EPC1C6Q240 (Cyclone family ) .Now I want to transplant the embeded system ecos to the NiosII cpu based o...
Altera_Forum
Honored Contributor
21 years agohi all :
I try following you ,I can add the UP3 to the ecos's depository and the UP3 and the Flash chip can found , the adding steps are below: 1) open the ecos.db and copy the content of the "NiosII target " ,and modify the package as : package CYGPKG_HAL_UP3 { alias { "Nios II common HAL"} directory hal/UP3/arch/ script hal_UP3.cdl hardware description " The Nios II architecture HAL package provides generic support for this processor architecture. It is also necessary to select a specific target platform HAL package." } target UP3_dev_board { alias { "UP3 Development Board (Altera)" } packages { CYGPKG_HAL_NIOS2 CYGPKG_HAL_SOPC CYGPKG_ALTERA_AVALON_UART_COMM CYGPKG_ALTERA_AVALON_JTAG_UART_COMM CYGPKG_ALTERA_AVALON_UART CYGPKG_ALTERA_AVALON_JTAG_UART CYGPKG_ALTERA_AVALON_TIMER CYGPKG_DEVS_ETH_SMSC_LAN91CXX CYGPKG_ALTERA_AVALON_LAN91C111 CYGPKG_ALTERA_AVALON_LCD_16207 CYGPKG_ALTERA_AVALON_CF CYGPKG_ALTERA_AVALON_AM29LV065D_FLASH CYGPKG_DEVS_FLASH_AMD_AM29XXXXX } description " This target provides the packages needed to run eCos on a Nios II. In addition, components are included which support the flash devices found on the Altera Nios II development boards." } 2) design a directory named "UP3" under the directoy "hal" ,and copy all of the content of the "nios2" to the directory "UP3" , but I only rename the "hal_nios2.cdl " to the "hal_UP3.cdl" , the other files don't change at all. So could I ask the ways are right or not? meanwhile , I think the UP3 is a new template based on Niosii , so the UP3 is a new platform which has similar CPU---niosII as and the different periphal from the "Niosii dev board " offered by the "ecos " system HW, as a result the UP3 is a variant of the "Niosii dev board " , so I can move the new folder "UP3" designing as front to the \...\packages \hal\nios2 \ , If this, it is right or not? then I have another question to consult you : what is the difference between the package "sopc" and "nios2" ?