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
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.