Skip to main content
ynsozdmr
Associate
Feb 27, 2023 8:19 PM UTC
Solved

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

..

This topic has been closed for replies.
HNGUY.2
HNGUY.2Best answer
Visitor II
Mar 3, 2023 9:01 AM UTC

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
Feb 28, 2023 10:10 AM UTC

Hello,

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

ynsozdmr
ynsozdmrAuthor
Associate
Mar 2, 2023 12:30 PM UTC

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
Mar 3, 2023 9:01 AM UTC

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.