Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12409 Discussions

Parameters of SYG_FLASH_DRIVER macro

Altera_Forum
Honored Contributor II
791 Views

Could you specify the parameters of SYG_FLASH_DRIVER macro? 

 

I have got a 128MB flashlike device with 130 blocks of 0x10000 bytes size and 4 ones of 0x4000 bytes. So, I made such an array: 

 

static const cyg_flash_block_info_t p8p_block_info[2] = { 

{(size_t)0x4000, (cyg_uint32)4 }, 

{(size_t)0x10000, (cyg_uint32)130 } 

}; 

 

and then wrote the macro: 

 

cyg_flash_driver( 

p8p_drv_handle, 

&p8p_func_handle, 

0, /* flags */ 

cygmem_region_flash, /* flash first address */ 

cygmem_region_flash + p8p_region_size - 1, /* flash last address */ 

2, /* number of items in p8p_block_info*/ 

p8p_block_info, 

&p8p_priv /* pointer to priv handle */ 

} ; 

 

 

As a result, eCos dies. Can you see the error(s) ?
0 Kudos
0 Replies
Reply