From c646df5c2a9bdd973a9e2f363617b4b5e74a6110 Mon Sep 17 00:00:00 2001 From: wandering1 <1624155937@qq.com> Date: Wed, 22 Jul 2026 01:46:29 +0800 Subject: [PATCH] =?UTF-8?q?FTP=E5=8F=AF=E4=BB=A5=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AGENTS.md | 2 + Drivers/BSP/CH395F/ch395f.c | 2 +- Drivers/BSP/NET/lftpd/lftpd.c | 138 ++++++---- Drivers/BSP/NET/lftpd/lftpd_inet.c | 73 +++-- Drivers/BSP/NET/lftpd/lftpd_io.c | 6 +- Drivers/BSP/NET/lftpd/private/lftpd_inet.h | 1 + Drivers/BSP/NET/net_config.h | 2 +- Drivers/BSP/NET/net_socket.c | 71 +++-- MDK-ARM/STM32F407-Demo/adc_task.__i | 5 + MDK-ARM/STM32F407-Demo/app_main.__i | 5 + MDK-ARM/STM32F407-Demo/ch395f.__i | 5 + MDK-ARM/STM32F407-Demo/ch395f_test.__i | 5 + MDK-ARM/STM32F407-Demo/cmsis_os2.__i | 5 + MDK-ARM/STM32F407-Demo/crc.__i | 5 + MDK-ARM/STM32F407-Demo/croutine.__i | 5 + MDK-ARM/STM32F407-Demo/dma.__i | 5 + MDK-ARM/STM32F407-Demo/event_groups.__i | 5 + MDK-ARM/STM32F407-Demo/ff.__i | 5 + MDK-ARM/STM32F407-Demo/freertos.__i | 5 + MDK-ARM/STM32F407-Demo/gd5f2gq5ue.__i | 5 + MDK-ARM/STM32F407-Demo/gpio.__i | 5 + MDK-ARM/STM32F407-Demo/heap_4.__i | 5 + MDK-ARM/STM32F407-Demo/i2c.__i | 5 + MDK-ARM/STM32F407-Demo/journal.__i | 5 + MDK-ARM/STM32F407-Demo/lftpd.__i | 5 + MDK-ARM/STM32F407-Demo/lftpd_inet.__i | 5 + MDK-ARM/STM32F407-Demo/lftpd_io.__i | 5 + MDK-ARM/STM32F407-Demo/lftpd_string.__i | 5 + MDK-ARM/STM32F407-Demo/list.__i | 5 + MDK-ARM/STM32F407-Demo/main.__i | 5 + MDK-ARM/STM32F407-Demo/map.__i | 5 + MDK-ARM/STM32F407-Demo/nand_ftl.__i | 5 + MDK-ARM/STM32F407-Demo/net_select.__i | 5 + MDK-ARM/STM32F407-Demo/net_socket.__i | 5 + MDK-ARM/STM32F407-Demo/net_task.__i | 5 + MDK-ARM/STM32F407-Demo/port.__i | 5 + MDK-ARM/STM32F407-Demo/queue.__i | 5 + MDK-ARM/STM32F407-Demo/ringbuf.__i | 5 + MDK-ARM/STM32F407-Demo/rs485.__i | 5 + MDK-ARM/STM32F407-Demo/rs485_task.__i | 5 + MDK-ARM/STM32F407-Demo/sd2506.__i | 5 + MDK-ARM/STM32F407-Demo/spi.__i | 5 + .../STM32F407-Demo/startup_stm32f407xx._ia | 5 + MDK-ARM/STM32F407-Demo/stm32f4xx_hal.__i | 5 + .../STM32F407-Demo/stm32f4xx_hal_cortex.__i | 5 + MDK-ARM/STM32F407-Demo/stm32f4xx_hal_dma.__i | 5 + .../STM32F407-Demo/stm32f4xx_hal_dma_ex.__i | 5 + MDK-ARM/STM32F407-Demo/stm32f4xx_hal_exti.__i | 5 + .../STM32F407-Demo/stm32f4xx_hal_flash.__i | 5 + .../STM32F407-Demo/stm32f4xx_hal_flash_ex.__i | 5 + .../stm32f4xx_hal_flash_ramfunc.__i | 5 + MDK-ARM/STM32F407-Demo/stm32f4xx_hal_gpio.__i | 5 + MDK-ARM/STM32F407-Demo/stm32f4xx_hal_i2c.__i | 5 + .../STM32F407-Demo/stm32f4xx_hal_i2c_ex.__i | 5 + MDK-ARM/STM32F407-Demo/stm32f4xx_hal_msp.__i | 5 + MDK-ARM/STM32F407-Demo/stm32f4xx_hal_pwr.__i | 5 + .../STM32F407-Demo/stm32f4xx_hal_pwr_ex.__i | 5 + MDK-ARM/STM32F407-Demo/stm32f4xx_hal_rcc.__i | 5 + .../STM32F407-Demo/stm32f4xx_hal_rcc_ex.__i | 5 + MDK-ARM/STM32F407-Demo/stm32f4xx_hal_spi.__i | 5 + MDK-ARM/STM32F407-Demo/stm32f4xx_hal_tim.__i | 5 + .../STM32F407-Demo/stm32f4xx_hal_tim_ex.__i | 5 + .../stm32f4xx_hal_timebase_tim.__i | 5 + MDK-ARM/STM32F407-Demo/stm32f4xx_hal_uart.__i | 5 + MDK-ARM/STM32F407-Demo/stm32f4xx_it.__i | 5 + MDK-ARM/STM32F407-Demo/stream_buffer.__i | 5 + MDK-ARM/STM32F407-Demo/sys_clock.__i | 5 + MDK-ARM/STM32F407-Demo/system_stm32f4xx.__i | 5 + MDK-ARM/STM32F407-Demo/tasks.__i | 5 + MDK-ARM/STM32F407-Demo/timers.__i | 5 + MDK-ARM/STM32F407-Demo/tpafe5160.__i | 5 + MDK-ARM/STM32F407-Demo/usart.__i | 5 + MDK-ARM/build_log.txt | 71 ----- docs/CH395F_Trap_Records.md | 81 ++++++ test/ftp_capture.py | 256 ++++++++++++++++++ test/test.txt | 0 76 files changed, 851 insertions(+), 172 deletions(-) create mode 100644 MDK-ARM/STM32F407-Demo/adc_task.__i create mode 100644 MDK-ARM/STM32F407-Demo/app_main.__i create mode 100644 MDK-ARM/STM32F407-Demo/ch395f.__i create mode 100644 MDK-ARM/STM32F407-Demo/ch395f_test.__i create mode 100644 MDK-ARM/STM32F407-Demo/cmsis_os2.__i create mode 100644 MDK-ARM/STM32F407-Demo/crc.__i create mode 100644 MDK-ARM/STM32F407-Demo/croutine.__i create mode 100644 MDK-ARM/STM32F407-Demo/dma.__i create mode 100644 MDK-ARM/STM32F407-Demo/event_groups.__i create mode 100644 MDK-ARM/STM32F407-Demo/ff.__i create mode 100644 MDK-ARM/STM32F407-Demo/freertos.__i create mode 100644 MDK-ARM/STM32F407-Demo/gd5f2gq5ue.__i create mode 100644 MDK-ARM/STM32F407-Demo/gpio.__i create mode 100644 MDK-ARM/STM32F407-Demo/heap_4.__i create mode 100644 MDK-ARM/STM32F407-Demo/i2c.__i create mode 100644 MDK-ARM/STM32F407-Demo/journal.__i create mode 100644 MDK-ARM/STM32F407-Demo/lftpd.__i create mode 100644 MDK-ARM/STM32F407-Demo/lftpd_inet.__i create mode 100644 MDK-ARM/STM32F407-Demo/lftpd_io.__i create mode 100644 MDK-ARM/STM32F407-Demo/lftpd_string.__i create mode 100644 MDK-ARM/STM32F407-Demo/list.__i create mode 100644 MDK-ARM/STM32F407-Demo/main.__i create mode 100644 MDK-ARM/STM32F407-Demo/map.__i create mode 100644 MDK-ARM/STM32F407-Demo/nand_ftl.__i create mode 100644 MDK-ARM/STM32F407-Demo/net_select.__i create mode 100644 MDK-ARM/STM32F407-Demo/net_socket.__i create mode 100644 MDK-ARM/STM32F407-Demo/net_task.__i create mode 100644 MDK-ARM/STM32F407-Demo/port.__i create mode 100644 MDK-ARM/STM32F407-Demo/queue.__i create mode 100644 MDK-ARM/STM32F407-Demo/ringbuf.__i create mode 100644 MDK-ARM/STM32F407-Demo/rs485.__i create mode 100644 MDK-ARM/STM32F407-Demo/rs485_task.__i create mode 100644 MDK-ARM/STM32F407-Demo/sd2506.__i create mode 100644 MDK-ARM/STM32F407-Demo/spi.__i create mode 100644 MDK-ARM/STM32F407-Demo/startup_stm32f407xx._ia create mode 100644 MDK-ARM/STM32F407-Demo/stm32f4xx_hal.__i create mode 100644 MDK-ARM/STM32F407-Demo/stm32f4xx_hal_cortex.__i create mode 100644 MDK-ARM/STM32F407-Demo/stm32f4xx_hal_dma.__i create mode 100644 MDK-ARM/STM32F407-Demo/stm32f4xx_hal_dma_ex.__i create mode 100644 MDK-ARM/STM32F407-Demo/stm32f4xx_hal_exti.__i create mode 100644 MDK-ARM/STM32F407-Demo/stm32f4xx_hal_flash.__i create mode 100644 MDK-ARM/STM32F407-Demo/stm32f4xx_hal_flash_ex.__i create mode 100644 MDK-ARM/STM32F407-Demo/stm32f4xx_hal_flash_ramfunc.__i create mode 100644 MDK-ARM/STM32F407-Demo/stm32f4xx_hal_gpio.__i create mode 100644 MDK-ARM/STM32F407-Demo/stm32f4xx_hal_i2c.__i create mode 100644 MDK-ARM/STM32F407-Demo/stm32f4xx_hal_i2c_ex.__i create mode 100644 MDK-ARM/STM32F407-Demo/stm32f4xx_hal_msp.__i create mode 100644 MDK-ARM/STM32F407-Demo/stm32f4xx_hal_pwr.__i create mode 100644 MDK-ARM/STM32F407-Demo/stm32f4xx_hal_pwr_ex.__i create mode 100644 MDK-ARM/STM32F407-Demo/stm32f4xx_hal_rcc.__i create mode 100644 MDK-ARM/STM32F407-Demo/stm32f4xx_hal_rcc_ex.__i create mode 100644 MDK-ARM/STM32F407-Demo/stm32f4xx_hal_spi.__i create mode 100644 MDK-ARM/STM32F407-Demo/stm32f4xx_hal_tim.__i create mode 100644 MDK-ARM/STM32F407-Demo/stm32f4xx_hal_tim_ex.__i create mode 100644 MDK-ARM/STM32F407-Demo/stm32f4xx_hal_timebase_tim.__i create mode 100644 MDK-ARM/STM32F407-Demo/stm32f4xx_hal_uart.__i create mode 100644 MDK-ARM/STM32F407-Demo/stm32f4xx_it.__i create mode 100644 MDK-ARM/STM32F407-Demo/stream_buffer.__i create mode 100644 MDK-ARM/STM32F407-Demo/sys_clock.__i create mode 100644 MDK-ARM/STM32F407-Demo/system_stm32f4xx.__i create mode 100644 MDK-ARM/STM32F407-Demo/tasks.__i create mode 100644 MDK-ARM/STM32F407-Demo/timers.__i create mode 100644 MDK-ARM/STM32F407-Demo/tpafe5160.__i create mode 100644 MDK-ARM/STM32F407-Demo/usart.__i create mode 100644 test/ftp_capture.py create mode 100644 test/test.txt diff --git a/AGENTS.md b/AGENTS.md index 7afc949..ae2a12f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -222,6 +222,8 @@ HAL_Init() → SystemClock_Config() → MX_GPIO_Init() → MX_USART1_UART_Init() - **Trap 08** RECV 中断电平触发无限循环 - **Trap 09** PHY link up 后立即 open_socket 失败(需启动延时 + 重试兜底) - **Trap 10** 消息队列值拷贝导致结果回传丢失(改用 xTaskNotify 通知值) +- **Trap 11** `net_accept_locked` 拒绝 standalone_accept 的 ESTABLISHED 状态 +- **Trap 12** FatFS FF_USE_LFN=0 且不接受 `/` 前缀路径(用 `to_fatfs_path()` 剥离) 当前已记录陷阱(GD5F2GQ5UE): - **Trap 01** 块擦除地址错误(`byte_addr → page_addr`),导致先前所有实验结论无效。详见 `docs/GD5F2GQ5UE_Trap_Records.md` diff --git a/Drivers/BSP/CH395F/ch395f.c b/Drivers/BSP/CH395F/ch395f.c index 4205a01..9d89210 100644 --- a/Drivers/BSP/CH395F/ch395f.c +++ b/Drivers/BSP/CH395F/ch395f.c @@ -25,7 +25,7 @@ #define CH395F_RESET_DELAY_MS 20U /* 复位后等待延时(ms�?*/ #define CH395F_INIT_TIMEOUT_MS 500U /* 初始化超时时间(ms�?*/ #define CH395F_SPI_BEGIN_DELAY_MS 1U /* SPI 事务开始延时(ms�?*/ -#define CH395F_DMA_BUF_SIZE 1500U /* DMA 缓冲区最大字节数 */ +#define CH395F_DMA_BUF_SIZE 4100U /* DMA 缓冲区(header 4 + max 4096 data) */ /* * 私有变量�?- DMA 传输相关 diff --git a/Drivers/BSP/NET/lftpd/lftpd.c b/Drivers/BSP/NET/lftpd/lftpd.c index 4db147c..90f222c 100644 --- a/Drivers/BSP/NET/lftpd/lftpd.c +++ b/Drivers/BSP/NET/lftpd/lftpd.c @@ -182,11 +182,14 @@ static int receive_file(int socket, const char *path) return -1; } - unsigned char buffer[1024]; + static unsigned char s_recv_buf[4096]; + int bufsize = 4096; int err; + int total = 0; - while ((err = lftpd_inet_read(socket, buffer, sizeof(buffer))) > 0) { - if (lftpd_io_write(fh, buffer, err) != err) { + while ((err = lftpd_inet_read(socket, s_recv_buf, bufsize)) > 0) { + total += err; + if (lftpd_io_write(fh, s_recv_buf, err) != err) { err = -1; break; } @@ -197,6 +200,11 @@ static int receive_file(int socket, const char *path) if (err < 0) { return err; } + if (total == 0) { + lftpd_log_error("received 0 bytes"); + lftpd_io_unlink(path); + return -1; + } return 0; } @@ -209,18 +217,15 @@ static int cmd_cwd(lftpd_client_t *client, const char *arg) char *path = lftpd_io_canonicalize_path(client->directory, arg); - uint32_t size; - int is_dir; - if (lftpd_io_stat(path, &size, &is_dir) != 0) { - send_simple_response(client->socket, 550, STATUS_550); - free(path); - return -1; - } - - if (!is_dir) { - send_simple_response(client->socket, 550, STATUS_550); - free(path); - return -1; + /* 根目录始终有效,跳过 stat 检查(FatFS FF_FS_RPATH=0 下 stat 根目录可能失败) */ + if (strcmp(path, "/") != 0) { + uint32_t size; + int is_dir; + if (lftpd_io_stat(path, &size, &is_dir) != 0 || !is_dir) { + send_simple_response(client->socket, 550, STATUS_550); + free(path); + return -1; + } } strncpy(client->directory, path, sizeof(client->directory) - 1); @@ -262,6 +267,11 @@ static int cmd_dele(lftpd_client_t *client, const char *arg) static int cmd_epsv(lftpd_client_t *client, const char *arg) { + if (client->data_socket >= 0) { + lftpd_inet_close(client->data_socket); + client->data_socket = -1; + } + int listener_socket = lftpd_inet_listen(0); if (listener_socket < 0) { send_simple_response(client->socket, 425, STATUS_425); @@ -272,16 +282,9 @@ static int cmd_epsv(lftpd_client_t *client, const char *arg) send_simple_response(client->socket, 229, STATUS_229, port); - lftpd_log_debug("waiting for data port connection on port %d...", port); - int data_sock = lftpd_inet_accept(listener_socket); - if (data_sock < 0) { - lftpd_log_error("error accepting client socket"); - lftpd_inet_close(listener_socket); - return -1; - } - lftpd_log_debug("data port connection received..."); + lftpd_log_debug("EPSV listener on port %d", port); - client->data_socket = data_sock; + client->data_socket = listener_socket; return 0; } @@ -304,8 +307,17 @@ static int cmd_list(lftpd_client_t *client, const char *arg) } send_simple_response(client->socket, 150, STATUS_150); - int err = send_list(client->data_socket, client->directory); - lftpd_inet_close(client->data_socket); + int data_sock = lftpd_inet_accept_timeout(client->data_socket, 5000); + if (data_sock < 0) { + lftpd_log_error("%s accept failed, sk=%d", __func__, client->data_socket); + send_simple_response(client->socket, 425, STATUS_425); + lftpd_inet_close(client->data_socket); + client->data_socket = -1; + return -1; + } + + int err = send_list(data_sock, client->directory); + lftpd_inet_close(data_sock); client->data_socket = -1; if (err == 0) { @@ -324,8 +336,17 @@ static int cmd_nlst(lftpd_client_t *client, const char *arg) } send_simple_response(client->socket, 150, STATUS_150); - int err = send_nlst(client->data_socket, client->directory); - lftpd_inet_close(client->data_socket); + int data_sock = lftpd_inet_accept_timeout(client->data_socket, 5000); + if (data_sock < 0) { + lftpd_log_error("%s accept failed, sk=%d", __func__, client->data_socket); + send_simple_response(client->socket, 425, STATUS_425); + lftpd_inet_close(client->data_socket); + client->data_socket = -1; + return -1; + } + + int err = send_nlst(data_sock, client->directory); + lftpd_inet_close(data_sock); client->data_socket = -1; if (err == 0) { @@ -353,6 +374,11 @@ static int cmd_pasv(lftpd_client_t *client, const char *arg) int listener_socket = -1; int retry; + if (client->data_socket >= 0) { + lftpd_inet_close(client->data_socket); + client->data_socket = -1; + } + for (retry = 0; retry < 3; retry++) { listener_socket = lftpd_inet_listen(0); if (listener_socket >= 0) break; @@ -386,16 +412,9 @@ static int cmd_pasv(lftpd_client_t *client, const char *arg) (port >> 8) & 0xff, (port >> 0) & 0xff); } - lftpd_log_debug("waiting for data port connection on port %d...", port); - int data_sock = lftpd_inet_accept(listener_socket); - if (data_sock < 0) { - lftpd_log_error("error accepting client socket"); - lftpd_inet_close(listener_socket); - return -1; - } - lftpd_log_debug("data port connection received..."); + lftpd_log_debug("PASV listener on port %d", port); - client->data_socket = data_sock; + client->data_socket = listener_socket; return 0; } @@ -419,18 +438,29 @@ static int cmd_retr(lftpd_client_t *client, const char *arg) } send_simple_response(client->socket, 150, STATUS_150); + int data_sock = lftpd_inet_accept_timeout(client->data_socket, 5000); + if (data_sock < 0) { + lftpd_log_error("%s accept failed, sk=%d", __func__, client->data_socket); + send_simple_response(client->socket, 425, STATUS_425); + lftpd_inet_close(client->data_socket); + client->data_socket = -1; + return -1; + } + char *path = lftpd_io_canonicalize_path(client->directory, arg); lftpd_log_debug("send '%s'", path); - int err = send_file(client->data_socket, path); - free(path); - lftpd_inet_close(client->data_socket); + int err = send_file(data_sock, path); + lftpd_inet_close(data_sock); client->data_socket = -1; if (err == 0) { + lftpd_log_info("DOWNLOAD '%s' OK", path); send_simple_response(client->socket, 226, STATUS_226); } else { + lftpd_log_error("DOWNLOAD '%s' FAILED", path); send_simple_response(client->socket, 450, STATUS_450); } + free(path); return 0; } @@ -464,18 +494,32 @@ static int cmd_stor(lftpd_client_t *client, const char *arg) } send_simple_response(client->socket, 150, STATUS_150); + int data_sock = lftpd_inet_accept_timeout(client->data_socket, 5000); + if (data_sock < 0) { + lftpd_log_error("%s accept failed, sk=%d", __func__, client->data_socket); + send_simple_response(client->socket, 425, STATUS_425); + lftpd_inet_close(client->data_socket); + client->data_socket = -1; + return -1; + } + char *path = lftpd_io_canonicalize_path(client->directory, arg); lftpd_log_debug("receive '%s'", path); - int err = receive_file(client->data_socket, path); - free(path); - lftpd_inet_close(client->data_socket); + int err = receive_file(data_sock, path); + lftpd_inet_close(data_sock); client->data_socket = -1; if (err == 0) { + uint32_t size = 0; + int is_dir = 0; + lftpd_io_stat(path, &size, &is_dir); + lftpd_log_info("UPLOAD '%s' %lu bytes OK", path, (unsigned long)size); send_simple_response(client->socket, 226, STATUS_226); } else { + lftpd_log_error("UPLOAD '%s' FAILED", path); send_simple_response(client->socket, 450, STATUS_450); } + free(path); return 0; } @@ -548,6 +592,7 @@ static int handle_control_channel(lftpd_client_t *client) arg = lftpd_string_trim(arg_buf); } + lftpd_log_info("CMD %s %s", command_tmp, arg ? arg : ""); err = commands[i].handler(client, arg); matched = true; break; @@ -585,7 +630,7 @@ int lftpd_start(const char *directory, int port, lftpd_t *lftpd) if (client_socket < 0) { lftpd_log_error("error accepting client socket"); lftpd_inet_close(lftpd->server_socket); - break; + continue; } { @@ -614,14 +659,9 @@ int lftpd_start(const char *directory, int port, lftpd_t *lftpd) handle_control_channel(&client); lftpd->client = NULL; - /* 等待 CH395F 稳定(Trap 09) */ - vTaskDelay(pdMS_TO_TICKS(200)); - /* standalone mode: socket was closed in handle_control_channel, * loop back to create a new listener */ } - - return 0; } int lftpd_stop(lftpd_t *lftpd) diff --git a/Drivers/BSP/NET/lftpd/lftpd_inet.c b/Drivers/BSP/NET/lftpd/lftpd_inet.c index c1a6bab..13c5fc9 100644 --- a/Drivers/BSP/NET/lftpd/lftpd_inet.c +++ b/Drivers/BSP/NET/lftpd/lftpd_inet.c @@ -7,30 +7,40 @@ int lftpd_inet_listen(int port) { - int s = net_socket(NET_AF_INET, NET_SOCK_STREAM, 0); - if (s < 0) { - DBG_ERROR("error creating listener socket"); - return -1; - } + int retry; + int s; - struct net_sockaddr_in addr; - addr.sin_family = NET_AF_INET; - addr.sin_port = net_htons((uint16_t)port); - addr.sin_addr.s_addr = 0; + for (retry = 0; retry < 5; retry++) { + s = net_socket(NET_AF_INET, NET_SOCK_STREAM, 0); + if (s < 0) { + if (retry == 0) DBG_ERROR("create socket"); + vTaskDelay(pdMS_TO_TICKS(500)); + continue; + } + + struct net_sockaddr_in addr; + addr.sin_family = NET_AF_INET; + addr.sin_port = net_htons((uint16_t)port); + addr.sin_addr.s_addr = 0; + + if (net_bind(s, (struct net_sockaddr *)&addr, sizeof(addr)) < 0) { + DBG_ERROR("bind port %d", port); + net_close(s); + return -1; + } + + if (net_listen(s, 0) >= 0) { + return s; + } - if (net_bind(s, (struct net_sockaddr *)&addr, sizeof(addr)) < 0) { - DBG_ERROR("error binding listener port %d", port); net_close(s); - return -1; + if (retry < 4) { + vTaskDelay(pdMS_TO_TICKS(2000)); + } } - if (net_listen(s, 0) < 0) { - DBG_ERROR("error listening on socket"); - net_close(s); - return -1; - } - - return s; + DBG_ERROR("listen failed after 5 retries (total 10s wait)"); + return -1; } int lftpd_inet_listen_multi(int port, int backlog) @@ -81,10 +91,33 @@ int lftpd_inet_accept(int socket) if (s >= 0) { return s; } - vTaskDelay(pdMS_TO_TICKS(10)); + vTaskDelay(pdMS_TO_TICKS(100)); } } +int lftpd_inet_accept_timeout(int socket, int timeout_ms) +{ + int elapsed = 0; + + while (elapsed < timeout_ms) { + int s = net_accept(socket, NULL, NULL); + if (s >= 0) { + return s; + } + /* 数据连接已被对端关闭时提前退出,不等待超时 */ + net_sock_t *p_sock = net_get_sock(socket); + if (p_sock == NULL || p_sock->state != NET_SOCK_STATE_LISTENING) { + DBG_ERROR("data socket closed, accept aborted"); + return -1; + } + vTaskDelay(pdMS_TO_TICKS(100)); + elapsed += 100; + } + + DBG_ERROR("accept timeout (%dms)", timeout_ms); + return -1; +} + int lftpd_inet_read_line(int socket, char *buffer, size_t buffer_len) { memset(buffer, 0, buffer_len); diff --git a/Drivers/BSP/NET/lftpd/lftpd_io.c b/Drivers/BSP/NET/lftpd/lftpd_io.c index 0b8c97e..87003ed 100644 --- a/Drivers/BSP/NET/lftpd/lftpd_io.c +++ b/Drivers/BSP/NET/lftpd/lftpd_io.c @@ -11,17 +11,17 @@ /* * FatFS 在 FF_USE_LFN=0 时不接受 "/" 前缀路径。 - * 剥离前导 "/" 后用 FatFS 兼容路径,根目录用 "." 替代空字符串。 + * 剥离前导 "/" 后用 FatFS 兼容路径,根目录用 "0:"(驱动号格式)替代。 */ static const char *to_fatfs_path(const char *path) { if (path == NULL || *path == '\0') { - return "."; + return "0:"; } if (*path == '/') { path++; if (*path == '\0') { - return "."; + return "0:"; } } return path; diff --git a/Drivers/BSP/NET/lftpd/private/lftpd_inet.h b/Drivers/BSP/NET/lftpd/private/lftpd_inet.h index 181ac75..d17fe37 100644 --- a/Drivers/BSP/NET/lftpd/private/lftpd_inet.h +++ b/Drivers/BSP/NET/lftpd/private/lftpd_inet.h @@ -7,6 +7,7 @@ int lftpd_inet_listen(int port); int lftpd_inet_listen_multi(int port, int backlog); int lftpd_inet_get_socket_port(int socket); int lftpd_inet_accept(int socket); +int lftpd_inet_accept_timeout(int socket, int timeout_ms); int lftpd_inet_read_line(int socket, char *buffer, size_t buffer_len); int lftpd_inet_write_string(int socket, const char *message); int lftpd_inet_write(int socket, const void *buf, int len); diff --git a/Drivers/BSP/NET/net_config.h b/Drivers/BSP/NET/net_config.h index 3612ec2..2c37ffc 100644 --- a/Drivers/BSP/NET/net_config.h +++ b/Drivers/BSP/NET/net_config.h @@ -66,7 +66,7 @@ extern "C" { #endif #ifndef NET_RECV_TIMEOUT_MS -#define NET_RECV_TIMEOUT_MS 0 /* 接收超时(0=无限等待) */ +#define NET_RECV_TIMEOUT_MS 30000 /* 接收超时(30秒,0=无限等待) */ #endif /* diff --git a/Drivers/BSP/NET/net_socket.c b/Drivers/BSP/NET/net_socket.c index 1a7f1a8..b987f4d 100644 --- a/Drivers/BSP/NET/net_socket.c +++ b/Drivers/BSP/NET/net_socket.c @@ -107,8 +107,8 @@ int net_init(const char *ip, const char *mask, const char *gateway) { ch395f_reset(); DBG_INFO("net_init: set_fun_para..."); - /* 启用单连接模式:每个 Socket 独立工作,支持多监听 Socket(FTP PASV 需要) */ - ch395f_set_fun_para(0x00); + /* CH395F 超时/DISCONNECT 后不要自动关闭 Socket,由软件手动管理 */ + ch395f_set_fun_para(0x08); DBG_INFO("net_init: set_tcp_mss..."); /* 设置 TCP MSS */ @@ -224,6 +224,7 @@ int net_poll(void) { /* 读取 Socket 中断状�?*/ uint8_t sock_int = ch395f_get_sock_int_status(i); + DBG_INFO("s%d int=0x%02X", i, sock_int); /* 连接事件 */ if (sock_int & CH395F_SINT_STAT_CONNECT) { @@ -520,13 +521,23 @@ int net_listen_locked(int sockfd, int backlog) { } } - /* 配置监听 Socket */ - ch395f_set_send_buf((uint8_t)sockfd, 0, 2); - ch395f_set_recv_buf((uint8_t)sockfd, 2, 2); + /* 配置监听 Socket:单连接模式使用 CH395F 默认缓冲区(socket 0-3 已互不重叠), + * 多连接模式显式分配(socket 4-7 默认无缓冲区)*/ + if (backlog > 0) { + uint8_t base = (uint8_t)(sockfd * 4); + ch395f_set_send_buf((uint8_t)sockfd, base, 2); + ch395f_set_recv_buf((uint8_t)sockfd, base + 2, 2); + } ch395f_set_proto_type(sockfd, CH395F_PROTO_TYPE_TCP); ch395f_set_sour_port(sockfd, p_sock->local_port); - status = ch395f_open_socket(sockfd); + /* CH395F 关 socket 后需要时间才能重新打开,重试 3 次(Trap 09) */ + for (int open_try = 0; open_try < 3; open_try++) { + status = ch395f_open_socket(sockfd); + if (status == CH395F_ERR_SUCCESS) break; + ch395f_close_socket(sockfd); + HAL_Delay(500); + } if (status != CH395F_ERR_SUCCESS) { s_net_errno = NET_ERR_BUSY; return -1; @@ -840,8 +851,10 @@ static int net_recv_locked(net_sock_t *p_sock, void *buf, int len, int flags) { recv_len = ch395f_get_recv_len(sockfd); if (recv_len > 0) { int read_len = (recv_len > (uint16_t)len) ? len : (int)recv_len; + DBG_INFO("recv sock%d len=%d", sockfd, recv_len); ch395f_read_recv_buf(sockfd, (uint8_t *)buf, (uint16_t)read_len); p_sock->recv_bytes += (uint32_t)read_len; + HAL_Delay(1); /* 等待 CH395F 刷新 recv_len 寄存器 */ return read_len; } @@ -856,7 +869,8 @@ static int net_recv_locked(net_sock_t *p_sock, void *buf, int len, int flags) { return -1; } - if (p_sock->state == NET_SOCK_STATE_TCP_ACCEPT) { + if (p_sock->state == NET_SOCK_STATE_TCP_ACCEPT || + p_sock->state == NET_SOCK_STATE_CLOSED) { return 0; } } @@ -1390,7 +1404,8 @@ static void handle_connect_event(net_sock_t *p_sock) { p_sock->state = NET_SOCK_STATE_ESTABLISHED; p_sock->send_ready = 1; - ch395f_set_keepalive_enable(p_sock->ch395_sock, 1); + /* 清除残留的 TIMEOUT 中断标志 */ + (void)ch395f_get_sock_int_status(p_sock->ch395_sock); fire_event(p_sock, NET_EVENT_CONNECTED); } else { @@ -1465,18 +1480,29 @@ static void handle_disconnect_event(net_sock_t *p_sock) { DBG_ERROR("WARNING: listen sock%d got disconnect", p_sock->ch395_sock); } else if (p_sock->state == NET_SOCK_STATE_ESTABLISHED) { - /* CH395F 自动关闭�?Socket,恢复为未使用状�?*/ - DBG_INFO("sock%d DISCONNECTED, back to idle", p_sock->ch395_sock); - memset(p_sock->remote_ip_arr, 0, 4); - p_sock->remote_port = 0; - p_sock->send_ready = 1; - p_sock->state = NET_SOCK_STATE_TCP_ACCEPT; - fire_event(p_sock, NET_EVENT_DISCONNECTED); + if (p_sock->standalone_accept) { + /* 独立监听模式(PASV 数据通道):通知断开但不释放 Socket, + * 留给传输命令(STOR/LIST)的 accept 检测 CLOSED 状态后统一清理。 + * 但必须先关闭 CH395F 硬件 Socket,否则后续 ch395f_open_socket 失败 */ + DBG_INFO("sock%d DISCONNECTED, releasing", p_sock->ch395_sock); + ch395f_close_socket(p_sock->ch395_sock); + p_sock->state = NET_SOCK_STATE_CLOSED; + fire_event(p_sock, NET_EVENT_DISCONNECTED); + } else { + DBG_INFO("sock%d DISCONNECTED, back to idle", p_sock->ch395_sock); + memset(p_sock->remote_ip_arr, 0, 4); + p_sock->remote_port = 0; + p_sock->send_ready = 1; + p_sock->state = NET_SOCK_STATE_TCP_ACCEPT; + fire_event(p_sock, NET_EVENT_DISCONNECTED); + } } else if (p_sock->state == NET_SOCK_STATE_TCP_ACCEPT) { memset(p_sock->remote_ip_arr, 0, 4); p_sock->remote_port = 0; p_sock->send_ready = 1; - } else if (p_sock->state != NET_SOCK_STATE_CLOSED) { + } else if (p_sock->state != NET_SOCK_STATE_CLOSED && + p_sock->state != NET_SOCK_STATE_BOUND && + p_sock->state != NET_SOCK_STATE_CREATED) { /* 未预期的断开 */ DBG_ERROR("sock%d disconnect in state %d", p_sock->ch395_sock, p_sock->state); fire_event(p_sock, NET_EVENT_DISCONNECTED); @@ -1509,19 +1535,10 @@ static void handle_timeout_event(net_sock_t *p_sock) { } else if (p_sock->state == NET_SOCK_STATE_ESTABLISHED) { if (p_sock->standalone_accept) { - /* 独立监听模式(PASV):断开后释放 Socket,不清零整个控制块(net_recv 中的任务仍需读 state) */ - DBG_INFO("sock%d DISCONNECTED, releasing", p_sock->ch395_sock); - p_sock->state = NET_SOCK_STATE_CLOSED; - p_sock->in_use = 0; - fire_event(p_sock, NET_EVENT_DISCONNECTED); + DBG_INFO("sock%d TIMEOUT (ignored)", p_sock->ch395_sock); } else { - /* CH395F 自动关闭了 Socket,恢复为未使用状态 */ - DBG_INFO("sock%d DISCONNECTED, back to idle", p_sock->ch395_sock); - memset(p_sock->remote_ip_arr, 0, 4); - p_sock->remote_port = 0; - p_sock->send_ready = 1; + DBG_ERROR("sock%d TIMEOUT", p_sock->ch395_sock); p_sock->state = NET_SOCK_STATE_TCP_ACCEPT; - fire_event(p_sock, NET_EVENT_DISCONNECTED); } } else if (p_sock->state == NET_SOCK_STATE_LISTENING) { diff --git a/MDK-ARM/STM32F407-Demo/adc_task.__i b/MDK-ARM/STM32F407-Demo/adc_task.__i new file mode 100644 index 0000000..b99f79c --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/adc_task.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\adc_task.o --omf_browse .\stm32f407-demo\adc_task.crf --depend .\stm32f407-demo\adc_task.d "..\App\task\adc_task.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/app_main.__i b/MDK-ARM/STM32F407-Demo/app_main.__i new file mode 100644 index 0000000..d451025 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/app_main.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\app_main.o --omf_browse .\stm32f407-demo\app_main.crf --depend .\stm32f407-demo\app_main.d "..\App\app_main.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/ch395f.__i b/MDK-ARM/STM32F407-Demo/ch395f.__i new file mode 100644 index 0000000..34dee0b --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/ch395f.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\ch395f.o --omf_browse .\stm32f407-demo\ch395f.crf --depend .\stm32f407-demo\ch395f.d "..\Drivers\BSP\CH395F\ch395f.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/ch395f_test.__i b/MDK-ARM/STM32F407-Demo/ch395f_test.__i new file mode 100644 index 0000000..5a00356 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/ch395f_test.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\ch395f_test.o --omf_browse .\stm32f407-demo\ch395f_test.crf --depend .\stm32f407-demo\ch395f_test.d "..\Drivers\BSP\CH395F\ch395f_test.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/cmsis_os2.__i b/MDK-ARM/STM32F407-Demo/cmsis_os2.__i new file mode 100644 index 0000000..deb65de --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/cmsis_os2.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\cmsis_os2.o --omf_browse .\stm32f407-demo\cmsis_os2.crf --depend .\stm32f407-demo\cmsis_os2.d "../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/crc.__i b/MDK-ARM/STM32F407-Demo/crc.__i new file mode 100644 index 0000000..39fcf25 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/crc.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\crc.o --omf_browse .\stm32f407-demo\crc.crf --depend .\stm32f407-demo\crc.d "..\App\util\crc.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/croutine.__i b/MDK-ARM/STM32F407-Demo/croutine.__i new file mode 100644 index 0000000..ad5d960 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/croutine.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\croutine.o --omf_browse .\stm32f407-demo\croutine.crf --depend .\stm32f407-demo\croutine.d "../Middlewares/Third_Party/FreeRTOS/Source/croutine.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/dma.__i b/MDK-ARM/STM32F407-Demo/dma.__i new file mode 100644 index 0000000..7cf56d6 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/dma.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\dma.o --omf_browse .\stm32f407-demo\dma.crf --depend .\stm32f407-demo\dma.d "../Src/dma.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/event_groups.__i b/MDK-ARM/STM32F407-Demo/event_groups.__i new file mode 100644 index 0000000..24ab6e1 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/event_groups.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\event_groups.o --omf_browse .\stm32f407-demo\event_groups.crf --depend .\stm32f407-demo\event_groups.d "../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/ff.__i b/MDK-ARM/STM32F407-Demo/ff.__i new file mode 100644 index 0000000..9f13185 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/ff.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\ff.o --omf_browse .\stm32f407-demo\ff.crf --depend .\stm32f407-demo\ff.d "..\Lib\FatFs\ff.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/freertos.__i b/MDK-ARM/STM32F407-Demo/freertos.__i new file mode 100644 index 0000000..0b34d05 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/freertos.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\freertos.o --omf_browse .\stm32f407-demo\freertos.crf --depend .\stm32f407-demo\freertos.d "../Src/freertos.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/gd5f2gq5ue.__i b/MDK-ARM/STM32F407-Demo/gd5f2gq5ue.__i new file mode 100644 index 0000000..77ce915 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/gd5f2gq5ue.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\gd5f2gq5ue.o --omf_browse .\stm32f407-demo\gd5f2gq5ue.crf --depend .\stm32f407-demo\gd5f2gq5ue.d "..\Drivers\BSP\GD5F2GQ5UE\gd5f2gq5ue.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/gpio.__i b/MDK-ARM/STM32F407-Demo/gpio.__i new file mode 100644 index 0000000..cf351b4 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/gpio.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\gpio.o --omf_browse .\stm32f407-demo\gpio.crf --depend .\stm32f407-demo\gpio.d "../Src/gpio.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/heap_4.__i b/MDK-ARM/STM32F407-Demo/heap_4.__i new file mode 100644 index 0000000..bdaa760 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/heap_4.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\heap_4.o --omf_browse .\stm32f407-demo\heap_4.crf --depend .\stm32f407-demo\heap_4.d "../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/i2c.__i b/MDK-ARM/STM32F407-Demo/i2c.__i new file mode 100644 index 0000000..d5420de --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/i2c.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\i2c.o --omf_browse .\stm32f407-demo\i2c.crf --depend .\stm32f407-demo\i2c.d "../Src/i2c.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/journal.__i b/MDK-ARM/STM32F407-Demo/journal.__i new file mode 100644 index 0000000..9ee36ea --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/journal.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs --diag_suppress=177 +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\journal.o --omf_browse .\stm32f407-demo\journal.crf --depend .\stm32f407-demo\journal.d "..\Lib\dhara\journal.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/lftpd.__i b/MDK-ARM/STM32F407-Demo/lftpd.__i new file mode 100644 index 0000000..fe2e89f --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/lftpd.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\lftpd.o --omf_browse .\stm32f407-demo\lftpd.crf --depend .\stm32f407-demo\lftpd.d "..\Drivers\BSP\NET\lftpd\lftpd.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/lftpd_inet.__i b/MDK-ARM/STM32F407-Demo/lftpd_inet.__i new file mode 100644 index 0000000..f2b7de9 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/lftpd_inet.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\lftpd_inet.o --omf_browse .\stm32f407-demo\lftpd_inet.crf --depend .\stm32f407-demo\lftpd_inet.d "..\Drivers\BSP\NET\lftpd\lftpd_inet.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/lftpd_io.__i b/MDK-ARM/STM32F407-Demo/lftpd_io.__i new file mode 100644 index 0000000..eb3c789 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/lftpd_io.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\lftpd_io.o --omf_browse .\stm32f407-demo\lftpd_io.crf --depend .\stm32f407-demo\lftpd_io.d "..\Drivers\BSP\NET\lftpd\lftpd_io.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/lftpd_string.__i b/MDK-ARM/STM32F407-Demo/lftpd_string.__i new file mode 100644 index 0000000..56bfd00 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/lftpd_string.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\lftpd_string.o --omf_browse .\stm32f407-demo\lftpd_string.crf --depend .\stm32f407-demo\lftpd_string.d "..\Drivers\BSP\NET\lftpd\lftpd_string.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/list.__i b/MDK-ARM/STM32F407-Demo/list.__i new file mode 100644 index 0000000..3a64ee5 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/list.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\list.o --omf_browse .\stm32f407-demo\list.crf --depend .\stm32f407-demo\list.d "../Middlewares/Third_Party/FreeRTOS/Source/list.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/main.__i b/MDK-ARM/STM32F407-Demo/main.__i new file mode 100644 index 0000000..141b67a --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/main.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\main.o --omf_browse .\stm32f407-demo\main.crf --depend .\stm32f407-demo\main.d "../Src/main.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/map.__i b/MDK-ARM/STM32F407-Demo/map.__i new file mode 100644 index 0000000..e9028de --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/map.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs --diag_suppress=177 +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\map.o --omf_browse .\stm32f407-demo\map.crf --depend .\stm32f407-demo\map.d "..\Lib\dhara\map.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/nand_ftl.__i b/MDK-ARM/STM32F407-Demo/nand_ftl.__i new file mode 100644 index 0000000..63ab21a --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/nand_ftl.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\nand_ftl.o --omf_browse .\stm32f407-demo\nand_ftl.crf --depend .\stm32f407-demo\nand_ftl.d "..\Drivers\BSP\GD5F2GQ5UE\nand_ftl.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/net_select.__i b/MDK-ARM/STM32F407-Demo/net_select.__i new file mode 100644 index 0000000..2ed6eef --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/net_select.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\net_select.o --omf_browse .\stm32f407-demo\net_select.crf --depend .\stm32f407-demo\net_select.d "..\Drivers\BSP\NET\net_select.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/net_socket.__i b/MDK-ARM/STM32F407-Demo/net_socket.__i new file mode 100644 index 0000000..1160ec8 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/net_socket.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\net_socket.o --omf_browse .\stm32f407-demo\net_socket.crf --depend .\stm32f407-demo\net_socket.d "..\Drivers\BSP\NET\net_socket.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/net_task.__i b/MDK-ARM/STM32F407-Demo/net_task.__i new file mode 100644 index 0000000..c286f82 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/net_task.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\net_task.o --omf_browse .\stm32f407-demo\net_task.crf --depend .\stm32f407-demo\net_task.d "..\App\task\net_task.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/port.__i b/MDK-ARM/STM32F407-Demo/port.__i new file mode 100644 index 0000000..7fadf10 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/port.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\port.o --omf_browse .\stm32f407-demo\port.crf --depend .\stm32f407-demo\port.d "../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F/port.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/queue.__i b/MDK-ARM/STM32F407-Demo/queue.__i new file mode 100644 index 0000000..aca3779 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/queue.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\queue.o --omf_browse .\stm32f407-demo\queue.crf --depend .\stm32f407-demo\queue.d "../Middlewares/Third_Party/FreeRTOS/Source/queue.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/ringbuf.__i b/MDK-ARM/STM32F407-Demo/ringbuf.__i new file mode 100644 index 0000000..978c33d --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/ringbuf.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\ringbuf.o --omf_browse .\stm32f407-demo\ringbuf.crf --depend .\stm32f407-demo\ringbuf.d "..\App\util\ringbuf.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/rs485.__i b/MDK-ARM/STM32F407-Demo/rs485.__i new file mode 100644 index 0000000..ec459c7 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/rs485.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\rs485.o --omf_browse .\stm32f407-demo\rs485.crf --depend .\stm32f407-demo\rs485.d "..\Drivers\BSP\RS485\rs485.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/rs485_task.__i b/MDK-ARM/STM32F407-Demo/rs485_task.__i new file mode 100644 index 0000000..aecf47f --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/rs485_task.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\rs485_task.o --omf_browse .\stm32f407-demo\rs485_task.crf --depend .\stm32f407-demo\rs485_task.d "..\App\task\rs485_task.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/sd2506.__i b/MDK-ARM/STM32F407-Demo/sd2506.__i new file mode 100644 index 0000000..8c0377c --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/sd2506.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\sd2506.o --omf_browse .\stm32f407-demo\sd2506.crf --depend .\stm32f407-demo\sd2506.d "..\Drivers\BSP\SD2506\sd2506.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/spi.__i b/MDK-ARM/STM32F407-Demo/spi.__i new file mode 100644 index 0000000..f7027b6 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/spi.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\spi.o --omf_browse .\stm32f407-demo\spi.crf --depend .\stm32f407-demo\spi.d "../Src/spi.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/startup_stm32f407xx._ia b/MDK-ARM/STM32F407-Demo/startup_stm32f407xx._ia new file mode 100644 index 0000000..a2cf59d --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/startup_stm32f407xx._ia @@ -0,0 +1,5 @@ +--cpu Cortex-M4.fp.sp -g --apcs=interwork --pd "__MICROLIB SETA 1" -I ../Drivers/CMSIS/Include +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +--pd "__UVISION_VERSION SETA 538" --pd "_RTE_ SETA 1" --pd "STM32F407xx SETA 1" --pd "_RTE_ SETA 1" +--list startup_stm32f407xx.lst --xref -o .\stm32f407-demo\startup_stm32f407xx.o --depend .\stm32f407-demo\startup_stm32f407xx.d "startup_stm32f407xx.s" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/stm32f4xx_hal.__i b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal.__i new file mode 100644 index 0000000..bb04e35 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\stm32f4xx_hal.o --omf_browse .\stm32f407-demo\stm32f4xx_hal.crf --depend .\stm32f407-demo\stm32f4xx_hal.d "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_cortex.__i b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_cortex.__i new file mode 100644 index 0000000..05927e8 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_cortex.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\stm32f4xx_hal_cortex.o --omf_browse .\stm32f407-demo\stm32f4xx_hal_cortex.crf --depend .\stm32f407-demo\stm32f4xx_hal_cortex.d "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_dma.__i b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_dma.__i new file mode 100644 index 0000000..e7cf705 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_dma.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\stm32f4xx_hal_dma.o --omf_browse .\stm32f407-demo\stm32f4xx_hal_dma.crf --depend .\stm32f407-demo\stm32f4xx_hal_dma.d "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_dma_ex.__i b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_dma_ex.__i new file mode 100644 index 0000000..08a1270 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_dma_ex.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\stm32f4xx_hal_dma_ex.o --omf_browse .\stm32f407-demo\stm32f4xx_hal_dma_ex.crf --depend .\stm32f407-demo\stm32f4xx_hal_dma_ex.d "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_exti.__i b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_exti.__i new file mode 100644 index 0000000..30a4808 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_exti.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\stm32f4xx_hal_exti.o --omf_browse .\stm32f407-demo\stm32f4xx_hal_exti.crf --depend .\stm32f407-demo\stm32f4xx_hal_exti.d "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_flash.__i b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_flash.__i new file mode 100644 index 0000000..f5b4d3e --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_flash.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\stm32f4xx_hal_flash.o --omf_browse .\stm32f407-demo\stm32f4xx_hal_flash.crf --depend .\stm32f407-demo\stm32f4xx_hal_flash.d "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_flash_ex.__i b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_flash_ex.__i new file mode 100644 index 0000000..d145e86 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_flash_ex.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\stm32f4xx_hal_flash_ex.o --omf_browse .\stm32f407-demo\stm32f4xx_hal_flash_ex.crf --depend .\stm32f407-demo\stm32f4xx_hal_flash_ex.d "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_flash_ramfunc.__i b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_flash_ramfunc.__i new file mode 100644 index 0000000..d54d734 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_flash_ramfunc.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\stm32f4xx_hal_flash_ramfunc.o --omf_browse .\stm32f407-demo\stm32f4xx_hal_flash_ramfunc.crf --depend .\stm32f407-demo\stm32f4xx_hal_flash_ramfunc.d "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_gpio.__i b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_gpio.__i new file mode 100644 index 0000000..32d6ca3 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_gpio.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\stm32f4xx_hal_gpio.o --omf_browse .\stm32f407-demo\stm32f4xx_hal_gpio.crf --depend .\stm32f407-demo\stm32f4xx_hal_gpio.d "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_i2c.__i b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_i2c.__i new file mode 100644 index 0000000..a596b4a --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_i2c.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\stm32f4xx_hal_i2c.o --omf_browse .\stm32f407-demo\stm32f4xx_hal_i2c.crf --depend .\stm32f407-demo\stm32f4xx_hal_i2c.d "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_i2c_ex.__i b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_i2c_ex.__i new file mode 100644 index 0000000..a1abf9f --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_i2c_ex.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\stm32f4xx_hal_i2c_ex.o --omf_browse .\stm32f407-demo\stm32f4xx_hal_i2c_ex.crf --depend .\stm32f407-demo\stm32f4xx_hal_i2c_ex.d "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c_ex.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_msp.__i b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_msp.__i new file mode 100644 index 0000000..4539d4b --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_msp.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\stm32f4xx_hal_msp.o --omf_browse .\stm32f407-demo\stm32f4xx_hal_msp.crf --depend .\stm32f407-demo\stm32f4xx_hal_msp.d "../Src/stm32f4xx_hal_msp.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_pwr.__i b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_pwr.__i new file mode 100644 index 0000000..87c0f6c --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_pwr.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\stm32f4xx_hal_pwr.o --omf_browse .\stm32f407-demo\stm32f4xx_hal_pwr.crf --depend .\stm32f407-demo\stm32f4xx_hal_pwr.d "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_pwr_ex.__i b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_pwr_ex.__i new file mode 100644 index 0000000..3d9ec93 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_pwr_ex.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\stm32f4xx_hal_pwr_ex.o --omf_browse .\stm32f407-demo\stm32f4xx_hal_pwr_ex.crf --depend .\stm32f407-demo\stm32f4xx_hal_pwr_ex.d "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_rcc.__i b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_rcc.__i new file mode 100644 index 0000000..46d082d --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_rcc.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\stm32f4xx_hal_rcc.o --omf_browse .\stm32f407-demo\stm32f4xx_hal_rcc.crf --depend .\stm32f407-demo\stm32f4xx_hal_rcc.d "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_rcc_ex.__i b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_rcc_ex.__i new file mode 100644 index 0000000..153e59a --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_rcc_ex.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\stm32f4xx_hal_rcc_ex.o --omf_browse .\stm32f407-demo\stm32f4xx_hal_rcc_ex.crf --depend .\stm32f407-demo\stm32f4xx_hal_rcc_ex.d "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_spi.__i b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_spi.__i new file mode 100644 index 0000000..b6db2d9 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_spi.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\stm32f4xx_hal_spi.o --omf_browse .\stm32f407-demo\stm32f4xx_hal_spi.crf --depend .\stm32f407-demo\stm32f4xx_hal_spi.d "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_tim.__i b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_tim.__i new file mode 100644 index 0000000..b3de136 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_tim.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\stm32f4xx_hal_tim.o --omf_browse .\stm32f407-demo\stm32f4xx_hal_tim.crf --depend .\stm32f407-demo\stm32f4xx_hal_tim.d "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_tim_ex.__i b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_tim_ex.__i new file mode 100644 index 0000000..5132aa2 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_tim_ex.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\stm32f4xx_hal_tim_ex.o --omf_browse .\stm32f407-demo\stm32f4xx_hal_tim_ex.crf --depend .\stm32f407-demo\stm32f4xx_hal_tim_ex.d "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_timebase_tim.__i b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_timebase_tim.__i new file mode 100644 index 0000000..8d9d95e --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_timebase_tim.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\stm32f4xx_hal_timebase_tim.o --omf_browse .\stm32f407-demo\stm32f4xx_hal_timebase_tim.crf --depend .\stm32f407-demo\stm32f4xx_hal_timebase_tim.d "../Src/stm32f4xx_hal_timebase_tim.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_uart.__i b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_uart.__i new file mode 100644 index 0000000..6d30b77 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/stm32f4xx_hal_uart.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\stm32f4xx_hal_uart.o --omf_browse .\stm32f407-demo\stm32f4xx_hal_uart.crf --depend .\stm32f407-demo\stm32f4xx_hal_uart.d "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/stm32f4xx_it.__i b/MDK-ARM/STM32F407-Demo/stm32f4xx_it.__i new file mode 100644 index 0000000..ce19d68 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/stm32f4xx_it.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\stm32f4xx_it.o --omf_browse .\stm32f407-demo\stm32f4xx_it.crf --depend .\stm32f407-demo\stm32f4xx_it.d "../Src/stm32f4xx_it.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/stream_buffer.__i b/MDK-ARM/STM32F407-Demo/stream_buffer.__i new file mode 100644 index 0000000..7473abb --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/stream_buffer.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\stream_buffer.o --omf_browse .\stm32f407-demo\stream_buffer.crf --depend .\stm32f407-demo\stream_buffer.d "../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/sys_clock.__i b/MDK-ARM/STM32F407-Demo/sys_clock.__i new file mode 100644 index 0000000..633c651 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/sys_clock.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\sys_clock.o --omf_browse .\stm32f407-demo\sys_clock.crf --depend .\stm32f407-demo\sys_clock.d "..\App\sys_clock.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/system_stm32f4xx.__i b/MDK-ARM/STM32F407-Demo/system_stm32f4xx.__i new file mode 100644 index 0000000..dd80d76 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/system_stm32f4xx.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\system_stm32f4xx.o --omf_browse .\stm32f407-demo\system_stm32f4xx.crf --depend .\stm32f407-demo\system_stm32f4xx.d "../Src/system_stm32f4xx.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/tasks.__i b/MDK-ARM/STM32F407-Demo/tasks.__i new file mode 100644 index 0000000..1e68996 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/tasks.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\tasks.o --omf_browse .\stm32f407-demo\tasks.crf --depend .\stm32f407-demo\tasks.d "../Middlewares/Third_Party/FreeRTOS/Source/tasks.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/timers.__i b/MDK-ARM/STM32F407-Demo/timers.__i new file mode 100644 index 0000000..a4b6349 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/timers.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\timers.o --omf_browse .\stm32f407-demo\timers.crf --depend .\stm32f407-demo\timers.d "../Middlewares/Third_Party/FreeRTOS/Source/timers.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/tpafe5160.__i b/MDK-ARM/STM32F407-Demo/tpafe5160.__i new file mode 100644 index 0000000..978b2db --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/tpafe5160.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\tpafe5160.o --omf_browse .\stm32f407-demo\tpafe5160.crf --depend .\stm32f407-demo\tpafe5160.d "..\Drivers\BSP\TPAFE5160\tpafe5160.c" \ No newline at end of file diff --git a/MDK-ARM/STM32F407-Demo/usart.__i b/MDK-ARM/STM32F407-Demo/usart.__i new file mode 100644 index 0000000..7792057 --- /dev/null +++ b/MDK-ARM/STM32F407-Demo/usart.__i @@ -0,0 +1,5 @@ +--c99 -c --cpu Cortex-M4.fp.sp -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc -I ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/BSP -I ../Drivers/BSP/CH395F -I ../Drivers/BSP/GD5F2GQ5UE -I ../Drivers/BSP/TPAFE5160 -I ../Drivers/BSP/SD2506 -I ../Drivers/BSP/RS485 -I ../Drivers/BSP/NET -I ../Drivers/BSP/NET/lftpd -I ../App -I ../App/task -I ../App/util -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I ../Lib/dhara -I ../Lib/FatFs +-I.\RTE\_STM32F407-Demo +-IC:\Users\16241\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include +-D__UVISION_VERSION="538" -D_RTE_ -DSTM32F407xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F407xx -DNDEBUG +-o .\stm32f407-demo\usart.o --omf_browse .\stm32f407-demo\usart.crf --depend .\stm32f407-demo\usart.d "../Src/usart.c" \ No newline at end of file diff --git a/MDK-ARM/build_log.txt b/MDK-ARM/build_log.txt index 007d620..e69de29 100644 --- a/MDK-ARM/build_log.txt +++ b/MDK-ARM/build_log.txt @@ -1,71 +0,0 @@ -*** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin' -Rebuild target 'STM32F407-Demo' -assembling startup_stm32f407xx.s... -compiling ringbuf.c... -compiling crc.c... -compiling stm32f4xx_hal_timebase_tim.c... -compiling dma.c... -compiling gpio.c... -compiling i2c.c... -compiling stm32f4xx_hal_msp.c... -compiling stm32f4xx_hal_flash_ramfunc.c... -compiling stm32f4xx_hal_gpio.c... -compiling app_main.c... -compiling usart.c... -compiling stm32f4xx_hal_rcc_ex.c... -compiling stm32f4xx_it.c... -compiling sys_clock.c... -compiling stm32f4xx_hal_flash_ex.c... -compiling adc_task.c... -compiling rs485_task.c... -compiling stm32f4xx_hal_rcc.c... -compiling main.c... -compiling stm32f4xx_hal_flash.c... -compiling spi.c... -compiling net_task.c... -compiling stm32f4xx_hal_tim_ex.c... -compiling freertos.c... -compiling stm32f4xx_hal_tim.c... -compiling stm32f4xx_hal_dma.c... -compiling stm32f4xx_hal_exti.c... -compiling stm32f4xx_hal_pwr.c... -compiling stm32f4xx_hal_i2c_ex.c... -compiling stm32f4xx_hal_pwr_ex.c... -compiling system_stm32f4xx.c... -compiling stm32f4xx_hal_dma_ex.c... -compiling stm32f4xx_hal_cortex.c... -compiling stm32f4xx_hal.c... -compiling ch395f.c... -compiling rs485.c... -compiling sd2506.c... -compiling tpafe5160.c... -compiling lftpd_string.c... -compiling gd5f2gq5ue.c... -compiling stm32f4xx_hal_spi.c... -compiling croutine.c... -compiling list.c... -compiling nand_ftl.c... -compiling event_groups.c... -compiling stm32f4xx_hal_uart.c... -compiling stream_buffer.c... -compiling net_select.c... -compiling ch395f_test.c... -compiling lftpd_inet.c... -compiling queue.c... -compiling timers.c... -compiling lftpd.c... -compiling heap_4.c... -compiling tasks.c... -compiling net_socket.c... -compiling stm32f4xx_hal_i2c.c... -compiling map.c... -compiling journal.c... -compiling port.c... -compiling ff.c... -compiling lftpd_io.c... -compiling cmsis_os2.c... -linking... -Program Size: Code=58144 RO-data=2132 RW-data=392 ZI-data=54848 -FromELF: creating hex file... -".\STM32F407-Demo\STM32F407-Demo.axf" - 0 Error(s), 0 Warning(s). -Build Time Elapsed: 00:00:17 diff --git a/docs/CH395F_Trap_Records.md b/docs/CH395F_Trap_Records.md index 46cc9e0..c699b8c 100644 --- a/docs/CH395F_Trap_Records.md +++ b/docs/CH395F_Trap_Records.md @@ -286,3 +286,84 @@ msg.result = (int)notified; - 指针成员(`msg.buf`)不受值拷贝影响——netTask 拿到的是同一个指针,可以读写调用方的缓冲区 - `net_connect()` 不使用消息队列(在 netTask 内直接调用 `_locked` 版本),不受此 bug 影响 - 内核级 API(`net_send_sock` / `net_recv_sock` / `net_listen_locked`)直接操作,同样不受影响 + +--- + +## Trap 11:`net_accept_locked` 拒绝 standalone_accept 的 ESTABLISHED 状态 + +### 现象 +FTP 客户端 TCP 连接成功(standalone accept),220 欢迎语不发送,`lftpd_inet_accept()` 死循环。客户端连接成功但永远收不到任何 FTP 响应。 + +### 根因 +`net_accept_locked()` 入口检查: + +```c +if (p_listen_sock->state != NET_SOCK_STATE_LISTENING) { + return -1; // ← 直接拒绝! +} +``` + +standalone accept 后 state 已变为 `ESTABLISHED`,永远到不了后续的 `standalone_accept` 检查——死锁。 + +### 解决方案 +```c +if (p_listen_sock->state != NET_SOCK_STATE_LISTENING && + !(p_listen_sock->standalone_accept && p_listen_sock->state == NET_SOCK_STATE_ESTABLISHED)) { + return -1; +} +``` + +允许 `standalone_accept + ESTABLISHED` 组合通过。 + +### 注意事项 +- 不影响多连接模式(多连接监听 Socket 状态始终为 LISTENING,由数据 Socket 承载连接) +- 仅影响 standalone_accept 模式(PASV 数据通道、单连接 FTP) + +--- + +## Trap 12:FatFS `FF_USE_LFN=0` + 路径 `/` 前缀 → `FR_INVALID_NAME` + +### 现象 +FTP STOR 上传文件时 `f_open("/upload_test.txt", FA_WRITE | FA_CREATE_ALWAYS)` 返回 `err=6`(FR_INVALID_NAME)。`upload_test.txt` 文件名 11+3 字符 > 8.3 限制同样触发 err=6。 + +### 根因 +1. `ffconf.h` 中 `FF_USE_LFN = 0`(长文件名禁用),最大文件名 8+3 字符 +2. FatFS 不接受 `/file` 格式的路径(需要 `file` 或 `0:file`) +3. `lftpd_io_canonicalize_path("/", "file")` 输出必然带 `/` 前缀 +4. 根目录路径 `"/"` 剥离后为空字符串,`f_stat("")` 同样失败 + +### 解决方案 +```c +/* 剥离 "/" 前缀,根目录用 "." 表示 */ +static const char *to_fatfs_path(const char *path) { + if (path == NULL || *path == '\0') return "."; + if (*path == '/') { + path++; + if (*path == '\0') return "."; + } + return path; +} +``` + +所有 `lftpd_io_*` 函数调用 FatFS 前统一使用 `to_fatfs_path(path)`。 + +### 注意事项 +- 长文件名需设置 `FF_USE_LFN = 1` 并配置 `FF_LFN_UNICODE`,会显著增加 RAM 占用 +- `CWD .` 和 `CWD /` 同样受此问题影响,修复后正常工作 + +--- + +## 附:FTP 支持改造完整问题清单 + +| # | 问题 | 类型 | 修复位置 | +|---|------|------|----------| +| 1 | 消息队列值拷贝,6 个 API 永远返回 -1 | Trap 10 | `net_socket.c` | +| 2 | PHY link up 后 open_socket 失败 | Trap 09 | `freertos.c` + `lftpd.c` | +| 3 | `net_accept_locked` 拒绝 ESTABLISHED | Trap 11 | `net_socket.c` | +| 4 | CH395F 多连接模式不支持多监听 | 架构 | `net_socket.c: fun_para=0x00` | +| 5 | PASV 端口 0(net_bind 无自动分配) | 缺功能 | `net_socket.c: s_dynamic_port` | +| 6 | FatFS 路径 `/` 不兼容 + LFN 禁用 | Trap 12 | `lftpd_io.c: to_fatfs_path()` | +| 7 | `cmd_pasv` 连关连开 listen 失败 | Trap 09 子类 | `lftpd.c: 3次重试` | +| 8 | `ftpTask` 启动时 PHY 未稳定 | Trap 09 子类 | `freertos.c: osDelay(7000)` | +| 9 | 会话结束后立即重建监听失败 | Trap 09 子类 | `lftpd.c: vTaskDelay(200ms)` | +| 10 | `s_file_open` 单文件限制 | 已知限制 | `lftpd_io.c` (全局变量) | diff --git a/test/ftp_capture.py b/test/ftp_capture.py new file mode 100644 index 0000000..81417ce --- /dev/null +++ b/test/ftp_capture.py @@ -0,0 +1,256 @@ +#!/usr/bin/env python3 +""" +FTP 协议抓取工具 — 模拟 FTP Server,打印客户端每一条命令和交互细节 +用法:python ftp_capture.py [--port 21] +需要管理员权限(Linux 无需,Windows 需要管理员权限绑定 21 端口) +""" + +import socket +import threading +import sys +import os +import time +import struct +import re + +HOST = "0.0.0.0" +PORT = 21 +DATA_DIR = "ftp_capture_data" + +def log(fmt, *args): + ts = time.strftime("%H:%M:%S", time.localtime()) + msg = fmt % args if args else fmt + print(f"[{ts}] {msg}") + +def recv_line(sock): + data = b"" + while True: + ch = sock.recv(1) + if not ch: + return None + data += ch + if data.endswith(b"\r\n"): + return data + +def send_line(sock, line): + sock.sendall((line + "\r\n").encode()) + log(">>> %s", line) + +class FtpHandler(threading.Thread): + def __init__(self, ctrl_sock, addr): + super().__init__(daemon=True) + self.ctrl = ctrl_sock + self.addr = addr + self.cwd = "/" + self.data_listener = None + self.data_port = 0 + self.pasv_socket = None + + def run(self): + log("=== New connection from %s:%d ===", *self.addr) + send_line(self.ctrl, "220 Service ready for new user.") + + while True: + raw = recv_line(self.ctrl) + if raw is None: + log("=== Connection closed ===") + break + + line = raw.decode(errors="replace").rstrip() + log("<<< %s", line) + + parts = line.split() + cmd = parts[0].upper() + arg = parts[1] if len(parts) > 1 else None + try: + self.handle(cmd, arg) + except Exception as e: + log("!!! ERROR: %s", e) + send_line(self.ctrl, "550 Internal error.") + + self.cleanup() + + def handle(self, cmd, arg): + handler = getattr(self, f"cmd_{cmd}", None) + if handler: + handler(arg) + else: + send_line(self.ctrl, f"502 Command not implemented.") + + def cmd_USER(self, arg): + send_line(self.ctrl, "230 User logged in, proceed.") + + def cmd_PASS(self, arg): + send_line(self.ctrl, "230 User logged in, proceed.") + + def cmd_FEAT(self, arg): + send_line(self.ctrl, "211-System status, or system help reply.") + send_line(self.ctrl, " EPSV") + send_line(self.ctrl, " PASV") + send_line(self.ctrl, " SIZE") + send_line(self.ctrl, " NLST") + send_line(self.ctrl, "211 System status, or system help reply.") + + def cmd_PWD(self, arg): + send_line(self.ctrl, f'257 "{self.cwd}"') + + def cmd_CWD(self, arg): + if arg == "." or arg == "/": + self.cwd = "/" + send_line(self.ctrl, "250 Requested file action okay, completed.") + else: + send_line(self.ctrl, "550 Requested action not taken.") + + def cmd_TYPE(self, arg): + send_line(self.ctrl, "200 Command okay.") + + def cmd_SYST(self, arg): + send_line(self.ctrl, "215 UNIX Type: L8") + + def cmd_NOOP(self, arg): + send_line(self.ctrl, "200 Command okay.") + + def cmd_QUIT(self, arg): + send_line(self.ctrl, "221 Service closing control connection.") + self.ctrl.close() + + def cmd_SIZE(self, arg): + send_line(self.ctrl, "550 File unavailable.") + + def cmd_PASV(self, arg): + """创建 PASV 数据监听""" + self.cleanup_data() + pasv = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + pasv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) + pasv.bind(("0.0.0.0", 0)) + pasv.listen(1) + self.pasv_socket = pasv + + port = pasv.getsockname()[1] + p1, p2 = port >> 8, port & 0xFF + # 使用 127.0.0.1 本地环回避免防火墙问题 + send_line(self.ctrl, + f"227 Entering Passive Mode (127,0,0,1,{p1},{p2}).") + log(" PASV listener on port %d (127.0.0.1:port)", port) + + def cmd_EPSV(self, arg): + self.cleanup_data() + pasv = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + pasv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) + pasv.bind(("0.0.0.0", 0)) + pasv.listen(1) + self.pasv_socket = pasv + port = pasv.getsockname()[1] + send_line(self.ctrl, f"229 Entering Extended Passive Mode (|||{port}|)") + log(" EPSV listener on port %d", port) + + def cmd_LIST(self, arg): + send_line(self.ctrl, "150 File status okay; about to open data connection.") + conn = self.accept_data() + if conn: + log(" LIST: sending directory listing (empty)") + conn.sendall(b"-rw-rw-rw- 1 owner group 123 Jan 01 1970 test.txt\r\n") + conn.close() + log(" LIST: data closed") + send_line(self.ctrl, "226 Closing data connection.") + + def cmd_NLST(self, arg): + self.cmd_LIST(arg) + + def cmd_STOR(self, arg): + """接收文件上传""" + size = 0 + send_line(self.ctrl, "150 File status okay; about to open data connection.") + conn = self.accept_data() + if conn: + log(" STOR: receiving file '%s'...", arg) + data = b"" + while True: + try: + chunk = conn.recv(4096) + if not chunk: + break + data += chunk + size += len(chunk) + except socket.timeout: + break + conn.close() + log(" STOR: received %d bytes, data closed", size) + else: + log(" STOR: data connection failed!") + send_line(self.ctrl, f"226 Closing data connection.") + + def cmd_RETR(self, arg): + send_line(self.ctrl, "550 File unavailable.") + + def cmd_DELE(self, arg): + send_line(self.ctrl, "250 Requested file action okay, completed.") + + def accept_data(self): + """接受数据连接(5秒超时)""" + if self.pasv_socket is None: + log(" ERROR: no PASV listener!") + return None + try: + self.pasv_socket.settimeout(5) + conn, addr = self.pasv_socket.accept() + log(" Data connection from %s:%d", *addr) + return conn + except socket.timeout: + log(" Data accept TIMEOUT (5s)") + return None + except Exception as e: + log(" Data accept ERROR: %s", e) + return None + + def cleanup_data(self): + if self.pasv_socket: + try: + self.pasv_socket.close() + except: + pass + self.pasv_socket = None + + def cleanup(self): + self.cleanup_data() + try: + self.ctrl.close() + except: + pass + + +def main(): + import argparse + parser = argparse.ArgumentParser(description="FTP Protocol Capture") + parser.add_argument("--port", type=int, default=PORT, + help=f"FTP port (default {PORT}, may need admin)") + args = parser.parse_args() + + # Windows 下低端口需要管理员权限 + if sys.platform == "win32" and args.port < 1024: + import ctypes + if not ctypes.windll.shell32.IsUserAnAdmin(): + log("WARNING: Port %d may need admin rights on Windows", args.port) + log(" Run as Administrator or use --port 2121") + + os.makedirs(DATA_DIR, exist_ok=True) + + server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) + server.bind((HOST, args.port)) + server.listen(5) + log("FTP capture server on port %d", args.port) + log("Connect with MobaXterm/FileZilla and try operations") + log("=" * 50) + + try: + while True: + conn, addr = server.accept() + FtpHandler(conn, addr).start() + except KeyboardInterrupt: + log("Stopped") + finally: + server.close() + +if __name__ == "__main__": + main() diff --git a/test/test.txt b/test/test.txt new file mode 100644 index 0000000..e69de29