From aaaf13a207bc290318825743629a298f0cd22b2e Mon Sep 17 00:00:00 2001 From: Dan Good Date: Fri, 13 Dec 2019 15:50:38 -0800 Subject: [PATCH] Avoid "Error: No OTA data buffers available" on LPC54018 --- .../aws_demos/config_files/FreeRTOSConfig.h | 2 +- .../aws_demos/config_files/aws_ota_agent_config.h | 8 +------- .../aws_tests/config_files/aws_ota_agent_config.h | 8 +------- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/vendors/nxp/boards/lpc54018iotmodule/aws_demos/config_files/FreeRTOSConfig.h b/vendors/nxp/boards/lpc54018iotmodule/aws_demos/config_files/FreeRTOSConfig.h index 366f28ea162..40044316560 100644 --- a/vendors/nxp/boards/lpc54018iotmodule/aws_demos/config_files/FreeRTOSConfig.h +++ b/vendors/nxp/boards/lpc54018iotmodule/aws_demos/config_files/FreeRTOSConfig.h @@ -140,7 +140,7 @@ /* Sets the length of the buffers into which logging messages are written - so * also defines the maximum length of each log message. */ -#define configLOGGING_MAX_MESSAGE_LENGTH 100 +#define configLOGGING_MAX_MESSAGE_LENGTH 128 /* Set to 1 to prepend each log message with a message number, the task name, * and a time stamp. */ diff --git a/vendors/nxp/boards/lpc54018iotmodule/aws_demos/config_files/aws_ota_agent_config.h b/vendors/nxp/boards/lpc54018iotmodule/aws_demos/config_files/aws_ota_agent_config.h index b8719841725..93259a134a3 100644 --- a/vendors/nxp/boards/lpc54018iotmodule/aws_demos/config_files/aws_ota_agent_config.h +++ b/vendors/nxp/boards/lpc54018iotmodule/aws_demos/config_files/aws_ota_agent_config.h @@ -100,7 +100,7 @@ * This configurations parameter sets the maximum number of static data buffers used by * the OTA agent for job and file data blocks received. */ -#define otaconfigMAX_NUM_OTA_DATA_BUFFERS 2U +#define otaconfigMAX_NUM_OTA_DATA_BUFFERS 10U /** * @brief The protocol selected for OTA control operations. @@ -137,10 +137,4 @@ */ #define configOTA_PRIMARY_DATA_PROTOCOL ( OTA_DATA_OVER_MQTT ) - - /** - * @brief Maximum number of entries in the OTA message queue. Larger values reduce packet drops. - */ -#define configOTA_NUM_MSG_Q_ENTRIES 40U - #endif /* _AWS_OTA_AGENT_CONFIG_H_ */ diff --git a/vendors/nxp/boards/lpc54018iotmodule/aws_tests/config_files/aws_ota_agent_config.h b/vendors/nxp/boards/lpc54018iotmodule/aws_tests/config_files/aws_ota_agent_config.h index b8719841725..93259a134a3 100644 --- a/vendors/nxp/boards/lpc54018iotmodule/aws_tests/config_files/aws_ota_agent_config.h +++ b/vendors/nxp/boards/lpc54018iotmodule/aws_tests/config_files/aws_ota_agent_config.h @@ -100,7 +100,7 @@ * This configurations parameter sets the maximum number of static data buffers used by * the OTA agent for job and file data blocks received. */ -#define otaconfigMAX_NUM_OTA_DATA_BUFFERS 2U +#define otaconfigMAX_NUM_OTA_DATA_BUFFERS 10U /** * @brief The protocol selected for OTA control operations. @@ -137,10 +137,4 @@ */ #define configOTA_PRIMARY_DATA_PROTOCOL ( OTA_DATA_OVER_MQTT ) - - /** - * @brief Maximum number of entries in the OTA message queue. Larger values reduce packet drops. - */ -#define configOTA_NUM_MSG_Q_ENTRIES 40U - #endif /* _AWS_OTA_AGENT_CONFIG_H_ */