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.

Cyghwr_io_flash_block_locking

Altera_Forum
Honored Contributor II
1,027 Views

Hi! 

 

In many eCos files, there is # ifdef CYGHWR_IO_FLASH_BLOCK_LOCKING 

 

I defined CYGHWR_IO_FLASH_BLOCK_LOCKING at the top of my .c file in the package an it is ok but I am afraid it is not the way eCos supposes. Could anybody tell me what the correct way is? 

Adding  

cdl_option cyghwr_io_flash_block_locking { 

display "p8p allows block locking" 

default_value 1 

}  

to .cdl does not work.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
59 Views

You are right that this isn't the right way ;) 

All those options are defined in the eCos configuration file ecos.ecc. The safest way to edit the options is to use the econfig utility.
Altera_Forum
Honored Contributor II
59 Views

 

--- Quote Start ---  

The safest way to edit the options is to use the econfig utility. 

--- Quote End ---  

 

 

I added implements cyghwr_io_flash_block_locking to my .cdl and that helped.
Reply