Linking error Beyond Studio

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

Linking error Beyond Studio

911 Views
jurijhuebner
Contributor I

Hello,

I have started with project JN-AN-1220-Zigbee-3-0-Sensors to build a Thermostat, but I get everytime a linking error and I do not understand why.

I have configured the zcl_options.h                         

                               #define CLD_THERMOSTAT
                               #define THERMOSTAT_SERVER

And also create 

                               extern tsHA_ThermostatDevice sThermostat;

And added

                                #include "thermostat_device.h"

eZCL_Status = eHA_RegisterThermostatEndPoint(THERMOSTAT_SENSOR_ENDPOINT, fptr, &sThermostat);

 

I can see that the path for the libaries is correct, but anyway added it twice for testing, it has no effect.

pastedImage_1.jpg

Tags (2)
0 Kudos
3 Replies

596 Views
jurijhuebner
Contributor I

Hello all,

I think I found the issue.

If you add all files for the Thermostat Cluster you need also to activate the cluster in your make file:

#APP_CLUSTER_LIGHTING_SRC ?=1
#APP_CLUSTERS_MEASUREMENT_AND_SENSING_SRC ?=1
#APP_CLUSTERS_OTA_SRC ?=1
#APP_CLUSTERS_ENERGY_AT_HOME_SRC ?=1
#APP_CLUSTERS_GREENPOWER_SRC ?=1
APP_CLUSTERS_HVAC_SRC ?=1
#APP_CLUSTERS_SMART_ENERGY_SRC ?=1
#APP_CLUSTERS_IAS_SRC ?=1

Try it out. 

0 Kudos

596 Views
tom_jacobson
Contributor II

Hi Jurij,

It looks like you and I have the same problem. From what I can tell based on my problem, the compiler sees the .h file where the function is stored (in your case, eHA_RegisterThermostateEndpoint), but the linker can't find the function in the .c file (or .lib). Is there a way to add in the source file's location, besides pulling it directly into the project?

0 Kudos

596 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Jurij,

Could you please share the screenshot of the contents of the JN-AN-1220 and JN-SW-4170 folders.

ensuring that you have clicked in the address bar at the top of Windows Explorer.

C:\NXP\bstudio_nxp\sdk\JN-SW-4170

C:\NXP\bstudio_nxp\workspace\JN-AN-1220-Zigbee-3-0-Sensors

Regards,

Mario

0 Kudos