pjueon/JetsonGPIO

An error while using JetsonGPIO(C++) on Tx2

kidxhac opened this issue · 5 comments

I followed the instruction and installed JetsonGPIO v1.0.3, however, when I ran the sample_out.cpp, there occured( other samples failed either):

terminate called after throwing an instance of 'std::runtime_error'

what(): [Exception] [model_data]None is not in gpio_chip_dirs (catched from: GPIO::get_data())

Aborted (core dumped)

Then I used JetsonGPIO in python (sample_out.py), it worked well and pin could output. Nothing changed between two conditions. Needs a little help, thanks.

I have the same issue when I ran your "jetsongpio_test". The hardware is also Tx2 with Jetpack 4.6

@kidxhac @edge-ai4cv
Can you pull the test_issue36 branch of this repository to your local repository and check if this fixes the issue?

assuming your are in master branch,

git checkout -b test_issue36
git pull origin test_issue36

and re-install the library.

@pjueon

It worked! Thank you for your prompt fix!

@edge-ai4cv Thanks for the confirmation.

I just merge the branch to the master.

Checkout to the master and git pull again.

git checkout master
git pull 

Now you can delete the test_issue36 branch.

git branch -d test_issue36

Sorry for the time difference. I pulled the newest master branch, it worked. Thank you.