This repository was archived by the owner on Apr 7, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed
STMicroelectronics/STM32L4_L4+/app Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 1919#include "azure_device_x509_cert_config.h"
2020#include "azure_pnp_info.h"
2121
22- #define TELEMETRY_SCRATCH_BUFFER_SIZE 128
23- #define CALLBACK_SCRATCH_BUFFER_SIZE 128
24-
2522#define IOT_MODEL_ID "dtmi:azurertos:devkit:gsg;2"
2623
2724#define TELEMETRY_TEMPERATURE "temperature"
Original file line number Diff line number Diff line change @@ -48,15 +48,15 @@ set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
4848set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
4949set (CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
5050
51- set (CMAKE_COMMON_FLAGS "--specs=nano.specs -ffunction-sections -fdata-sections -fno-strict-aliasing -fno-builtin -fshort-enums -Wall -Wextra -Wuninitialized -Wshadow -Wdouble-promotion -Werror -Wno-unused-parameter" )
51+ set (CMAKE_COMMON_FLAGS "-g3 - -specs=nano.specs -ffunction-sections -fdata-sections -fno-strict-aliasing -fno-builtin -fshort-enums -Wall -Wextra -Wuninitialized -Wshadow -Wdouble-promotion -Werror -Wno-unused-parameter" )
5252set (CMAKE_C_FLAGS "${MCPU_FLAGS} ${VFP_FLAGS} ${CMAKE_COMMON_FLAGS} " )
5353set (CMAKE_CXX_FLAGS "${MCPU_FLAGS} ${VFP_FLAGS} ${CMAKE_COMMON_FLAGS} " )
5454set (CMAKE_ASM_FLAGS "${MCPU_FLAGS} ${VFP_FLAGS} " )
5555set (CMAKE_EXE_LINKER_FLAGS "${LD_FLAGS} -fno-common -Wl,--gc-sections,-print-memory-usage" )
5656
57- set (CMAKE_C_FLAGS_DEBUG "-O0 -g3 " )
58- set (CMAKE_CXX_ASM_FLAGS_DEBUG "-O0 -g3 " )
59- set (CMAKE_ASM_FLAGS_DEBUG "-g3 " )
57+ set (CMAKE_C_FLAGS_DEBUG "-O0" )
58+ set (CMAKE_CXX_ASM_FLAGS_DEBUG "-O0" )
59+ set (CMAKE_ASM_FLAGS_DEBUG "" )
6060
6161set (CMAKE_C_FLAGS_RELEASE "-Os" )
6262set (CMAKE_CXX_FLAGS_RELEASE "-Os" )
Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ static VOID process_writable_properties(AZURE_IOT_NX_CONTEXT* nx_context)
319319
320320static VOID event_thread (ULONG parameter )
321321{
322- ULONG app_events ;
322+ ULONG app_events = 0 ;
323323
324324 AZURE_IOT_NX_CONTEXT * context = (AZURE_IOT_NX_CONTEXT * )parameter ;
325325
@@ -800,7 +800,7 @@ UINT azure_iot_nx_client_disconnect(AZURE_IOT_NX_CONTEXT* context)
800800UINT azure_iot_nx_client_properties_request_and_wait (AZURE_IOT_NX_CONTEXT * context )
801801{
802802 UINT status ;
803- ULONG app_events ;
803+ ULONG app_events = 0 ;
804804
805805 // Request the properties
806806 if ((status = nx_azure_iot_hub_client_properties_request (& context -> iothub_client , NX_WAIT_FOREVER )))
You can’t perform that action at this time.
0 commit comments