Unable to connect to 'Raspberry Pi' target hardware to check for NEON instruction set support

10 views (last 30 days)
I am unsuccessful to generate code for my Raspberry 3B single card computer. I am using Matlab 2019a and Matlab coder. I don't know if needed in this case, but I also have Embedded coder toolbox installed. The error occurs when executing 'codegen' command, or if I use 'Generate' in the Matlab Coder app. (That is, only when I set the Raspberry HW board to do the compilation. It compiles nicely using the Host Computer to do the compilation with the GNU GCC Raspberry Pi toolchain.)
I receive the following error message: "Unable to connect to 'Raspberry Pi' target hardware to check for NEON instruction set support. To connect to target hardware, parameters such as username, password and device address must be specified correctly.
Use help codegen for more information on using this command."
However, I have correct username, password and device address for the Rpi, as well as properly set environmental variables on the Raspberry (tripple checked). The issue occurs when trying to generate code out of my own matlab function as well as when I try to run the 'codegen' command in Mathworks example "Code Generation for Deep Learning on Raspberry Pi".
I have reinstalled Matlab as well as reinstalled the Matlab Raspbian image on the Raspberry, but the issue still remains.
Installed Support packages which I believe are the ones I need for this task (along the ones mentioned above):
Embedded Coder Support Package for ARM Cortex-A Processors
DSP System Toolbox Support Package for ARM Cortex-A Processors
MATLAB Coder Interface for Deep Learning Libraries
MATLAB Support Package for Raspberry Pi Hardware
I have googled this issue, but have still not found a solution that helps me, so I would be very grateful for any tips how to overcome this issue.
Thank You!
  5 Comments
Torbjörn Olsson
Torbjörn Olsson on 4 Feb 2020
Another clue is that I can generate an executable for a "Hello World" matlab function where Matlab Coder App generate C++ code and an executable directly on the Rpi. However, when I activate the Arm Compute Library settings in the Matlab Coder "More settings" tab for this Matlab Coder project (Arm Compute Library is not needed for this simple example, it is just invoked for testing), I receive the same error as above:
"Unable to connect to 'Raspberry Pi' target hardware to check for NEON instruction set support. To connect to
target hardware, parameters such as username, password and device address must be specified correctly.
Use help codegen for more information on using this command."
Hopefully someone smarter than I can figure out what I am doing wrong.
Thanks,
Torbjörn

Sign in to comment.

Answers (1)

Ahmed Bouzidi
Ahmed Bouzidi on 19 Dec 2019
i'm facing this problem too pls any help
  1 Comment
Torbjörn Olsson
Torbjörn Olsson on 23 Dec 2019
Hello Ahmed,
Thank you for the information. I am glad you found a solution. It didn't work for me though. I tried with a direct Ethernet connection to totally circumvent the router, but with no luck.
I am right now trying to do without the Matlab Rpi Hardware Support package for Raspberry Pi which I suspect (current hypothesis) is the root to my problems, and I have thus (so far) been able to generate code for a static library with Arm Compute Lib on the Rpi with the code generated by Matlab on the host and then locally compiling it on the Rpi with Visual Studio.
I hope this will be a way to eventually generate an executable, but it is a bit awkward as compared to using a Hardware Support Package. I will buy a Rpi 3B+ (instead of the Rpi 3B) and hopefully it will be more compatible with Mathworks software.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!