2025-03-31 1:11 PM - edited 2025-04-01 10:25 AM
Hello!
I am continuing my journey to Zigbee on WB55 and facing new strange behavior
If i select Temperature measurement server or Pressure measurement server or whatever server, the code hangs on
zigbee_app_info.temperature_meas_server_1 = ZbZclTempMeasServerAlloc(zigbee_app_info.zb, SW1_ENDPOINT, TEMP_MIN_1, TEMP_MAX_1, TEMP_TOLERANCE_1);
If I choose a client, the process of joining has successfully started. If I choose something where i should not choose MIN/MAX of measurement, the process of joining successfully started
I use MIN/MAX params what I've found in the TemperatureMeasServerCoord example
#define TEMP_MIN_1 (int16_t)0xf060 /* -40C */
#define TEMP_MAX_1 (int16_t)0x30d4 /* 125C */
#define TEMP_TOLERANCE_1 (int16_t)0x0032 /* +-0.5C */
But, i cant set `TEMP_MIN_1 ` in the CubeMX - it just drops my attempts to set HEX and returns to it's initial negative value.
This values are unsuccessful too
#define TEMP_MIN_1 -4000
#define TEMP_MAX_1 0x30d4
#define TEMP_TOLERANCE_1 0x0032
2025-04-05 6:50 AM - edited 2025-04-05 6:52 AM
Actually, it hangs right there. In compilated zigbee lib
I've tryed to change fw versions from 1.19 till the newest one 1.22.1 - same result
2025-04-07 2:14 AM
Hi,
The application is working on my side properly, I tried to use the files you provided and generate the project, no hang is occured.
Please have a look on the application examples to make a comparison with your custom implementation.
Ouadi
2025-04-07 6:32 AM
I use CLion for making this projects and i forgot to enable hardware floating point
add_compile_definitions(ARM_MATH_CM4;ARM_MATH_MATRIX_CHECK;ARM_MATH_ROUNDING)
add_compile_options(-mfloat-abi=hard -mfpu=fpv4-sp-d16)
add_link_options(-mfloat-abi=hard -mfpu=fpv4-sp-d16)
This lines should be uncommented in `CMakeLists_template.txt`
Let it stay here, may be it helps someone in future )
Thank you, for testing my files, any way!