Topics

Opened on mac st_nucleo_l476


cstyle
 

Anyone use openocd for Mac? thanks.

Show error message like this ,After install  opened 0.10.0 by homebrew for st_nucleo_l476rg.


logs :

azhuodeMacBook-Pro:zephyr azhuo$ west flash
ninja: no work to do.
Using runner: openocd
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
Warn : ignoring extra IDs in hl_vid_pid (maximum is 1 pair)
hla_vid_pid (vid pid)* 

ERROR: command exited with status 1: /usr/local/bin/openocd -f /Users/azhuo/zephyr14git/zephyrproject/zephyr/boards/arm/nucleo_l476rg/support/openocd.cfg -c init -c targets -c 'reset halt' -c 'flash write_image erase /Users/azhuo/zephyr14git/zephyrproject/zephyr/build/zephyr/zephyr.elf' -c 'reset halt' -c 'verify_image /Users/azhuo/zephyr14git/zephyrproject/zephyr/build/zephyr/zephyr.elf' -c 'reset run' -c shutdown
run as "west -v flash" for a stack trace
azhuodeMacBook-Pro:zephyr azhuo$ west -v flash
ZEPHYR_BASE=/Users/azhuo/zephyr14git/zephyrproject/zephyr (origin: env)
ninja: no work to do.
Using runner: openocd
/usr/local/bin/openocd -f /Users/azhuo/zephyr14git/zephyrproject/zephyr/boards/arm/nucleo_l476rg/support/openocd.cfg -c init -c targets -c 'reset halt' -c 'flash write_image erase /Users/azhuo/zephyr14git/zephyrproject/zephyr/build/zephyr/zephyr.elf' -c 'reset halt' -c 'verify_image /Users/azhuo/zephyr14git/zephyrproject/zephyr/build/zephyr/zephyr.elf' -c 'reset run' -c shutdown
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
Warn : ignoring extra IDs in hl_vid_pid (maximum is 1 pair)
hla_vid_pid (vid pid)* 

ERROR: command exited with status 1: /usr/local/bin/openocd -f /Users/azhuo/zephyr14git/zephyrproject/zephyr/boards/arm/nucleo_l476rg/support/openocd.cfg -c init -c targets -c 'reset halt' -c 'flash write_image erase /Users/azhuo/zephyr14git/zephyrproject/zephyr/build/zephyr/zephyr.elf' -c 'reset halt' -c 'verify_image /Users/azhuo/zephyr14git/zephyrproject/zephyr/build/zephyr/zephyr.elf' -c 'reset run' -c shutdown
Traceback (most recent call last):
  File "/Users/azhuo/zephyr14git/zephyrproject/.west/west/src/west/main.py", line 580, in main
    args.handler(args, unknown)
  File "/Users/azhuo/zephyr14git/zephyrproject/.west/west/src/west/main.py", line 332, in ext_command_handler
    command.run(*west_parser.parse_known_args(argv))
  File "/Users/azhuo/zephyr14git/zephyrproject/.west/west/src/west/commands/command.py", line 90, in run
    self.do_run(args, unknown)
  File "/Users/azhuo/zephyr14git/zephyrproject/zephyr/scripts/west_commands/flash.py", line 32, in do_run
    'ZEPHYR_BOARD_FLASH_RUNNER')
  File "/Users/azhuo/zephyr14git/zephyrproject/zephyr/scripts/west_commands/run_common.py", line 228, in do_run_common
    runner.run(command_name)
  File "/Users/azhuo/zephyr14git/zephyrproject/zephyr/scripts/west_commands/runners/core.py", line 407, in run
    self.do_run(command, **kwargs)
  File "/Users/azhuo/zephyr14git/zephyrproject/zephyr/scripts/west_commands/runners/openocd.py", line 84, in do_run
    self.do_flash(**kwargs)
  File "/Users/azhuo/zephyr14git/zephyrproject/zephyr/scripts/west_commands/runners/openocd.py", line 116, in do_flash
    self.check_call(cmd)
  File "/Users/azhuo/zephyr14git/zephyrproject/zephyr/scripts/west_commands/runners/core.py", line 466, in check_call
    subprocess.check_call(cmd)
  File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 341, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/local/bin/openocd', '-f', '/Users/azhuo/zephyr14git/zephyrproject/zephyr/boards/arm/nucleo_l476rg/support/openocd.cfg', '-c', 'init', '-c', 'targets', '-c', 'reset halt', '-c', 'flash write_image erase /Users/azhuo/zephyr14git/zephyrproject/zephyr/build/zephyr/zephyr.elf', '-c', 'reset halt', '-c', 'verify_image /Users/azhuo/zephyr14git/zephyrproject/zephyr/build/zephyr/zephyr.elf', '-c', 'reset run', '-c', 'shutdown']' returned non-zero exit status 1.
azhuodeMacBook-Pro:zephyr azhuo$