3090 views|2 replies

164

Posts

0

Resources
The OP
 

Compile and run the button routine for the i.MX6ULL development board [Copy link]

We use the command "vi Makefile" to enter the Makefile. As shown in Figure 1:

Add the following content.


Change TARGET to "key" in line 2.
Add the GPIO and key driver header file path to the variable INCDIRS in line 14, which is the path of the files gpio.h and key.h.
Add the GPIO and key driver file path to the variable SRCDIRS in line 22, which is the path of the files gpio.c and key.c.
A partial screenshot is shown in Figure 2:

Save and exit after modification.

The linker script file remains unchanged.

Then we enter the command "make" in the terminal to compile the code.

We can use the command "ls" to see the generated key.bin file, as shown in the figure

We use the command "chmod 777 create_imx" to modify the permissions of the create_imx file.

Then use the command "./create_imx key.bin" to generate the burning file bare.imx, as shown in the figure

We copy the generated bare.imx file to the corresponding file in the mfg burning tool through SSH software. For this step, please refer to the previous burning section. Switch the dip switch to burning mode, power on and wait for the burning to complete, then switch the dip switch back to start mode and wait for the program to run normally. We can control the buzzer to sound by pressing the button.

This post is from ARM Technology

Latest reply

The picture has not been uploaded, please upload it as soon as possible.   Details Published on 2021-7-14 09:39
 

6555

Posts

0

Resources
2
 

There is so little content today

This post is from ARM Technology
 
 
 

2w

Posts

74

Resources
3
 

The picture has not been uploaded, please upload it as soon as possible.

This post is from ARM Technology
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle
 
Personal signature

加油!在电子行业默默贡献自己的力量!:)

 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list