Some simple questions about JN5168

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Some simple questions about JN5168

5,935 次查看
quanjunzhang
Contributor III

I am a fresh man, and I have no partners around me. I have some simple questions in the process of learning, please give me some help, thank you.

Application Notes:JN-AN-1217-Zigbee-3-0-Base-Device

标签 (1)
  • JN

9 回复数

5,671 次查看
quanjunzhang
Contributor III

I added a function, but there are some trobles in compile. 

Please give me some help.

Thanks very much.

mario_castaneda

函数1.PNG函数1-1.PNG

0 项奖励
回复

5,671 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Zhang,

Did you define the prototype function? as you can see, both c files should have a .h file with the prototype function.

Regards,

Mario

5,671 次查看
quanjunzhang
Contributor III

Hi Mario,

I had defined the prototype function. And the c file  has a .h file with the prototype function.

Below is my screenshot. Can you help me check it?

thank you very much. I have spent a lot of time.

Regards,

Zhang

函数2.PNG函数2.1.PNG函数2.2.PNG函数2.3.PNG

IMG_20180906_195202.jpg

0 项奖励
回复

5,671 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Zhang,

Be sure that the prototype function that you are using is defined as extern.

Regards,

Mario

0 项奖励
回复

5,671 次查看
quanjunzhang
Contributor III

Hi Mario,

 

I just created the app_led.c and app_led.h files and define a function under the new folder, then called the function in app_main.c. This will cause a compilation error.

BUT, if I define the same function under the existing folder (app_end_device_node.c), then called the function in app_main.c. This will be no error.

Is this because the .c.h file I created requires additional system configuration?

Please give me some accurate advice, I have spent too much time to solve this problem, thank you very much.

 

Regards,

Zhang

0 项奖励
回复

5,671 次查看
quanjunzhang
Contributor III

Hi Mario,

 

I have tried all of them, but the error is still there.

Can you accurately mark it on the screenshot I sent?

I know this is a very simple question, but it has been bothering me for too long.

Or I exported the project, can you help me check it out?

 

Regards,

Zhang

0 项奖励
回复

5,671 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Zhang,

Did you create an event for the button 3?

Did you set up the DIO as an input?

Mario

5,671 次查看
quanjunzhang
Contributor III

It is OK now. 

The application notes has set the  DIO as an input and  created an event for the button 3.

Thanks for your help!回复SW3_1-1.PNG回复SW3_1-2.PNG

0 项奖励
回复

5,671 次查看
quanjunzhang
Contributor III

SW3_1.PNG

0 项奖励
回复