Forum Discussion
Altera_Forum
Honored Contributor
20 years agoi assume that you have created a target board with mk_target_board utility if
not refer to ug_nios2_flash_programmer.pdf paragraph 2 "creating a target board " but from the massage it seems like you have done that <div class='quotetop'>QUOTE </div> --- Quote Start --- nios2-flash-programmer: Unable to open flash-device after successfully communicating with target.[/b] --- Quote End --- The system recognize your flash device. and can communicate with it over the controls line , but not over the address and data lines of the flash. this is could be because: 1. hw problem (lines are not connected) 2. the flash device is not working or is not CFI compliant 3. OR THE just because the address line are not align as should be. i believe this is option 3. when you work with 32 data bit and your flash device support also 8 bit data the sopc will generate address according to the 8 bit data configuration. and you should ignore the 2 LSB. for example let say you have a flash that can hold only 2 word of 32 bits for that you will need 2 address, address 1 refer to word 1 , address 2 refer to word 2 to access 2 address you need an address bus with size of 1 but the sopc will generate a bus of size 3 this is because it treat your flash as an 8 bit data meaning it have 8 (2*32/8=8) words of 8 bits instaed of 2 and so he think that you need 8 address what you should do is use only the MSB and ignore the 2 LSB