Forum Discussion
HAL API for the Generic Serial Flash Interface FPGA IP, 'altera_safeclib'
In the user guide for the Generic Serial Flash Interface (GSFI) it says "altera_safeclib" must be enabled in the BSP editor to use the HAL API for this device.
With a Quartus 21.1 install and the accompanying NIOS II Software Build Tools for Eclipse I've searched through the BSP Editor UI and can't this setting at all. Also, when I generate the Eclipse BSP from my sopcinfo file, there are no HAL driver files generated for the GSFI.
Does anyone know how I can enable HAL support for this IP?
Hi Meenalkb,
To enable the Generic Serial Flash Interface (GSFI) use the HAL API and follow the below steps in Eclipse.
- BSP Editor->Nios II
- file paths of .sopcinfo and .bsp (new or old) in the open BSP window and click on open.
- A platform design window will be open in which you select the BSP software packages option. In that, just enable the altera_safeclib option.
- Select Generate BSP.
once the BSP generation is completed. Check in the drivers->inc and drivers->src folders. for
https://www.intel.com/content/www/us/en/docs/programmable/683419/22-1-20-1-1/nios-ii-hal-driver.html
- intel_generic_serial_flash_interface_top.h
- intel_generic_serial_flash_interface_top.c
27 Replies
- hareesh
Frequent Contributor
Hi Meenalkb,
To enable the Generic Serial Flash Interface (GSFI) use the HAL API and follow the below steps in Eclipse.
- BSP Editor->Nios II
- file paths of .sopcinfo and .bsp (new or old) in the open BSP window and click on open.
- A platform design window will be open in which you select the BSP software packages option. In that, just enable the altera_safeclib option.
- Select Generate BSP.
once the BSP generation is completed. Check in the drivers->inc and drivers->src folders. for
https://www.intel.com/content/www/us/en/docs/programmable/683419/22-1-20-1-1/nios-ii-hal-driver.html
- intel_generic_serial_flash_interface_top.h
- intel_generic_serial_flash_interface_top.c
- meenalkb
Occasional Contributor
As you can see, I don't see the altera_safeclib option under Software Packages. What now?
- hareesh
Frequent Contributor
can you share screen shot of that ?
- meenalkb
Occasional Contributor
Hmm tried that.
That makes no difference whatsoever.
- hareesh
Frequent Contributor
which version are you using?
- meenalkb
Occasional Contributor
Also please un-mark as solved.
- hareesh
Frequent Contributor
- meenalkb
Occasional Contributor
It was the same problem as what I described (community.intel.com/t5/Nios-II-Embedded-Design-Suite/HAL-API-for-the-Generic-Serial-Flash-Interface-FPGA-IP-altera/m-p/1393376#M51250). Can we arrange a call to discuss?
- HAlex
Occasional Contributor
Hello
Any updates with this issue?
I also have exactly the same problem.
Is it maybe because I am using Quartus Prime 21.1.0 Standard (and not a PRO) edition?
Thank you
Alex
- meenalkb
Occasional Contributor
- meenalkb
Occasional Contributor
Could you please close this ticket now. Thanks