what are steps required to blink the led using gpio pins in imx8mplus evk

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

what are steps required to blink the led using gpio pins in imx8mplus evk

344件の閲覧回数
vrutik7781
Contributor I

i follow the below steps

step1 : in local.conf file i added following packages---------->

IMAGE_INSTALL:append = " libgpiod"
IMAGE_INSTALL:append = " libgpiod-tools"
IMAGE_INSTALL:append = " libgpiod-dev"

vrutik7781_0-1711428606635.png

step 2: i build the  toolchain

vrutik7781_0-1711428932684.png

 

step3 : 1st I try to add the application to control gpio for that i taken a reference of main.c : https://variwiki.com/index.php?title=MX8M_GPIO  from variscite

when i tried to add this application in my recipe at that time i am getting undefined reference errrors.

vrutik7781_1-1711429576604.png

So i decide to go with creating makefile for my code. for that also I'm getting same errors.

vrutik7781_2-1711429943278.png

 

even i check can cross compiler includes the libgpiod lib or not , it is present

vrutik7781_3-1711430068750.png

Now i don't know what I'm missing ? is i'm missing anything please let me know if anyone have idea ,is their any other approach or any other application i need to use.

Thanks & Regards

vrutik

0 件の賞賛
返信
1 返信

309件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Have you checked your cmakelist?

The API change a lot, you should change your code refer example

https://github.com/brgl/libgpiod/tree/master/examples

0 件の賞賛
返信