Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Avoid "Error: No OTA data buffers available" on LPC54018 #1621

Merged
merged 1 commit into from
Dec 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Contributor

@pvyawaha pvyawaha Dec 14, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noting that as the file block size is 4 KB we are reserving 40 KB for data buffers.


/**
* @brief The protocol selected for OTA control operations.
Expand Down Expand Up @@ -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_ */
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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_ */