NVIDIA hardware GPIO pins

Is there any functionality in matlab or simulink to read/write GPIO pins on Nvidia hardware? (particularly jetson nano). I find it very strange that there is tons of documentation on deploying deep neural nets to the hardware, but I cannot find any information on something that seems so simple.

5 Comments

Yes, but it is not possible to do these things through matlab. I can pass a command from matlab to the linux shell, but for whatever reason it just returns that I do not have permission to execute whatever command.
read the "Setting User Permissions" description there.
This is a hardware interface, and superuser will be needed to enable proper permissions.
Thank you for the response again, Walter. So since this is a python library, am I still able to call these functions from the terminal? (I'm sorry I don't know the correct terminology) Also, I tried adding my username in visudo to never ask for passwords. I'm not sure if that helps anything.
You can call python from MATLAB.
What you can call from the terminal is not a topic for a MATLAB forum. That said, python can be invoked from the terminal if necessary.

Sign in to comment.

Answers (1)

Ramakrishna Mandalapu
Ramakrishna Mandalapu on 19 Jul 2021
Hi Andrew,
We are bringing the GPIO read/write functionality in MATLAB and Simulink in our future release R2021b as a part of the support package MATLAB Coder Support Package for NVIDIA Jetson and NVIDIA DRIVE Platforms.
Ramakrishna

2 Comments

Hi Ramakrishna,
I installed the R2021b with the MATLAB Coder Support Package for NVIDIA Jetson and NVIDIA DRIVE Platforms.
But there are no GPIO-Blocks, the Basics Folder in the Library is empty.
Do you have an Idea why the Folder is empty?
Thank you,
Tim S.
Hi Tim,
Thanks for trying out the MATLAB Coder Support Package for NVIDIA Jetson and NVIDIA DRIVE Platforms. Can you please update the spkg if there are any updates?, we have added the GPIO blocks in the Basic library but somehow in the release version is not showing up. We have fixed this issue in the November monthly update 21.2.1. Hopefully this version must resolve this issue, otherwise, do the following
1. Please run this command in MATLAB
>> rehash toolboxcache;rehash path;
2. Right click “NVIDIA Jetson and NVIDIA DRIVE/Basic” and then select the Open Basic Library
Thanks,
Ramakrishna

Sign in to comment.

Asked:

on 15 Nov 2019

Community Treasure Hunt

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

Start Hunting!