Author Topic: Flashing SMF2000's CPU from command-line  (Read 235 times)

blipton

  • Active Member
  • *
  • Posts: 6
Flashing SMF2000's CPU from command-line
« on: April 28, 2023, 01:56:28 AM »
Anyone know a way to program the Cortex-M3 using openocd command line?  SoftConsole's debug console doesn't display the commands.

From the debugging options, I see openocd is started using:
openocd --command "set DEVICE M2S010" --file board/microsemi-cortex-m3.cfg

but no clue on download/flash .elf file..  the following doesn't work presumably because the elf doesn't have the memory area to download to?
openocd -f board/microsemi-cortex-m3.cfg -c "program myfile.elf verify reset exit


oyousbottom

  • Active Member
  • *
  • Posts: 1
Re: Flashing SMF2000's CPU from command-line
« Reply #1 on: September 14, 2023, 04:21:00 AM »
I can establish a connection between the TE0790 and the VM using xsdb or xsct, but I am unable to list the targets (the output is shown below).

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2038
Re: Flashing SMF2000's CPU from command-line
« Reply #2 on: September 18, 2023, 08:05:23 AM »
Hi,
check JTAG connection between programmer and board.
they must be connected correctly, see:
https://wiki.trenz-electronic.de/display/PD/TE0790+TRM#TE0790TRM-Signals,InterfacesandPins
br
JH