Skip to content
This repository has been archived by the owner on Mar 25, 2019. It is now read-only.

Support multiple config file #138

Closed
bkg2k opened this issue Feb 11, 2019 · 2 comments
Closed

Support multiple config file #138

bkg2k opened this issue Feb 11, 2019 · 2 comments

Comments

@bkg2k
Copy link

bkg2k commented Feb 11, 2019

Expected Behavior

Working with STM32F4 and STLink debug devices, I'm able to select more than one config file in Eclipse OpenOCD plugin:

-f interface/stlink-v2-1.cfg
-f target/stm32f4x.cfg

Actual Behavior

Only one config file can be selected.

Specifications

  • Plugin Version: 1.3.Alpha
  • CLion version: EAP 2019.1
  • OpenOCD version: 0.10.0-5-20171110-1117
  • GDB Version:
  • STM32CubeMX version:
  • Toolchain:
  • Platform:
  • Hardware configuration:
@elmot
Copy link
Owner

elmot commented Feb 11, 2019

Duplicate #136

@elmot
Copy link
Owner

elmot commented Feb 11, 2019

You can write your own config file for your project and use that. The file is going to have only references to existing configs + optional tweaks. Here is an example, standard file for STM32F4-Discovery from OpenOCD distribution.

# This is an STM32F4 discovery board with a single STM32F407VGT6 chip.
# http://www.st.com/internet/evalboard/product/252419.jsp

source [find interface/stlink.cfg]

transport select hla_swd

# increase working area to 64KB
set WORKAREASIZE 0x10000

source [find target/stm32f4x.cfg]

reset_config srst_only

@elmot elmot closed this as completed Feb 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants