Forum Discussion
Hi,
Any update from your side?
- anonimcs2 years ago
Contributor
Yes, when I enabled the small C library in the BSP editor, then I got rid off these errors.
But now I have a different issue, that I have missing Software Packages in the BSP editor. Is there a way to install them without uninstalling Eclipse ? I'm specificly interested in "altera_safeclib" package as I want to use the "Generic Quad SPI controller II Intel FPGA IP" to communicate with the external flash we use "MT25QL512ABA". Since that package is missing and I cannot enable it in my BSP settings, when I run "alt_flash_open_dev(NAME_OF_FLASH_IN_SYSTEMH_FILE)" it always returns zero, meaning that it fails to open the device in order to read/write. I have followed the instructions for having Nios2 support in Eclipse (https://www.intel.com/content/www/us/en/support/programmable/articles/000086893.html?wapkw=installation+guides&erpm_id=13401520_ts1708675042469) but this guide is wrong, in step 2 when I extract the tar.gz file, it creates a folder with a name "<downloaded_file_name>" which includes an "eclipse" folder in it. So I supposed I needed to take that "eclipse" folder to one level above and then rename it. Even after that, the extraction in step 4 also ends up pretty much the same, with an additional parent folder above "eclipse_nios2" and therefore it cannot overwrite the renamed folder. I rtied copying it manually into the renamed folder, but then the whole Eclipse crashed and I couldn't run it again anymore. I had to uninstall and re-install the whole Quartus Prime software...
After reinstalling, the steps in the link didn't end in a different result, I still don't have the software packages I want for the BSP settings. I'd appreciate if you (or another colleague of yours) can assist me with that @EBERLAZARE_I_Intel .
Note: During the Quartus 21.1 Std's installation, Eclipse Development Software (EDS) for Nios2 was already installed, by using the files/packages Intel provided. I couldn't find any plugin SW packages on the internet either...
- anonimcs2 years ago
Contributor
PS: I have tried replacing the Quad SPI IP with "Generic Serial Flash Interface Intel FPGA IP" with checking the option "Enable SPI pins interface" on the Platform Designer, but also that didn't have the BSP package "altera_safeclib". So the proposed solution on the other posts regarding this topic by the employees did not work. Is there another way to get that BSP package somehow ? @EBERLAZARE_I_Intel
- anonimcs2 years ago
Contributor
Other notes:
1) I've also tried the configuration device type "EPCQL512-Micron Compatible" and the device type "MT25QL512ABA" (this is the one I'm using as an external Flash on my board) when using the Quad SPI IP of Intel, but I couldn't open any of them. The function "alt_flash_open_dev(NAME_OF_FLASH_IN_SYSTEMH_FILE)" always returns zero. And when I try reading the ID of the flash with the function "IORD_ALTERA_QSPI_CONTROLLER2_RDID(CSR_BASE_OF_FLASH_IN_SYSTEMH_FILE)" it returns 0xFFFFFFFF instead of the actual ID of the device, in my case 0x00000020 (ALTERA_QSPI_CONTROLLER2_RDID_QSPI512 in the generated file altera_generic_quad_spi_controller2_regs.h). I also tried getting the device ID with "alt_qspi_controller2_get_info" function, but I got invalid args error for some reason, since I'm sure that the arguments I give are not wrong. Below you can see how I called the function and got -22 as return value.
alt_flash_fd* flash_handle; flash_region *regions; int numRegions = 0; int device_id = -1; flash_handle = alt_flash_open_dev(FLASH_CONTROLLER_AVL_MEM_NAME); device_id = alt_qspi_controller2_get_info(flash_handle, ®ions, &numRegions);2) I've seen that in the System.h file in the generated BSP, I see the part number for the Quad SPI as N25Q512 even though I select MT25QL512ABA on Platform Designer. But when I selected EPCQL512-Micron Compatible option for the Quad SPI, I saw that the part number in system.h was correct, being EPCQL512. Not sure if this has anything to do with being able to open the device though, both devices N25.. and MT25.. seem quite similar in the documentation "Technical Note, Micron N25Q to Micron MT25Q Migration" written by Micron.
@EBERLAZARE_I_Intel any recommendations ? It seems there's something basic is wrong, so it doesn't help if I try reading any of the flash registers as I cannot open the device successfully. Waiting for your (or any other Intel employee's fast support).