Function rtParseArgsForExtMode() call LwIP thread when opening
TCP/IP connection. That causes fault if is initialization called
before starting scheduler. Problem is solved by moving initialization
of communication to extmode thread.
void ext_mode_comm_task(void* p)
{
drv_sci_set_crlf_conv_en(FALSE); /* Disable CR->CRLF conversion */
+ rtParseArgsForExtMode(0, NULL);
%<SLibGenERTExtModeInit()>
xSemaphoreGive(ext_mode_ready);
%if extMode == 1
/* External mode */
- rtParseArgsForExtMode(0, NULL);
if (xTaskCreate(ext_mode_comm_task, "ext_mode_comm_task", 1024, NULL, EXTMODE_PRIORITY, NULL) != pdPASS) {
rpp_sci_printk("ERROR: Cannot spawn model task.\r\n");