Skip to main content
ynsozdmr
Associate
February 27, 2023
Solved

Hi, How can SPC584Bx be program without stk5, spc5 studio etc. (For example Microchip family has CLI (command line interface))

  • February 27, 2023
  • 3 replies
  • 1453 views

..

This topic has been closed for replies.
Best answer by HNGUY.2

First you have to generate the software through SPC5Studio in order to get the .cfg and out.elf.

Then you can program using OpenOCD:

path\to\openocd\bin\openocd.exe -s path\to\openocd\scripts -f path\to\board\spc584b_dis.cfg -c "program path\to\workspace\project\build\out.elf reset exit"

For windows computer please avoid path with space.

3 replies

HNGUY.2
Visitor II
February 28, 2023

Hello,

You can program by CLI with PLS-UDE through MemtoolCli command or OpenOCD.

ynsozdmr
ynsozdmrAuthor
Associate
March 2, 2023

Firstly, thanks for your answer but I have not found any .cfg file for OpenOCD. Is there any resource about SPC584Bx processor on internet or your platform.

HNGUY.2
HNGUY.2Best answer
Visitor II
March 3, 2023

First you have to generate the software through SPC5Studio in order to get the .cfg and out.elf.

Then you can program using OpenOCD:

path\to\openocd\bin\openocd.exe -s path\to\openocd\scripts -f path\to\board\spc584b_dis.cfg -c "program path\to\workspace\project\build\out.elf reset exit"

For windows computer please avoid path with space.