OU
Size: a a a
OU
OU
OU
A
#include "lwip.h"
#include "lwip/apps/http_client.h"
httpc_get_file(&serverIP, 80, serverURI, &connSettings, recv_fn, &httpCallbackArg, 0);
c:\st\stm32cubeide_1.6.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\bin\ld.exe: Core/Src/main.o: in function `main':
C:/Users/alexe/STM32CubeIDE/workspace_1.6.0/F767-HTTP-1/Debug/../Core/Src/main.c:118: undefined reference to `httpc_get_file'
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:89: F767-HTTP-1.elf] Error 1
"make -j8 all" terminated with exit code 2. Build might be incomplete.
ВТ
OD
void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart)
{
if (huart == &huart1)
{
uint32_t er = HAL_UART_GetError(&huart1);
if (er & HAL_UART_ERROR_PE)
{
HAL_UART_Transmit(&huart1, (uint8_t*) "ERR_Callbck - Parity error\n", 27, 1000);
__HAL_UART_CLEAR_PEFLAG(&huart1);
}
if (er & HAL_UART_ERROR_NE)
{
HAL_UART_Transmit(&huart1, (uint8_t*) "ERR_Callbck - Noise error\n", 26, 1000);
__HAL_UART_CLEAR_NEFLAG(&huart1);
}
if (er & HAL_UART_ERROR_FE)
{
HAL_UART_Transmit(&huart1, (uint8_t*) "ERR_Callbck - Frame error\n", 26, 1000);
__HAL_UART_CLEAR_FEFLAG(&huart1);
}
if (er & HAL_UART_ERROR_ORE)
{
HAL_UART_Transmit(&huart1, (uint8_t*) "ERR_Callbck - Overrun error\n", 28, 1000);
__HAL_UART_CLEAR_OREFLAG(huart);
}
if (er & HAL_UART_ERROR_DMA)
{
HAL_UART_Transmit(&huart1, (uint8_t*) "ERR_Callbck - DMA transfer error\n", 33, 1000);
__HAL_UART_CLEAR_NEFLAG(&huart1);
}
huart->ErrorCode = HAL_UART_ERROR_NONE;
}
}ВТ
ВТ
СИ
СИ
СИ
DD
DD