Index | Thread | Search

From:
David Barrass <david@davebarrass.org.uk>
Subject:
Re: OpenOCD 0.11.0 config example
To:
ports@openbsd.org, sadeep@asciimx.com
Date:
Sat, 7 Sep 2024 16:26:46 +0100

Download raw body.

Thread
On 07/09/24 12:14, Sadeep Madurange wrote:
> Hello,
> 
> I'm trying to flash a ATSAM3X8E chip using the OpenOCD package. OpenOCD
> version we have appears to be a bit old. So my openocd.cfg doesn't seem
> to work.
> 
> Does anyone happen to have an example I could use? My current
> openocd.cfg is,
> 
> source [find interface/stlink.cfg]
> transport select hla_swd
> adapter speed 1800
> set CPUTAPID 0x2ba01477
> source [find target/at91sam3XXX.cfg]
> 
> If someone familiar with the our version of the package could help me
> out with this config, that would save me a lot of time. I'm going wading
> through 0.11.0 version of the OpenOCD repo to find something, but it's
> taking ages.
> 
> Please Cc me in the reply, thanks!
> 
Hi Sadeep,

There are many pieces to getting a successful debug session, so which
bit is broken?

It is not very helpful to just say "doesn't seem to work" - a log of the
session would be helpful. So I can't assist further without more
information.

You are using stlink - is this correct? stlinkv2 is the more recent version.

Are you sure that you have selected the correct transport? Your config
shows SWD - is this correct. (Very probably but JTAG is valid also.)

Is the target at91sam3XXX actually present in the target directory?

It is VERY unlikely that your problem is anything to do with the OpenOCD
version. STLINKv2 has been supported for a long time as has the AT91SAM
family. Does OpenOCD/OpenBSD actually detect the stlink device?

More detail is absolutely essential in order to diagnose and resolve
this issue.

I can see at91sam3XXX in my 0.10 version of openocd and all the stlink
devices so your problem is not the version, just the device driver or
configuration.

Regards,

David