diff --git a/platform.txt b/platform.txt index ad89f7c..f49543e 100644 --- a/platform.txt +++ b/platform.txt @@ -30,7 +30,7 @@ compiler.warning_flags.all=-Wall -Wextra # - 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.optimization_flags.debug=-O0 -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} {compiler.optimization_flags} {compiler.warning_flags} {compiler.MIK32_Amur.extra_include} @@ -77,17 +77,21 @@ debug_config.mik32.cortex-debug.custom.overrideLaunchCommands.2=mem 0x80000000 0 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=monitor reset -debug_config.mik32.cortex-debug.custom.overrideLaunchCommands.7=monitor halt -debug_config.mik32.cortex-debug.custom.overrideLaunchCommands.8=monitor gdb sync -debug_config.mik32.cortex-debug.custom.overrideLaunchCommands.9=thb setup +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=monitor reset -debug_config.mik32.cortex-debug.custom.overrideRestartCommands.1=monitor halt -debug_config.mik32.cortex-debug.custom.overrideRestartCommands.2=monitor gdb sync -debug_config.mik32.cortex-debug.custom.overrideRestartCommands.3=thb setup +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_config.mik32.cortex-debug.custom.showDevDebugOutput = raw debug.executable={build.path}/{build.project_name}.elf +debug.svd_file={runtime.platform.path}/svd/mik32v2.svd + debug.toolchain=gcc debug.toolchain.path={runtime.tools.riscv.path}/bin/ debug.toolchain.prefix=riscv-none-elf- @@ -98,7 +102,6 @@ debug.server.openocd.scripts_dir={runtime.tools.mik32_upload.path}/openocd-scrip debug.server.openocd.scripts.0={debug.server.openocd.scripts_dir}/interface/ftdi/mikron-link.cfg debug.server.openocd.scripts.1={debug.server.openocd.scripts_dir}/{debug_script.mik32} -debug.cortex-debug.custom.objdumpPath={compiler.path}{compiler.prefix}objdump debug.additional_config=debug_config.mik32 # Uploader tool