Forum Discussion

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

EPCS flash HAL drivers, thread safe?

can anyone tell me if

alt_epcs_flash_write() and alt_epcs_flash_read() are therad safe?

1 Reply

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

    According to the hal api reference (http://www.altera.com/literature/hb/nios2/n2sw_nii52010.pdf), the alt_flash_write and alt_flash_read functions are NOT thread safe.

    I beleive the above mentioned functions just use function pointers to alt_epcs_flash_write and alt_epcs_flash_read when using EPCS so I would assume that the alt_epcs_ functions are also not thread safe. I am not sure if Altera really intends for you to use the alt_epcs_ functions directly.