mirror of
https://github.com/WeActStudio/ArduinoCore-AT32F4.git
synced 2026-05-21 01:12:00 +00:00
support linux system
This commit is contained in:
@@ -13,7 +13,7 @@ WeActStudioAT32F4.build.core=arduino
|
|||||||
WeActStudioAT32F4.build.extra_flags=-DAT32F403ACGU7 -USE_STDPERIPH_DRIVER
|
WeActStudioAT32F4.build.extra_flags=-DAT32F403ACGU7 -USE_STDPERIPH_DRIVER
|
||||||
WeActStudioAT32F4.build.variant=AT32F403ACGU7
|
WeActStudioAT32F4.build.variant=AT32F403ACGU7
|
||||||
WeActStudioAT32F4.build.variant_system_lib=FrameLib.a
|
WeActStudioAT32F4.build.variant_system_lib=FrameLib.a
|
||||||
WeActStudioAT32F4.build.ldscript=linker_scripts\AT32F403AxG_FLASH.ld
|
WeActStudioAT32F4.build.ldscript=linker_scripts/AT32F403AxG_FLASH.ld
|
||||||
|
|
||||||
WeActStudioAT32F4.menu.pll_clock_source.hext_div2=high speed external crystal div 2
|
WeActStudioAT32F4.menu.pll_clock_source.hext_div2=high speed external crystal div 2
|
||||||
WeActStudioAT32F4.menu.pll_clock_source.hext_div2.build.f_pll_clock_source=2
|
WeActStudioAT32F4.menu.pll_clock_source.hext_div2.build.f_pll_clock_source=2
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "WeAct Studio",
|
"name": "WeActStudio",
|
||||||
"maintainer": "WeAct Studio",
|
"maintainer": "WeActStudio",
|
||||||
"email": "",
|
"email": "",
|
||||||
"websiteURL": "https://github.com/WeActStudio/ArduinoCore-AT32F4/",
|
"websiteURL": "https://github.com/WeActStudio/ArduinoCore-AT32F4/",
|
||||||
"help": {
|
"help": {
|
||||||
@@ -14,10 +14,8 @@
|
|||||||
"architecture": "at32f403a",
|
"architecture": "at32f403a",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"category": "Contributed",
|
"category": "Contributed",
|
||||||
"url": "https://github.com/WeActStudio/ArduinoCore-AT32F4/releases/download/0.0.1/ArduinoCore-AT32F403A-0.0.1.tar.bz2",
|
"url": "https://github.com/WeActStudio/ArduinoCore-AT32F4/archive/refs/heads/main.zip",
|
||||||
"archiveFileName": "ArduinoCore-AT32F403A-0.0.1.tar.bz2",
|
"archiveFileName": "ArduinoCore-AT32F4-main.zip",
|
||||||
"checksum": "SHA-256:33baf93c9ee19a5d20ed1cd71c1443c7b4fa24be2c16824329ba11b18fd75b40",
|
|
||||||
"size": "344734",
|
|
||||||
"help": {
|
"help": {
|
||||||
"online": ""
|
"online": ""
|
||||||
},
|
},
|
||||||
@@ -28,12 +26,12 @@
|
|||||||
],
|
],
|
||||||
"toolsDependencies": [
|
"toolsDependencies": [
|
||||||
{
|
{
|
||||||
"packager": "WeAct Studio",
|
"packager": "WeActStudio",
|
||||||
"name": "xpack-arm-none-eabi-gcc",
|
"name": "xpack-arm-none-eabi-gcc",
|
||||||
"version": "11.2.1-1.2"
|
"version": "11.2.1-1.2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"packager": "WeAct Studio",
|
"packager": "WeActStudio",
|
||||||
"name": "Artery_ISP_Console",
|
"name": "Artery_ISP_Console",
|
||||||
"version": "0.0.1"
|
"version": "0.0.1"
|
||||||
}
|
}
|
||||||
@@ -68,21 +66,21 @@
|
|||||||
"systems": [
|
"systems": [
|
||||||
{
|
{
|
||||||
"host": "i686-mingw32",
|
"host": "i686-mingw32",
|
||||||
"url": "https://github.com/WeActStudio/ArduinoCore-AT32F4/releases/download/0.0.1/Artery_ISP_Console-0.0.1-windows.zip",
|
"url": "https://github.com/WeActStudio/ArduinoCore-AT32F4/releases/download/0.0.1/Artery_ISP_Console_Win_V3.0.01.zip",
|
||||||
"archiveFileName": "Artery_ISP_Console-0.0.1-windows.zip",
|
"archiveFileName": "Artery_ISP_Console_Win_V3.0.01.zip",
|
||||||
"size": "3849553",
|
"size": "3890476",
|
||||||
"checksum": "SHA-256:81f03a390298006775c2f2d856c87802f49f021c84953e27c8e25ffd2a043f65"
|
"checksum": "SHA-256:785979348d5c6b9451650d2ba22233825f362d46adfdfb1e4794e3866b4d034f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"host": "x86_64-pc-linux-gnu",
|
"host": "x86_64-pc-linux-gnu",
|
||||||
"url": "https://github.com/ZYQ-FEIYUE/ArduinoCore-AT32F4/releases/download/v0.0.1/Artery_ISP_Console_Linux_V3.0.01.tar.bz2",
|
"url": "https://github.com/WeActStudio/ArduinoCore-AT32F4/releases/download/0.0.1/Artery_ISP_Console_Linux_V3.0.01.tar.bz2",
|
||||||
"archiveFileName": "Artery_ISP_Console_Linux_V3.0.01.tar.bz2",
|
"archiveFileName": "Artery_ISP_Console_Linux_V3.0.01.tar.bz2",
|
||||||
"size": "4307698",
|
"size": "14810873",
|
||||||
"checksum": "SHA-256:6b21819e56fb0fe3e67640e1a59d5c07069bf324b9e8fccbe4c026486818b35f"
|
"checksum": "SHA-256:ee2f97a878735e43f114c5ee806064e3a0e8d2a5eeb0879d9fbe31d5b8e02078"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ version=0.0.1
|
|||||||
####AT32 compile variables
|
####AT32 compile variables
|
||||||
|
|
||||||
## compiler variables
|
## compiler variables
|
||||||
compiler.path={runtime.tools.xpack-arm-none-eabi-gcc.path}\bin\
|
compiler.path={runtime.tools.xpack-arm-none-eabi-gcc.path}/bin/
|
||||||
|
|
||||||
##All the command
|
##All the command
|
||||||
compiler.asm.cmd=arm-none-eabi-gcc
|
compiler.asm.cmd=arm-none-eabi-gcc
|
||||||
@@ -32,7 +32,7 @@ build.common_flags=-mthumb
|
|||||||
##===============================================##
|
##===============================================##
|
||||||
## In there,set the include path,for FrameLib use
|
## In there,set the include path,for FrameLib use
|
||||||
|
|
||||||
compiler.FrameLib.c.flags="-I{build.system.path}\Drivers\CMSIS\Include" "-I{build.system.path}\AT32F403A" "-I{build.system.path}\Drivers\Firmware\inc" "-I{build.system.path}\libcore" "-I{build.system.path}\libcore\config"
|
compiler.FrameLib.c.flags="-I{build.system.path}/Drivers/CMSIS/Include" "-I{build.system.path}/AT32F403A" "-I{build.system.path}/Drivers/Firmware/inc" "-I{build.system.path}/libcore" "-I{build.system.path}/libcore/config"
|
||||||
|
|
||||||
##===============================================##
|
##===============================================##
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -m
|
|||||||
|
|
||||||
recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} "{archive_file_path}" "{object_file}"
|
recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} "{archive_file_path}" "{object_file}"
|
||||||
|
|
||||||
recipe.c.combine.pattern="{compiler.path}{compiler.elf.cmd}" {compiler.elf.flags} -mcpu={build.mcu} "-L{build.variant.path}" "-T{build.variant.path}\{build.ldscript}" {object_files} "{archive_file_path}" "{build.variant.path}\{build.variant_system_lib}" -o "{build.path}/{build.project_name}.elf"
|
recipe.c.combine.pattern="{compiler.path}{compiler.elf.cmd}" {compiler.elf.flags} -mcpu={build.mcu} "-L{build.variant.path}" "-T{build.variant.path}/{build.ldscript}" {object_files} "{archive_file_path}" "{build.variant.path}/{build.variant_system_lib}" -o "{build.path}/{build.project_name}.elf"
|
||||||
##recipe.c.combine.pattern="{compiler.path}{compiler.elf.cmd}" {compiler.elf.flags} -mcpu={build.mcu} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group {object_files} -Wl,--whole-archive "{archive_file_path}" -Wl,--no-whole-archive -Wl,--end-group
|
##recipe.c.combine.pattern="{compiler.path}{compiler.elf.cmd}" {compiler.elf.flags} -mcpu={build.mcu} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group {object_files} -Wl,--whole-archive "{archive_file_path}" -Wl,--no-whole-archive -Wl,--end-group
|
||||||
|
|
||||||
recipe.objcopy.eep.pattern=
|
recipe.objcopy.eep.pattern=
|
||||||
@@ -53,16 +53,16 @@ recipe.objcopy.hex.pattern="{compiler.path}{compiler.hex.cmd}" {compiler.hex.fla
|
|||||||
|
|
||||||
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
|
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
|
||||||
|
|
||||||
recipe.size.regex=\.text\s+([0-9]+).*
|
recipe.size.regex=/.text/s+([0-9]+).*
|
||||||
|
|
||||||
|
|
||||||
# Uploader tools
|
# Uploader tools
|
||||||
# -------------------
|
# -------------------
|
||||||
|
|
||||||
tools.Artery_ISP_Console.cmd=WeAct Studio Download Tool.bat
|
tools.Artery_ISP_Console.cmd=DFU_download.sh
|
||||||
tools.Artery_ISP_Console.cmd.windows=WeAct Studio Download Tool.bat
|
tools.Artery_ISP_Console.cmd.windows=WeAct Studio Download Tool.bat
|
||||||
tools.Artery_ISP_Console.path={runtime.tools.Artery_ISP_Console.path}
|
tools.Artery_ISP_Console.path={runtime.tools.Artery_ISP_Console.path}
|
||||||
|
|
||||||
tools.Artery_ISP_Console.upload.params.verbose=-d
|
tools.Artery_ISP_Console.upload.params.verbose=-d
|
||||||
tools.Artery_ISP_Console.upload.params.quiet=
|
tools.Artery_ISP_Console.upload.params.quiet=
|
||||||
tools.Artery_ISP_Console.upload.pattern="{path}\{cmd}" "{build.path}/{build.project_name}.hex"
|
tools.Artery_ISP_Console.upload.pattern="{path}/{cmd}" "{build.path}/{build.project_name}.hex"
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user