forked from Elron_dev/elbear_arduino_bsp
v0.5.0
- добавлена поддержка платы ELBEAR ACE-NANO; - добавлена поддержка плат ELSOMIK OEM и SE; - добавлена возможность работы в режиме отладки для всех плат, входящих в состав пакета. Доступно для версии ArduinoIDE 2 и выше; - добавлена поддержка библиотеки FreeRTOS; - добавлена поддержка библиотеки IRremote; - добавлена поддержка библиотеки OneWire; - добавлена поддержка аппаратного I2C0 для плат START-MIK32 и ELSOMIK. Для работы с ним доступен экземпляр класса Wire1; - добавлена поддержка аппаратного SPI0 для всех плат, входящих в пакет. Для работы с ним доступен экземпляр класса SPI1; - увеличено быстродействие функций digitalWrite, digitalRead; - исправлены известные ошибки. Co-authored-by: KlassenTS <klassen@elron.tech> Co-committed-by: KlassenTS <klassen@elron.tech>
This commit is contained in:
1 parent
de1f0d7fda
commit
1c8e06634c
211 files changed
+97525
-591
No files matched your search
+47
-5
@@ -17,7 +17,6 @@ compiler.elf2hex.cmd={compiler.prefix}objcopy
|
||||
compiler.MIK32_Amur.extra_include= "-I{build.core.path}/avr/" "-I{build.core.path}/mik32/shared/include/" "-I{build.core.path}/mik32/shared/periphery/" "-I{build.core.path}/mik32/shared/runtime/" "-I{build.core.path}/mik32/shared/libs/" "-I{build.core.path}/mik32/hal/core/Include/" "-I{build.core.path}/mik32/hal/peripherals/Include/" "-I{build.core.path}/mik32/hal/utilities/Include/"
|
||||
compiler.define="-DMCU_{build.mcu}" "-DF_CPU={build.f_cpu}" "-DARDUINO={runtime.ide.version}" "-DARDUINO_{build.board}" "-DARDUINO_ARCH_{build.arch}" "-DMIK32V2" "-D__ARDUINO_ARC__" "-D__CPU_ARC__"
|
||||
|
||||
build.flags.optimize=-Os
|
||||
build.ldscript=spifi_cpp.ld
|
||||
|
||||
# Compiler flags
|
||||
@@ -27,10 +26,16 @@ compiler.warning_flags.default=
|
||||
compiler.warning_flags.more=-Wall
|
||||
compiler.warning_flags.all=-Wall -Wextra
|
||||
|
||||
compiler.extra_flags = -march=rv32imc_zicsr_zifencei -mabi=ilp32 -mcmodel=medlow {build.flags.optimize} -g3 -Wall -fsigned-char -ffunction-sections
|
||||
compiler.S.flags = {compiler.extra_flags} -x assembler-with-cpp {compiler.define} {compiler.warning_flags} {compiler.MIK32_Amur.extra_include}
|
||||
compiler.c.flags = -c -std=gnu11 {compiler.extra_flags} {compiler.define} {compiler.warning_flags} {compiler.MIK32_Amur.extra_include}
|
||||
compiler.cpp.flags = -c -std=gnu++17 -fabi-version=0 -fno-exceptions -fno-rtti -fno-use-cxa-atexit -fno-threadsafe-statics {compiler.extra_flags} {compiler.define} {compiler.warning_flags} {compiler.MIK32_Amur.extra_include}
|
||||
# EXPERIMENTAL feature: optimization flags
|
||||
# - this is alpha and may be subject to change without notice
|
||||
compiler.optimization_flags=-Os
|
||||
compiler.optimization_flags.release=-Os
|
||||
compiler.optimization_flags.debug=-Og -g3
|
||||
|
||||
compiler.extra_flags = -march=rv32imc_zicsr_zifencei -mabi=ilp32 -mcmodel=medlow -Wall -fsigned-char -ffunction-sections
|
||||
compiler.S.flags = {compiler.extra_flags} -x assembler-with-cpp {compiler.define} -I"{runtime.platform.path}/libraries/FreeRTOS/src" {compiler.optimization_flags} {compiler.warning_flags} {compiler.MIK32_Amur.extra_include}
|
||||
compiler.c.flags = -c -std=gnu11 {compiler.extra_flags} {compiler.define} {compiler.warning_flags} {compiler.optimization_flags} {compiler.MIK32_Amur.extra_include}
|
||||
compiler.cpp.flags = -c -std=gnu++17 -fabi-version=0 -fno-exceptions -fno-rtti -fno-use-cxa-atexit -fno-threadsafe-statics {compiler.extra_flags} {compiler.define} {compiler.warning_flags} {compiler.optimization_flags} {compiler.MIK32_Amur.extra_include}
|
||||
compiler.c.elf.flags = -march=rv32imc_zicsr_zifencei -mabi=ilp32 -mcmodel=medlow -nostartfiles -Xlinker
|
||||
compiler.ar.flags=rc
|
||||
compiler.elf2bin.flags=-O binary
|
||||
@@ -59,6 +64,43 @@ recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build
|
||||
recipe.size.regex= ^(?:\.text|\.data|\.rodata)\s+([0-9]+).*
|
||||
recipe.size.regex.data= ^(?:\.data|\.bss|\.noinit)\s+([0-9]+).*
|
||||
|
||||
# Debugger configuration (general options)
|
||||
# ----------------------------------------
|
||||
# EXPERIMENTAL feature:
|
||||
# - this is alpha and may be subject to change without notice
|
||||
|
||||
debug_config.mik32.cortex-debug.custom.name=Arduino on Mik32
|
||||
debug_config.mik32.cortex-debug.custom.overrideLaunchCommands.0=set mem inaccessible-by-default off
|
||||
debug_config.mik32.cortex-debug.custom.overrideLaunchCommands.1=mem 0x01000000 0x01002000 ro
|
||||
debug_config.mik32.cortex-debug.custom.overrideLaunchCommands.2=mem 0x80000000 0xffffffff ro
|
||||
debug_config.mik32.cortex-debug.custom.overrideLaunchCommands.3=set arch riscv:rv32
|
||||
debug_config.mik32.cortex-debug.custom.overrideLaunchCommands.4=set remotetimeout 10
|
||||
debug_config.mik32.cortex-debug.custom.overrideLaunchCommands.5=set remote hardware-breakpoint-limit 2
|
||||
debug_config.mik32.cortex-debug.custom.overrideLaunchCommands.6=thb setup
|
||||
debug_config.mik32.cortex-debug.custom.overrideLaunchCommands.7=monitor reset
|
||||
debug_config.mik32.cortex-debug.custom.overrideLaunchCommands.8=monitor halt
|
||||
debug_config.mik32.cortex-debug.custom.overrideLaunchCommands.9=monitor gdb sync
|
||||
|
||||
debug_config.mik32.cortex-debug.custom.overrideRestartCommands.0=thb setup
|
||||
debug_config.mik32.cortex-debug.custom.overrideRestartCommands.1=monitor reset
|
||||
debug_config.mik32.cortex-debug.custom.overrideRestartCommands.2=monitor halt
|
||||
debug_config.mik32.cortex-debug.custom.overrideRestartCommands.3=monitor gdb sync
|
||||
|
||||
debug.executable={build.path}/{build.project_name}.elf
|
||||
debug.svd_file={runtime.platform.path}/cores/arduino/mik32/shared/svd/mik32v2.svd
|
||||
|
||||
debug.toolchain=gcc
|
||||
debug.toolchain.path={runtime.tools.riscv.path}/bin/
|
||||
debug.toolchain.prefix=riscv-none-elf-
|
||||
|
||||
debug.server=openocd
|
||||
debug.server.openocd.path={runtime.tools.openocd.path}/bin/openocd
|
||||
debug.server.openocd.scripts_dir={runtime.tools.mik32_upload.path}/openocd-scripts/
|
||||
debug.server.openocd.scripts.0={debug.server.openocd.scripts_dir}/interface/{bootloader.interface}
|
||||
debug.server.openocd.scripts.1={debug.server.openocd.scripts_dir}/target/mik32.cfg
|
||||
|
||||
debug.additional_config=debug_config.mik32
|
||||
|
||||
# Uploader tool
|
||||
tools.elbear_uploader.cmd=elbear_uploader
|
||||
tools.elbear_uploader.cmd.windows=elbear_uploader.exe
|
||||
|
||||
Reference in new issue
Block a user