OpenOCD SWD support for Fedora 27

Open source ARM Debugger

Moderator: phalanx

Post Reply
mark159753
Posts: 1
Joined: Thu Apr 26, 2018 12:54 pm

OpenOCD SWD support for Fedora 27

Post by mark159753 » Thu Apr 26, 2018 1:11 pm

Hi there,

I have a board similar to BeagleBoneBlack which uses AM335x Sitara Processor. Linux Fedora 27 Kernel 4.15.14-300.fc27.armvhl is running on ARM. I want to use openOCD to program a flash on Microcontroller Kinetis KV30P64M100SFA. I am using the following configuration file:

source [find interface/bb.cfg]
transport select swd
set CHIPNAME kv31
source [find target/kx.cfg]
reset_config srst_only srst_nogate srst_push_pull
adapter_nsrst_delay 10
adapter_nsrst_assert_width 10
init target
targets
reset halt

The bb.cfg:
interface sysfsgpio
sysfsgpio_swdio_num 40
sysfsgpio_swclk_num 41
sysfsgpio_srst_num 43

When I run openocd with the above configuration it gives me error. The reason is that there is no entry in /sys/class/gpio as f27 doesn't seem to have included the gpiolib driver support or given user space access through sysfs.

I have two questions:

1) Is there any way to change the f27 to be able to use openocd? perhaps using sysfsgpio as it is supporting now?
2) Does openocd supports anther way of accessing the GPIO (like the new way using file descriptors) in fedora 27?

My application can only use SWD as transport.

Thanks

Post Reply