PCI express could not open device, PCIE_open failed - hardware-interface

I am using Intel DE2i-150 board where I have Intel atom processor with yocto os and fpga with Nios II processor. I am trying to access the fpga board from yocto. Initially I was able to communicate but due to some other installation now the PCIE_open is not working and it is giving me an error: "Counld not open device". This phrase is not anywhere defined in my code. I have used the driver code also but ended up with the same error. Previously it was working. I have no idea what is going on. Please help me regarding this.

It was my mistake. In alt_up_pci_lib.c the device name was alt_up_pci0 and I was trying to open alt_up_pci. That is why the error was coming.

Related

How to fix compilation error for ESP32 in Arduino IDE?

I am working on DOIT ESP32 DEVKIT V1 and I'm using Arduino IDE 1.8.13 (Windows 10 Pro Education x64) for coding this board. I installed the ESP32 board (and ESP8266) as well from the boards manager inside Arduino IDE. It was working fine for some days, until, a friend sent me an .ino file and after opening it and trying to compile and upload that file on my board, a weird compilation error occurred (it's the same error that occurred on my friend's system, and she had to switch to another system to continue working smoothly). I am using these URLs in Additional Boards Manager URLs option under preferences in Arduino IDE:
https://dl.espressif.com/dl/package_esp32_index.json, http://arduino.esp8266.com/stable/package_esp8266com_index.json
And the following error messages appear on compilation:
In file included from c:\programdata\matlab\supportpackages\r2018a\3p.instrset\arduinoide.instrset\idepkgs\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\algorithm:60:0,
from C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:142,
from sketch\sketch_aug21a.ino.cpp:1:
c:\programdata\matlab\supportpackages\r2018a\3p.instrset\arduinoide.instrset\idepkgs\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\utility:68:28: fatal error: bits/c++config.h: No such file or directory
compilation terminated.
exit status 1
Error compiling for board DOIT ESP32 DEVKIT V1.
Please provide me a step by step guide to fix this issue, as I am new to such errors and directory issues. Note that there are no compilation errors when I select Arduino AVR Boards (such as MEGA, UNO, etc.). I have already tried re-installing the ESP32 board from boards manager, but no success.
FIXED!
The problem was that there were no /hardware/espressif/esp32 folders existing anywhere, even though the board support was installed. So I removed the board from Arduino's Board Manager, created the folders myself, and installed the ESP32 core there. I followed all the instructions given over this link:
https://learn.sparkfun.com/tutorials/esp32-thing-hookup-guide/installing-the-esp32-arduino-core
They have provided all the steps (including the creation of folders/directories) for installation of the core through github repository. And now the error is fixed and it is working perfectly!

Bad CPU type ~ core2-32-poky-linu - Error compiling for board IntelĀ® Edison

I wanted to develop a mini-project with Intel Edison + Grove and Arduino after months I didn't use it.
It used to work fine but when I want to upload and run a project now, I got the the following error in Arduino:
fork/exec /Users/Dudis/Library/Arduino15/packages/Intel/tools/core2-32-poky-linux/1.6.2+1.0/i686/pokysdk/usr/bin/i586-poky-linux/i586-poky-linux-g++: bad CPU type in executable
Error compiling for board IntelĀ® Edison.
I recently updated Mac OS to Catalina which does not support 32-bit programs if I understood correctly but I also found out that Intel is no longer support Edison and I couldn't find a way to update the library or make it work.
Could anyone help what I should do to be able to upload and run project through Arduino & Intel Edison?
You might try to set up a CROPS environment https://www.yoctoproject.org/docs/3.0.2/mega-manual/mega-manual.html#gs-development-methods and build edison-fw in that including the SDK.
The SDK will allow you to build C code for the Edison, while the new kernel with ACPI might be able to load the drivers you need for the Grove device in the kernel.

Arduino Industrial 101 does not get recognized

After I searched for this issue and did not find a solution yet, I will ask here:
I have a Windows 10 computer with Arduino IDE 1.8.5 installed.
When I try to connect my Arduino Industrial 101, it is not possible to select the COM port in the IDE. Additionally, it isn't even shown in the device manager as "unknown device" as e.g. Arduino COM port doesn't work or Arduino doesn't get recognized state.
Before anyone asks:
-I ran the installer as administrator
-The device drivers are installed (At least they were ticked in the installer programm)
-I have this issue on a second computer (Windows 7 with Arduino IDE 1.8.5), too
Does anyone have a solution for this issue?
EDIT: I tried again with the NodeMCU: The IDE shows COM port 7 in the information area on the lower right but when uploading I get a "Failed to open COM7" error. So, it seems to be a general IDE issue...
Ok, I found the issue... You won't believe me but either it was a broken cable or a cable that does not have enough power supply somehow. Strangely, this was the official cable from the Arduino package I got. My Samsung mobile cable saved the day^^

Arduino littleBits

I am trying to download code to my littleBits Arduino module on IDE software. I am not able to find the port whenever I am trying to download the image to the board. Is this an internal issue, or an issue with my Arduino board?
You need to check if the arduino serial driver is properly installed in device manager. If arduino serial port is available in Ports then you can download program through IDE
For visual help: https://www.youtube.com/watch?v=4HqXAmV_Ock
Make sure you have proper drivers for your board. In Arduino IDE make sure you are selecting the proper target ie, littleBits Arduino board.
If you are using the Linux system you can use dmesg to see if your system detected the device properly.
If you are using windows system use device manager to make sure your device is properly connected.
Has it ever worked? Did it work for a while then stop?
Reason I ask, I had a problem where the Little Bit suddenly stopped accepting new code. Whenever I tried to download, the Arduino IDE started reporting Unknown USB Device.
Turned out, we had bricked the device. I blogged my steps for recovery here.
Check tools>ports and see if any are available, try them all, (check
while the board is connected)
if none are available check device manager under com ports there should be your device listed if not the you need to reinstall the drivers.
also check if the board is connected correctly (i.e. the connection cord is working properly)

Arduino Software not finding our board in Tools->Serial Port on OS X Yosemite

I purchased this extruder controller board and this board to connect it to the computer. I am following the tutorial above in trying to set it up. We successfully did the boot loader part of that tutorial and the DEBUG LED is flashing. I followed the tutorial all the way up to uploading the program. The Arduino software does not find it in "Tools -> Serial Port", but allows me to burn the bootlegger. The only options are a couple bluetooth devices I have connected, none of which are useful.
I am only aware of windows drivers for the ISP programmer board you're using. When I've ordered funky hardware off of eBay with a non-existent or difficult-to-find OSX driver, I've had success running Parallels. This is a funny work-around, but it might be your best bet -- many folks over on the Arduino.cc forums are having the same problem.
So: Curse the Gods. Buy parallels. Install windows. Install Atmel's official drivers. Burn your bootloader. Get back to building.
As always, if a serial port isn't showing up in the Arduino IDE, run the following command from Terminal:
ls /dev/tty* | grep 'usb'

Resources