Skip to content

Commit 0692fc6

Browse files
authored
Merge pull request #12567 from jeromecoutant/PR_EMAC_TRACE
STM32 EMAC : increase thread size when mbed-trace is enabled
2 parents 749ce58 + 3a02671 commit 0692fc6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

features/netsocket/emac-drivers/TARGET_STM/stm32xx_emac.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,12 @@ bool STM32_EMAC::power_up()
889889
}
890890

891891
/* Worker thread */
892+
#if MBED_CONF_MBED_TRACE_ENABLE
893+
thread = create_new_thread("stm32_emac_thread", &STM32_EMAC::thread_function, this, MBED_CONF_STM32_EMAC_THREAD_STACKSIZE*2, THREAD_PRIORITY, &thread_cb);
894+
#else
892895
thread = create_new_thread("stm32_emac_thread", &STM32_EMAC::thread_function, this, MBED_CONF_STM32_EMAC_THREAD_STACKSIZE, THREAD_PRIORITY, &thread_cb);
896+
#endif
897+
893898

894899
phy_task_handle = mbed::mbed_event_queue()->call_every(PHY_TASK_PERIOD_MS, mbed::callback(this, &STM32_EMAC::phy_task));
895900

0 commit comments

Comments
 (0)