Forum Discussion

meenalkb's avatar
meenalkb
Icon for Occasional Contributor rankOccasional Contributor
3 years ago
Solved

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.

    1. BSP Editor->Nios II
    2. file paths of .sopcinfo and .bsp (new or old) in the open BSP window and click on open.
    3. A platform design window will be open in which you select the BSP software packages option. In that, just enable the altera_safeclib option.
    4. 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's avatar
    hareesh
    Icon for Frequent Contributor rankFrequent Contributor

    Hi Meenalkb,

    To enable the Generic Serial Flash Interface (GSFI) use the HAL API and follow the below steps in Eclipse.

    1. BSP Editor->Nios II
    2. file paths of .sopcinfo and .bsp (new or old) in the open BSP window and click on open.
    3. A platform design window will be open in which you select the BSP software packages option. In that, just enable the altera_safeclib option.
    4. 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's avatar
      meenalkb
      Icon for Occasional Contributor rankOccasional Contributor

      As you can see, I don't see the altera_safeclib option under Software Packages. What now?

    • meenalkb's avatar
      meenalkb
      Icon for Occasional Contributor rankOccasional Contributor

      I did include a screenshot - perhaps you can't see it. I've attached one now.

      • hareesh's avatar
        hareesh
        Icon for Frequent Contributor rankFrequent Contributor

        gsfi ip need enable setting then regenerate sopcinfo then should see altera_safeclib

  • meenalkb's avatar
    meenalkb
    Icon for Occasional Contributor rankOccasional Contributor

    Hmm tried that.

    That makes no difference whatsoever.

      • hareesh's avatar
        hareesh
        Icon for Frequent Contributor rankFrequent Contributor

        also tested in Quartus 21.1. That option is available in Quartus 21.1. I think the problem is in software only. It's better to re-install or update the software.

  • hareesh's avatar
    hareesh
    Icon for Frequent Contributor rankFrequent Contributor

    hi

    please share BSP editor version details, platform design screen shot and I am sharing the screen shot of that.

    • meenalkb's avatar
      meenalkb
      Icon for Occasional Contributor rankOccasional 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's avatar
        HAlex
        Icon for Occasional Contributor rankOccasional 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

    • hareesh's avatar
      hareesh
      Icon for Frequent Contributor rankFrequent Contributor

      hi meenalkb

      GSFI HAL API is only available in Pro. we are requested to Planner for this.

      thanks,

      hareesh

  • meenalkb's avatar
    meenalkb
    Icon for Occasional Contributor rankOccasional Contributor

    Could you please close this ticket now. Thanks