Witam,
posiadam STM32F429 na którym chcę uruchomić klienta http używając lwIP Raw Api.
Problem jest taki że program działa kiedy używam debuggera, bez niego
funkcja tcp_connect() zwraca błąd -4:
Konfiguracja lwIP:
Przykład pochodzi ze strony:Link
Wersje oprogramowania:
Proszę o jakieś sugestie bo nie mam już pomysłu jak to rozwiązać.
posiadam STM32F429 na którym chcę uruchomić klienta http używając lwIP Raw Api.
Problem jest taki że program działa kiedy używam debuggera, bez niego
funkcja tcp_connect() zwraca błąd -4:
/** Routing problem. */
ERR_RTE = -4,
void tcp_client_init(void)
{
/* 1. create new tcp pcb */
struct tcp_pcb *tpcb;
tpcb = tcp_new();
/* 2. Connect to the server */
ip_addr_t destIPADDR;
IP_ADDR4(&destIPADDR, 192, 168, 0, 55);
err_t err=tcp_connect(tpcb, &destIPADDR, 31, tcp_client_connected);
printf("tcp_connect err_t: %i\r\n", err);
}
Konfiguracja lwIP:
Przykład pochodzi ze strony:Link
Wersje oprogramowania:
STM32CubeIDE
Version: 1.16.0
Build: 21983_20240628_1741 (UTC)
STM32CubeF4 Firmware Package V1.28.0 / 01-November-2023 Main Changes
General updates to fix known defects and implementation enhancements.
Deploy the support of STM32CubeIDE toolchain on all projects
SW4STM32 toolchain support is discontinued (Warning : Any reference to SW4STM32 in STM32CubeF4 firmware package documents should be interpreted as STM32CubeIDE).
Upgraded USB Device Lib to use V2.11.2.
Upgraded USB Host Lib to use V3.5.1.
Upgraded PDM2PCM Lib to use V3.5.1.
Upgraded MbedTLS Lib to use V2.16.2 (ST modified 2023-10-24).
Upgraded LwIP Lib to use V2.1.2 (ST modified 2023-08-28).
Upgraded FatFS Lib to use VR0.12c (ST modified 2023-08-18).
Upgraded FreeRTOS Lib to use V10.3.1 (ST modified 2023-08-18).Proszę o jakieś sugestie bo nie mam już pomysłu jak to rozwiązać.