Hi monkey and smcnutt:
Thanks !
From today ,I will transplant ecos to the UP3 kits. Yes ,I should add the new flash driver to the target. So I created a new target ----UP3, which include following packages :
CYGPKG_HAL_NIOS2
CYGPKG_SOPC
CYGPKG_ALTERA_AVALON_UART
CYGPKG_ALTERA_AVALON_JTAG_UART
CYGPKG_ALTERA_AVALON_TIMER
CYGPKG_ALTERA_AVALON_LH28F160S3T-L13A _FLASH
then I edit the package CYGPKG_ALTERA_AVALON_LH28F160S3T-L13A _FLASH in accord with the package CYGPKG_ALTERA_AVALON_AM29LV065D_FLASH offered by ecos system. Now I have two questions:
1) I found the "HAL" functions are different between in the ecos system and in the nios system. If I add the ecos system to my sopc system,which include a niosII cpu , a flash , a sram and a jagt--uart, and now I want to use the flash , which functions can be used , from ecos or from nios. ?
2)In the sopc system ,I should set the flash's base address, and during the configuration of the ecos , I set the type of the "startup " is "Rom" , so I want to know the relation between the base address onthe sopc and the "startup" address on the nios, and how to set the base address of the flash on the nios is right?