Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

help me please!!! alt_flash_open_dev return error

I use sst flash 39vf6401 on my borad.When I need to progamme the flash, I should add a CFI table .Then I can download the programme to the flash successfully.

But I can not open the flash while alt_flash_open_dev(). The return value of alt_flash_open_dev() is always wrong.

If any one know something about it, please help me ,Thank you !

15 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    But as I understand you can flash the cfi flash using the Flash programmer, don't you?

    What specific problem do you have so you need to write theCFI table to your flash?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    But as I understand you can flash the cfi flash using the Flash programmer, don't you?

    What specific problem do you have so you need to write theCFI table to your flash?

    --- Quote End ---

    thank you!

    if I don't add cfi table,I will fail to program the flash.

    my problem is that I can not open the flash in nios.the return value of alt_flash_open_dev is always '0'
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    thank you!

    if I don't add cfi table,I will fail to program the flash.

    my problem is that I can not open the flash in nios.the return value of alt_flash_open_dev is always '0'

    --- Quote End ---

    delphicgp, do you use "reduced device drivers" option in the BSP?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    try different and slow serial frequencies. I had the same problem and when I reduce the freq it start working.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Call the alt_flash_open_dev function only when operating in single-threaded mode.