Skip to content

Commit

Permalink
Fix stack overflow with too small thread stack size
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Dec 15, 2019
1 parent 3700af2 commit 2ff30a5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion esp_at_lib/src/esp/esp_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,7 @@ espi_process_sub_cmd(esp_msg_t* msg, uint8_t* is_ok, uint8_t* is_error, uint8_t*
} else if (msg->i == 1 && CMD_IS_CUR(ESP_CMD_TCPIP_CIPSTART)) {
SET_NEW_CMD(ESP_CMD_TCPIP_CIPSTATUS); /* Go to status mode */
} else if (msg->i == 2 && CMD_IS_CUR(ESP_CMD_TCPIP_CIPSTATUS)) {
/* Check if connect actually succedded */
/* Check if connect actually succeeded */
if (!msg->msg.conn_start.success) {
*is_ok = 0;
*is_error = 1;
Expand Down
2 changes: 1 addition & 1 deletion esp_at_lib/src/include/system/esp_sys_cmsis_os.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ typedef osPriority_t esp_sys_thread_prio_t;
#define ESP_SYS_MUTEX_NULL ((esp_sys_mutex_t)0)
#define ESP_SYS_TIMEOUT ((uint32_t)osWaitForever)
#define ESP_SYS_THREAD_PRIO (osPriorityNormal)
#define ESP_SYS_THREAD_SS (256)
#define ESP_SYS_THREAD_SS (512)

#endif /* ESP_CFG_OS && !__DOXYGEN__ */

Expand Down
1 change: 0 additions & 1 deletion esp_at_lib/src/system/esp_ll_stm32.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ static osMessageQueueId_t usart_ll_mbox_id;
*/
static void
usart_ll_thread(void* arg) {
static size_t old_pos;
size_t pos;

ESP_UNUSED(arg);
Expand Down
2 changes: 1 addition & 1 deletion esp_at_lib/src/system/esp_sys_cmsis_os.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* \file esp_sys_cmsis_os.c
* \brief System dependant functions for CMSIS based operating system
* \brief System dependent functions for CMSIS based operating system
*/

/*
Expand Down

0 comments on commit 2ff30a5

Please sign in to comment.