This commit is contained in:
zj 2026-03-14 09:10:07 +08:00
parent f940356c75
commit 644b04926d
20 changed files with 2398 additions and 21212 deletions

View File

@ -68,6 +68,9 @@
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/Debug}&quot;"/> <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/Debug}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/Peripheral/inc}&quot;"/> <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/Peripheral/inc}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/User}&quot;"/> <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/User}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/TCPClient/FreeRTOS/include}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/TCPClient/FreeRTOS/portable/GCC/RISC-V}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/TCPClient/Middle/QDXnetworkStack}&quot;"/>
</option> </option>
<option id="ilg.gnumcueclipse.managedbuild.cross.riscv.option.c.compiler.std.2020844713" name="Language standard" superClass="ilg.gnumcueclipse.managedbuild.cross.riscv.option.c.compiler.std" useByScannerDiscovery="true" value="ilg.gnumcueclipse.managedbuild.cross.riscv.option.c.compiler.std.gnu99" valueType="enumerated"/> <option id="ilg.gnumcueclipse.managedbuild.cross.riscv.option.c.compiler.std.2020844713" name="Language standard" superClass="ilg.gnumcueclipse.managedbuild.cross.riscv.option.c.compiler.std" useByScannerDiscovery="true" value="ilg.gnumcueclipse.managedbuild.cross.riscv.option.c.compiler.std.gnu99" valueType="enumerated"/>
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="true" id="ilg.gnumcueclipse.managedbuild.cross.riscv.option.c.compiler.defs.177116515" name="Defined symbols (-D)" superClass="ilg.gnumcueclipse.managedbuild.cross.riscv.option.c.compiler.defs" useByScannerDiscovery="true" valueType="definedSymbols"/> <option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="true" id="ilg.gnumcueclipse.managedbuild.cross.riscv.option.c.compiler.defs.177116515" name="Defined symbols (-D)" superClass="ilg.gnumcueclipse.managedbuild.cross.riscv.option.c.compiler.defs" useByScannerDiscovery="true" valueType="definedSymbols"/>
@ -125,7 +128,7 @@
</toolChain> </toolChain>
</folderInfo> </folderInfo>
<sourceEntries> <sourceEntries>
<entry excluding="NetLib|ETH_driver|Startup|Peripheral|Ld|Debug|Core" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/> <entry excluding="Middle/QDXnetworkStack/qdx_port_template.c|NetLib|ETH_driver|Startup|Peripheral|Ld|Debug|Core" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Core"/> <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Core"/>
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Debug"/> <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Debug"/>
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Ld"/> <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Ld"/>

View File

@ -5,7 +5,7 @@
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/> <provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/> <provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/> <provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
<provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="-959756718816340189" id="ilg.gnumcueclipse.managedbuild.cross.riscv.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT RISC-V Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} ${cross_toolchain_flags} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true"> <provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="-982151329091095719" id="ilg.gnumcueclipse.managedbuild.cross.riscv.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT RISC-V Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} ${cross_toolchain_flags} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/> <language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/> <language-scope id="org.eclipse.cdt.core.g++"/>
</provider> </provider>

View File

@ -19,3 +19,5 @@ void DVP_Task(void);
extern __attribute__((aligned(4))) uint8_t FrameBuffer[SENSOR_HEIGHT][BYTES_PER_LINE]; extern __attribute__((aligned(4))) uint8_t FrameBuffer[SENSOR_HEIGHT][BYTES_PER_LINE];
extern volatile uint8_t Frame_Ready_Flag; extern volatile uint8_t Frame_Ready_Flag;
extern volatile uint32_t Ready_Frame_Count; extern volatile uint32_t Ready_Frame_Count;
#endif

View File

@ -0,0 +1,150 @@
/*
* FreeRTOS Kernel V10.4.6
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* https://www.FreeRTOS.org
* https://github.com/FreeRTOS
*
*/
/*
* The FreeRTOS kernel's RISC-V port is split between the the code that is
* common across all currently supported RISC-V chips (implementations of the
* RISC-V ISA), and code that tailors the port to a specific RISC-V chip:
*
* + FreeRTOS\Source\portable\GCC\RISC-V-RV32\portASM.S contains the code that
* is common to all currently supported RISC-V chips. There is only one
* portASM.S file because the same file is built for all RISC-V target chips.
*
* + Header files called freertos_risc_v_chip_specific_extensions.h contain the
* code that tailors the FreeRTOS kernel's RISC-V port to a specific RISC-V
* chip. There are multiple freertos_risc_v_chip_specific_extensions.h files
* as there are multiple RISC-V chip implementations.
*
* !!!NOTE!!!
* TAKE CARE TO INCLUDE THE CORRECT freertos_risc_v_chip_specific_extensions.h
* HEADER FILE FOR THE CHIP IN USE. This is done using the assembler's (not the
* compiler's!) include path. For example, if the chip in use includes a core
* local interrupter (CLINT) and does not include any chip specific register
* extensions then add the path below to the assembler's include path:
* FreeRTOS\Source\portable\GCC\RISC-V-RV32\chip_specific_extensions\RV32I_CLINT_no_extensions
*
*/
#ifndef __FREERTOS_RISC_V_EXTENSIONS_H__
#define __FREERTOS_RISC_V_EXTENSIONS_H__
#define portasmHAS_SIFIVE_CLINT 0
#define portasmHAS_MTIME 0
/* if you want to use FPU, please define ARCH_FPU and enable float point and ABI of gcc */
#define ARCH_FPU 0
#if ARCH_FPU
#define portasmADDITIONAL_CONTEXT_SIZE 32 /* Must be even number on 32-bit cores. */
.macro portasmSAVE_ADDITIONAL_REGISTERS
addi sp, sp, -(portasmADDITIONAL_CONTEXT_SIZE* portWORD_SIZE)
fsw f0, 1*portWORD_SIZE(sp)
fsw f1, 2*portWORD_SIZE(sp)
fsw f2, 3*portWORD_SIZE(sp)
fsw f3, 4*portWORD_SIZE(sp)
fsw f4, 5*portWORD_SIZE(sp)
fsw f5, 6*portWORD_SIZE(sp)
fsw f6, 7*portWORD_SIZE(sp)
fsw f7, 8*portWORD_SIZE(sp)
fsw f8, 9*portWORD_SIZE(sp)
fsw f9, 10*portWORD_SIZE(sp)
fsw f10, 11*portWORD_SIZE(sp)
fsw f11, 12*portWORD_SIZE(sp)
fsw f12, 13*portWORD_SIZE(sp)
fsw f13, 14*portWORD_SIZE(sp)
fsw f14, 15*portWORD_SIZE(sp)
fsw f15, 16*portWORD_SIZE(sp)
fsw f16, 17*portWORD_SIZE(sp)
fsw f17, 18*portWORD_SIZE(sp)
fsw f18, 19*portWORD_SIZE(sp)
fsw f19, 20*portWORD_SIZE(sp)
fsw f20, 21*portWORD_SIZE(sp)
fsw f21, 22*portWORD_SIZE(sp)
fsw f22, 23*portWORD_SIZE(sp)
fsw f23, 24*portWORD_SIZE(sp)
fsw f24, 25*portWORD_SIZE(sp)
fsw f25, 26*portWORD_SIZE(sp)
fsw f26, 27*portWORD_SIZE(sp)
fsw f27, 28*portWORD_SIZE(sp)
fsw f28, 29*portWORD_SIZE(sp)
fsw f29, 30*portWORD_SIZE(sp)
fsw f30, 31*portWORD_SIZE(sp)
fsw f31, 32*portWORD_SIZE(sp)
.endm
.macro portasmRESTORE_ADDITIONAL_REGISTERS
flw f0, 1*portWORD_SIZE(sp)
flw f1, 2*portWORD_SIZE(sp)
flw f2, 3*portWORD_SIZE(sp)
flw f3, 4*portWORD_SIZE(sp)
flw f4, 5*portWORD_SIZE(sp)
flw f5, 6*portWORD_SIZE(sp)
flw f6, 7*portWORD_SIZE(sp)
flw f7, 8*portWORD_SIZE(sp)
flw f8, 9*portWORD_SIZE(sp)
flw f9, 10*portWORD_SIZE(sp)
flw f10, 11*portWORD_SIZE(sp)
flw f11, 12*portWORD_SIZE(sp)
flw f12, 13*portWORD_SIZE(sp)
flw f13, 14*portWORD_SIZE(sp)
flw f14, 15*portWORD_SIZE(sp)
flw f15, 16*portWORD_SIZE(sp)
flw f16, 17*portWORD_SIZE(sp)
flw f17, 18*portWORD_SIZE(sp)
flw f18, 19*portWORD_SIZE(sp)
flw f19, 20*portWORD_SIZE(sp)
flw f20, 21*portWORD_SIZE(sp)
flw f21, 22*portWORD_SIZE(sp)
flw f22, 23*portWORD_SIZE(sp)
flw f23, 24*portWORD_SIZE(sp)
flw f24, 25*portWORD_SIZE(sp)
flw f25, 26*portWORD_SIZE(sp)
flw f26, 27*portWORD_SIZE(sp)
flw f27, 28*portWORD_SIZE(sp)
flw f28, 29*portWORD_SIZE(sp)
flw f29, 30*portWORD_SIZE(sp)
flw f30, 31*portWORD_SIZE(sp)
flw f31, 32*portWORD_SIZE(sp)
addi sp, sp, (portasmADDITIONAL_CONTEXT_SIZE* portWORD_SIZE)
.endm
#else
#define portasmADDITIONAL_CONTEXT_SIZE 0 /* Must be even number on 32-bit cores. */
.macro portasmSAVE_ADDITIONAL_REGISTERS
/* No additional registers to save, so this macro does nothing. */
.endm
.macro portasmRESTORE_ADDITIONAL_REGISTERS
/* No additional registers to restore, so this macro does nothing. */
.endm
#endif
#endif /* __FREERTOS_RISC_V_EXTENSIONS_H__ */

View File

@ -16,6 +16,6 @@ C_DEPS += \
# Each subdirectory must supply rules for building sources it contributes # Each subdirectory must supply rules for building sources it contributes
Core/%.o: ../Core/%.c Core/%.o: ../Core/%.c
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\zj\Project_Ch32v307\prj\TCPClient\NetLib" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Core" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Debug" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Peripheral\inc" -I"D:\zj\Project_Ch32v307\prj\TCPClient\User" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<" @ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\zj\ch32v307_camera\prj\TCPClient\NetLib" -I"D:\zj\ch32v307_camera\prj\TCPClient\Core" -I"D:\zj\ch32v307_camera\prj\TCPClient\Debug" -I"D:\zj\ch32v307_camera\prj\TCPClient\Peripheral\inc" -I"D:\zj\ch32v307_camera\prj\TCPClient\User" -I"D:\zj\ch32v307_camera\prj\TCPClient\FreeRTOS\include" -I"D:\zj\ch32v307_camera\prj\TCPClient\FreeRTOS\portable\GCC\RISC-V" -I"D:\zj\ch32v307_camera\prj\TCPClient\Middle\QDXnetworkStack" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
@ @ @ @

View File

@ -19,6 +19,6 @@ C_DEPS += \
# Each subdirectory must supply rules for building sources it contributes # Each subdirectory must supply rules for building sources it contributes
Debug/%.o: ../Debug/%.c Debug/%.o: ../Debug/%.c
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\zj\Project_Ch32v307\prj\TCPClient\NetLib" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Core" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Debug" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Peripheral\inc" -I"D:\zj\Project_Ch32v307\prj\TCPClient\User" -I"D:\zj\Project_Ch32v307\prj\TCPClient\FreeRTOS\include" -I"D:\zj\Project_Ch32v307\prj\TCPClient\FreeRTOS\portable\GCC\RISC-V" -I"D:\zj\Project_Ch32v307\prj\TCPClient\FreeRTOS\portable\GCC\RISC-V\chip_specific_extensions\RV32I_PFIC_no_extensions" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<" @ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\zj\ch32v307_camera\prj\TCPClient\NetLib" -I"D:\zj\ch32v307_camera\prj\TCPClient\Core" -I"D:\zj\ch32v307_camera\prj\TCPClient\Debug" -I"D:\zj\ch32v307_camera\prj\TCPClient\Peripheral\inc" -I"D:\zj\ch32v307_camera\prj\TCPClient\User" -I"D:\zj\ch32v307_camera\prj\TCPClient\FreeRTOS\include" -I"D:\zj\ch32v307_camera\prj\TCPClient\FreeRTOS\portable\GCC\RISC-V" -I"D:\zj\ch32v307_camera\prj\TCPClient\Middle\QDXnetworkStack" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
@ @ @ @

View File

@ -0,0 +1,31 @@
################################################################################
# MRS Version: 1.9.2
# 自动生成的文件。不要编辑!
################################################################################
# Add inputs and outputs from these tool invocations to the build variables
C_SRCS += \
../FreeRTOS/portable/GCC/RISC-V/port.c
S_UPPER_SRCS += \
../FreeRTOS/portable/GCC/RISC-V/portASM.S
OBJS += \
./FreeRTOS/portable/GCC/RISC-V/port.o \
./FreeRTOS/portable/GCC/RISC-V/portASM.o
S_UPPER_DEPS += \
./FreeRTOS/portable/GCC/RISC-V/portASM.d
C_DEPS += \
./FreeRTOS/portable/GCC/RISC-V/port.d
# Each subdirectory must supply rules for building sources it contributes
FreeRTOS/portable/GCC/RISC-V/%.o: ../FreeRTOS/portable/GCC/RISC-V/%.c
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\zj\ch32v307_camera\prj\TCPClient\NetLib" -I"D:\zj\ch32v307_camera\prj\TCPClient\Core" -I"D:\zj\ch32v307_camera\prj\TCPClient\Debug" -I"D:\zj\ch32v307_camera\prj\TCPClient\Peripheral\inc" -I"D:\zj\ch32v307_camera\prj\TCPClient\User" -I"D:\zj\ch32v307_camera\prj\TCPClient\FreeRTOS\include" -I"D:\zj\ch32v307_camera\prj\TCPClient\FreeRTOS\portable\GCC\RISC-V" -I"D:\zj\ch32v307_camera\prj\TCPClient\Middle\QDXnetworkStack" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
@ @
FreeRTOS/portable/GCC/RISC-V/%.o: ../FreeRTOS/portable/GCC/RISC-V/%.S
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -x assembler-with-cpp -I"D:\zj\ch32v307_camera\prj\TCPClient\Startup" -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
@ @

View File

@ -0,0 +1,21 @@
################################################################################
# MRS Version: 1.9.2
# 自动生成的文件。不要编辑!
################################################################################
# Add inputs and outputs from these tool invocations to the build variables
C_SRCS += \
../FreeRTOS/portable/MemMang/heap_4.c
OBJS += \
./FreeRTOS/portable/MemMang/heap_4.o
C_DEPS += \
./FreeRTOS/portable/MemMang/heap_4.d
# Each subdirectory must supply rules for building sources it contributes
FreeRTOS/portable/MemMang/%.o: ../FreeRTOS/portable/MemMang/%.c
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\zj\ch32v307_camera\prj\TCPClient\NetLib" -I"D:\zj\ch32v307_camera\prj\TCPClient\Core" -I"D:\zj\ch32v307_camera\prj\TCPClient\Debug" -I"D:\zj\ch32v307_camera\prj\TCPClient\Peripheral\inc" -I"D:\zj\ch32v307_camera\prj\TCPClient\User" -I"D:\zj\ch32v307_camera\prj\TCPClient\FreeRTOS\include" -I"D:\zj\ch32v307_camera\prj\TCPClient\FreeRTOS\portable\GCC\RISC-V" -I"D:\zj\ch32v307_camera\prj\TCPClient\Middle\QDXnetworkStack" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
@ @

View File

@ -1,57 +1,33 @@
################################################################################ ################################################################################
# FreeRTOS kernel sources for TCPClient project # MRS Version: 1.9.2
# 自动生成的文件。不要编辑!
################################################################################ ################################################################################
# Add inputs and outputs from these tool invocations to the build variables # Add inputs and outputs from these tool invocations to the build variables
C_SRCS += \ C_SRCS += \
../FreeRTOS/tasks.c \
../FreeRTOS/queue.c \
../FreeRTOS/list.c \
../FreeRTOS/timers.c \
../FreeRTOS/event_groups.c \ ../FreeRTOS/event_groups.c \
../FreeRTOS/portable/MemMang/heap_4.c \ ../FreeRTOS/list.c \
../FreeRTOS/portable/GCC/RISC-V/port.c ../FreeRTOS/queue.c \
../FreeRTOS/tasks.c \
S_UPPER_SRCS += \ ../FreeRTOS/timers.c
../FreeRTOS/portable/GCC/RISC-V/portASM.S
OBJS += \ OBJS += \
./FreeRTOS/tasks.o \
./FreeRTOS/queue.o \
./FreeRTOS/list.o \
./FreeRTOS/timers.o \
./FreeRTOS/event_groups.o \ ./FreeRTOS/event_groups.o \
./FreeRTOS/portable/MemMang/heap_4.o \ ./FreeRTOS/list.o \
./FreeRTOS/portable/GCC/RISC-V/port.o \ ./FreeRTOS/queue.o \
./FreeRTOS/portable/GCC/RISC-V/portASM.o ./FreeRTOS/tasks.o \
./FreeRTOS/timers.o
C_DEPS += \ C_DEPS += \
./FreeRTOS/tasks.d \
./FreeRTOS/queue.d \
./FreeRTOS/list.d \
./FreeRTOS/timers.d \
./FreeRTOS/event_groups.d \ ./FreeRTOS/event_groups.d \
./FreeRTOS/portable/MemMang/heap_4.d \ ./FreeRTOS/list.d \
./FreeRTOS/portable/GCC/RISC-V/port.d ./FreeRTOS/queue.d \
./FreeRTOS/tasks.d \
S_UPPER_DEPS += \ ./FreeRTOS/timers.d
./FreeRTOS/portable/GCC/RISC-V/portASM.d
# Each subdirectory must supply rules for building sources it contributes # Each subdirectory must supply rules for building sources it contributes
FreeRTOS/%.o: ../FreeRTOS/%.c FreeRTOS/%.o: ../FreeRTOS/%.c
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\zj\Project_Ch32v307\prj\TCPClient\NetLib" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Core" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Debug" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Peripheral\inc" -I"D:\zj\Project_Ch32v307\prj\TCPClient\User" -I"D:\zj\Project_Ch32v307\prj\TCPClient\FreeRTOS\include" -I"D:\zj\Project_Ch32v307\prj\TCPClient\FreeRTOS\portable\GCC\RISC-V" -I"D:\zj\Project_Ch32v307\prj\TCPClient\FreeRTOS\portable\GCC\RISC-V\chip_specific_extensions\RV32I_PFIC_no_extensions" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<" @ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\zj\ch32v307_camera\prj\TCPClient\NetLib" -I"D:\zj\ch32v307_camera\prj\TCPClient\Core" -I"D:\zj\ch32v307_camera\prj\TCPClient\Debug" -I"D:\zj\ch32v307_camera\prj\TCPClient\Peripheral\inc" -I"D:\zj\ch32v307_camera\prj\TCPClient\User" -I"D:\zj\ch32v307_camera\prj\TCPClient\FreeRTOS\include" -I"D:\zj\ch32v307_camera\prj\TCPClient\FreeRTOS\portable\GCC\RISC-V" -I"D:\zj\ch32v307_camera\prj\TCPClient\Middle\QDXnetworkStack" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
@ @
FreeRTOS/portable/MemMang/%.o: ../FreeRTOS/portable/MemMang/%.c
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\zj\Project_Ch32v307\prj\TCPClient\NetLib" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Core" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Debug" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Peripheral\inc" -I"D:\zj\Project_Ch32v307\prj\TCPClient\User" -I"D:\zj\Project_Ch32v307\prj\TCPClient\FreeRTOS\include" -I"D:\zj\Project_Ch32v307\prj\TCPClient\FreeRTOS\portable\GCC\RISC-V" -I"D:\zj\Project_Ch32v307\prj\TCPClient\FreeRTOS\portable\GCC\RISC-V\chip_specific_extensions\RV32I_PFIC_no_extensions" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
@ @
FreeRTOS/portable/GCC/RISC-V/%.o: ../FreeRTOS/portable/GCC/RISC-V/%.c
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\zj\Project_Ch32v307\prj\TCPClient\NetLib" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Core" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Debug" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Peripheral\inc" -I"D:\zj\Project_Ch32v307\prj\TCPClient\User" -I"D:\zj\Project_Ch32v307\prj\TCPClient\FreeRTOS\include" -I"D:\zj\Project_Ch32v307\prj\TCPClient\FreeRTOS\portable\GCC\RISC-V" -I"D:\zj\Project_Ch32v307\prj\TCPClient\FreeRTOS\portable\GCC\RISC-V\chip_specific_extensions\RV32I_PFIC_no_extensions" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
@ @
FreeRTOS/portable/GCC/RISC-V/%.o: ../FreeRTOS/portable/GCC/RISC-V/%.S
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -x assembler-with-cpp -I"D:\zj\Project_Ch32v307\prj\TCPClient\Startup" -I"D:\zj\Project_Ch32v307\prj\TCPClient\FreeRTOS\include" -I"D:\zj\Project_Ch32v307\prj\TCPClient\FreeRTOS\portable\GCC\RISC-V" -I"D:\zj\Project_Ch32v307\prj\TCPClient\FreeRTOS\portable\GCC\RISC-V\chip_specific_extensions\RV32I_PFIC_no_extensions" -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
@ @ @ @

View File

@ -25,6 +25,6 @@ C_DEPS += \
# Each subdirectory must supply rules for building sources it contributes # Each subdirectory must supply rules for building sources it contributes
Middle/QDXnetworkStack/%.o: ../Middle/QDXnetworkStack/%.c Middle/QDXnetworkStack/%.o: ../Middle/QDXnetworkStack/%.c
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\zj\Project_Ch32v307\prj\TCPClient\NetLib" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Core" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Debug" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Peripheral\inc" -I"D:\zj\Project_Ch32v307\prj\TCPClient\User" -I"D:\zj\Project_Ch32v307\prj\TCPClient\FreeRTOS\include" -I"D:\zj\Project_Ch32v307\prj\TCPClient\FreeRTOS\portable\GCC\RISC-V" -I"D:\zj\Project_Ch32v307\prj\TCPClient\FreeRTOS\portable\GCC\RISC-V\chip_specific_extensions\RV32I_PFIC_no_extensions" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<" @ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\zj\ch32v307_camera\prj\TCPClient\NetLib" -I"D:\zj\ch32v307_camera\prj\TCPClient\Core" -I"D:\zj\ch32v307_camera\prj\TCPClient\Debug" -I"D:\zj\ch32v307_camera\prj\TCPClient\Peripheral\inc" -I"D:\zj\ch32v307_camera\prj\TCPClient\User" -I"D:\zj\ch32v307_camera\prj\TCPClient\FreeRTOS\include" -I"D:\zj\ch32v307_camera\prj\TCPClient\FreeRTOS\portable\GCC\RISC-V" -I"D:\zj\ch32v307_camera\prj\TCPClient\Middle\QDXnetworkStack" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
@ @ @ @

View File

@ -16,6 +16,6 @@ C_DEPS += \
# Each subdirectory must supply rules for building sources it contributes # Each subdirectory must supply rules for building sources it contributes
NetLib/%.o: ../NetLib/%.c NetLib/%.o: ../NetLib/%.c
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\zj\Project_Ch32v307\prj\TCPClient\NetLib" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Core" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Debug" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Peripheral\inc" -I"D:\zj\Project_Ch32v307\prj\TCPClient\User" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<" @ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\zj\ch32v307_camera\prj\TCPClient\NetLib" -I"D:\zj\ch32v307_camera\prj\TCPClient\Core" -I"D:\zj\ch32v307_camera\prj\TCPClient\Debug" -I"D:\zj\ch32v307_camera\prj\TCPClient\Peripheral\inc" -I"D:\zj\ch32v307_camera\prj\TCPClient\User" -I"D:\zj\ch32v307_camera\prj\TCPClient\FreeRTOS\include" -I"D:\zj\ch32v307_camera\prj\TCPClient\FreeRTOS\portable\GCC\RISC-V" -I"D:\zj\ch32v307_camera\prj\TCPClient\Middle\QDXnetworkStack" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
@ @ @ @

View File

@ -91,6 +91,6 @@ C_DEPS += \
# Each subdirectory must supply rules for building sources it contributes # Each subdirectory must supply rules for building sources it contributes
Peripheral/src/%.o: ../Peripheral/src/%.c Peripheral/src/%.o: ../Peripheral/src/%.c
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\zj\Project_Ch32v307\prj\TCPClient\NetLib" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Core" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Debug" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Peripheral\inc" -I"D:\zj\Project_Ch32v307\prj\TCPClient\User" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<" @ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\zj\ch32v307_camera\prj\TCPClient\NetLib" -I"D:\zj\ch32v307_camera\prj\TCPClient\Core" -I"D:\zj\ch32v307_camera\prj\TCPClient\Debug" -I"D:\zj\ch32v307_camera\prj\TCPClient\Peripheral\inc" -I"D:\zj\ch32v307_camera\prj\TCPClient\User" -I"D:\zj\ch32v307_camera\prj\TCPClient\FreeRTOS\include" -I"D:\zj\ch32v307_camera\prj\TCPClient\FreeRTOS\portable\GCC\RISC-V" -I"D:\zj\ch32v307_camera\prj\TCPClient\Middle\QDXnetworkStack" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
@ @ @ @

View File

@ -16,6 +16,6 @@ S_UPPER_DEPS += \
# Each subdirectory must supply rules for building sources it contributes # Each subdirectory must supply rules for building sources it contributes
Startup/%.o: ../Startup/%.S Startup/%.o: ../Startup/%.S
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -x assembler-with-cpp -I"D:\zj\Project_Ch32v307\prj\TCPClient\Startup" -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<" @ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -x assembler-with-cpp -I"D:\zj\ch32v307_camera\prj\TCPClient\Startup" -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
@ @ @ @

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -22,6 +22,6 @@ C_DEPS += \
# Each subdirectory must supply rules for building sources it contributes # Each subdirectory must supply rules for building sources it contributes
User/%.o: ../User/%.c User/%.o: ../User/%.c
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\zj\Project_Ch32v307\prj\TCPClient\NetLib" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Core" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Debug" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Peripheral\inc" -I"D:\zj\Project_Ch32v307\prj\TCPClient\User" -I"D:\zj\Project_Ch32v307\prj\TCPClient\FreeRTOS\include" -I"D:\zj\Project_Ch32v307\prj\TCPClient\FreeRTOS\portable\GCC\RISC-V" -I"D:\zj\Project_Ch32v307\prj\TCPClient\FreeRTOS\portable\GCC\RISC-V\chip_specific_extensions\RV32I_PFIC_no_extensions" -I"D:\zj\Project_Ch32v307\prj\TCPClient\Middle\QDXnetworkStack" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<" @ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\zj\ch32v307_camera\prj\TCPClient\NetLib" -I"D:\zj\ch32v307_camera\prj\TCPClient\Core" -I"D:\zj\ch32v307_camera\prj\TCPClient\Debug" -I"D:\zj\ch32v307_camera\prj\TCPClient\Peripheral\inc" -I"D:\zj\ch32v307_camera\prj\TCPClient\User" -I"D:\zj\ch32v307_camera\prj\TCPClient\FreeRTOS\include" -I"D:\zj\ch32v307_camera\prj\TCPClient\FreeRTOS\portable\GCC\RISC-V" -I"D:\zj\ch32v307_camera\prj\TCPClient\Middle\QDXnetworkStack" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
@ @ @ @

View File

@ -14,6 +14,8 @@ RM := rm -rf
-include Peripheral/src/subdir.mk -include Peripheral/src/subdir.mk
-include NetLib/subdir.mk -include NetLib/subdir.mk
-include Middle/QDXnetworkStack/subdir.mk -include Middle/QDXnetworkStack/subdir.mk
-include FreeRTOS/portable/MemMang/subdir.mk
-include FreeRTOS/portable/GCC/RISC-V/subdir.mk
-include FreeRTOS/subdir.mk -include FreeRTOS/subdir.mk
-include Debug/subdir.mk -include Debug/subdir.mk
-include Core/subdir.mk -include Core/subdir.mk
@ -56,7 +58,7 @@ all: TCPClient.elf secondary-outputs
# 工具调用 # 工具调用
TCPClient.elf: $(OBJS) $(USER_OBJS) TCPClient.elf: $(OBJS) $(USER_OBJS)
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -T "D:\zj\Project_Ch32v307\prj\TCPClient\Ld\Link.ld" -nostartfiles -Xlinker --gc-sections -L"D:\zj\Project_Ch32v307\prj\TCPClient\NetLib" -Wl,-Map,"TCPClient.map" --specs=nano.specs --specs=nosys.specs -o "TCPClient.elf" $(OBJS) $(USER_OBJS) $(LIBS) -lprintf @ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -T "D:\zj\ch32v307_camera\prj\TCPClient\Ld\Link.ld" -nostartfiles -Xlinker --gc-sections -L"D:\zj\ch32v307_camera\prj\TCPClient\NetLib" -Wl,-Map,"TCPClient.map" --specs=nano.specs --specs=nosys.specs -o "TCPClient.elf" $(OBJS) $(USER_OBJS) $(LIBS) -lprintf
@ @ @ @
TCPClient.hex: TCPClient.elf TCPClient.hex: TCPClient.elf
@ riscv-none-embed-objcopy -O ihex "TCPClient.elf" "TCPClient.hex" @ riscv-none-embed-objcopy -O ihex "TCPClient.elf" "TCPClient.hex"

15
q Normal file
View File

@ -0,0 +1,15 @@
../User/ch32v30x_it.c: In function 'TIM2_IRQHandler':
../User/ch32v30x_it.c:98:5: warning: implicit declaration of function 'xPortSysTickHandler' [-Wimplicit-function-declaration]
xPortSysTickHandler();
^~~~~~~~~~~~~~~~~~~
c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: TCPClient.elf section `.bss' will not fit in region `RAM'
c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: section .stack VMA [000000002001f800,000000002001ffff] overlaps section .bss VMA [00000000200000a0,000000002002dc6b]
c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: region `RAM' overflowed by 0 bytes
c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: ./User/ch32v30x_it.o: in function `TIM2_IRQHandler':
D:\zj\ch32v307_camera\prj\TCPClient\obj/../User/ch32v30x_it.c:98: undefined reference to `xPortSysTickHandler'
c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: ./FreeRTOS/portable/GCC/RISC-V/port.o: in function `xPortStartScheduler':
D:\zj\ch32v307_camera\prj\TCPClient\obj/../FreeRTOS/portable/GCC/RISC-V/port.c:182: undefined reference to `__freertos_irq_stack_top'
c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:\zj\ch32v307_camera\prj\TCPClient\obj/../FreeRTOS/portable/GCC/RISC-V/port.c:182: undefined reference to `__freertos_irq_stack_top'
c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: ./FreeRTOS/portable/GCC/RISC-V/port.o:D:\zj\ch32v307_camera\prj\TCPClient\obj/../FreeRTOS/portable/GCC/RISC-V/port.c:80: undefined reference to `__freertos_irq_stack_top'
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:61: TCPClient.elf] Error 1