SparkFun Forums 

Where electronics enthusiasts find answers.

Open source ARM Debugger
By mark159753
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
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.

long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]