I am using AN1184 to develop a project , whenever I am building the project facing this error "c:/NXP/bstudio_nxp/workspace/zigbee/AN1184_ZBP_Coordinator/Source/zps_gen.c:823:5: error: 'zps_msgMcpsDcfm' undeclared here (not in a function) make: *** [zps_g

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I am using AN1184 to develop a project , whenever I am building the project facing this error "c:/NXP/bstudio_nxp/workspace/zigbee/AN1184_ZBP_Coordinator/Source/zps_gen.c:823:5: error: 'zps_msgMcpsDcfm' undeclared here (not in a function) make: *** [zps_g

4,013 Views
faridabanu
Contributor I

Could anybody please help me , why is this error occurring and how can this be resolved?

14 Replies

3,034 Views
girish_k
Contributor I

Click on the error, it will take you to the file where  'zps_msgMcpsDcfm' is declared. I simply replaced it with 0 (Zero).

I checked, in my case it is not referenced in the code. so looks like a compiler generated bug.

Try to build again and see if the error is resolved. 

0 Kudos
Reply

3,034 Views
welzyk
Contributor I

pastedImage_1.png

0 Kudos
Reply

3,034 Views
girish_k
Contributor I

Did you solved this problem? How?

I followed above steps, 

  • Select the project
  • Go to the project tab
  • C/C++ Index
  • Freshen All Files
  • Go to the project tab
  • C/C++ Index
  • Rebuild

 

But problem is still there.

pastedImage_1.png

0 Kudos
Reply

3,034 Views
estephania_mart
NXP TechSupport
NXP TechSupport

Hello, 

By any chance have you checked the Errors ? 

Regards,

Estephania 

0 Kudos
Reply

3,034 Views
johendohen
Contributor I

Hello, were you able to solve this problem. I have been stuck with it myself. The file in the reference seems to be a compiler generated file.

Please share if you found a solution.

Thanks

0 Kudos
Reply

3,034 Views
estephania_mart
NXP TechSupport
NXP TechSupport

Hello,

There are two things that might solve your problems.

As you might have seen not all the necessary includes appear in the project, can you please delete the project and import it once again?  After importing it, please

  • Select the project
  • Go to the project tab
  • C/C++ Index
  • Freshen All Files
  • Go to the project tab
  • C/C++ Index
  • Rebuild

 

If the error pesiste, could you please check if there are any error in the console tab ?

Sometimes the errors you might be seeing are from the IDE as it is not being able to resolve various variables and functions within the SDK.

 

Best Regards, 

Estephania 

3,034 Views
faridabanu
Contributor I

Hello,

Thanks for the response. It helped after i deleted the project and build the project on a fresh AN template. 

On doing this I am facing a new error "Unexpected event in   E_NETWORK_JOIN - 15"  while SED trying to join the network.

I also observed the same error when I am using unedited AN1184  template, but according to the template document "The ZigBee PRO application templates contain code which builds into a set of null nodes that provide the minimum functionality for the three node types (Co-ordinator, Router, Sleeping End Device) to initialise themselves and then start or join a network".

Can you please share the solution if you know?

0 Kudos
Reply

3,034 Views
estephania_mart
NXP TechSupport
NXP TechSupport

Hello, 

Sorry for the late response, that problems tends to appear when the node can't join the network. it can appear for several things..

Could you please try running the AN1216 ZigBee 3.0 IoT Control Bridge in the ZigBee 3.0|NXP   to check if you have the same issue on that demo? 

Best Regards, 

Estephania 

0 Kudos
Reply

3,034 Views
dmsherazi
Contributor IV

faridabanu‌ any luck with building your app? if so can you please let me know the solution ...I am myself stuck here at this point. SED will start joining and then fail.

APP: Network discovery complete
APP: Found 3 networks
APP: Exhausted channels to scan
APP: No event to process!
APP: Starting ZPS
APP: Network discovery complete
APP: Found 3 networks
APP: Unscanned channels 00000000
     APP: Ext PAN ID = 00158d00019548eb
     APP: Channel = 20
     APP: Stack Profile = 2
     APP: Zigbee Version = 2
     APP: Permit Joining = 1
     APP: Router Capacity = 1
     APP: End Device Capacity = 1
APP: Trying Joining network
APP: Joining network
APP: Unexpected event in E_NETWORK_JOIN - 15
APP: Unexpected event in E_NETWORK_JOIN - 15
APP: Unexpected event in E_NETWORK_JOIN - 15
APP: Unexpected event in E_NETWORK_JOIN - 15
APP: Unexpected event in E_NETWORK_JOIN - 15
APP: Unexpected event in E_NETWORK_JOIN - 15
APP: Unexpected event in E_NETWORK_JOIN - 15
APP: Unexpected event in E_NETWORK_JOIN - 15
APP: Unexpected event in E_NETWORK_JOIN - 15
APP: Unexpected event in E_NETWORK_JOIN - 15
APP: Unexpected event in E_NETWORK_JOIN - 15
APP: Unexpected event in E_NETWORK_JOIN - 15
APP: Unexpected event in E_NETWORK_JOIN - 15
APP: Unexpected event in E_NETWORK_JOIN - 15
APP: Node failed to join network. Retrying ...
APP: No event to process!
APP: Starting ZPS‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

NOTE: I have tried using the AN1223 and AN1216 binaries for the coordinator but the issue persists. I can make clear that the Same coordinator works well some zigbee pro light switches. and other demo examples from AN1189

0 Kudos
Reply

3,034 Views
dmsherazi
Contributor IV

Any One from NXP here to reply !!!

0 Kudos
Reply

3,034 Views
estephania_mart
NXP TechSupport
NXP TechSupport

Hello, could you please tell me which SDK version are you using? 

Best regards, 

Estephania

0 Kudos
Reply

3,034 Views
dmsherazi
Contributor IV

SDK used is 4168 for the templates project. I face the same problem with the pre-built .bin files that are included in the .zip folder of AN1184 application note.

For cordinator I have tried with prebuilt .bin files of the AN1223 as well as AN1216 to eliminate any chances of issues caused by my code or compiling environment. If you have access to the required hardware can you test it ?

0 Kudos
Reply

3,034 Views
estephania_mart
NXP TechSupport
NXP TechSupport

Sorry for the late response, the JN SDK's were under a maintenance, could you please check if you still have the issue? 

Regards, 

Estephania 

0 Kudos
Reply

3,034 Views
dmsherazi
Contributor IV

Thanks for the response. I would check that and come back to you !

0 Kudos
Reply