Flash problem with SAMD21G18A using OpenOCD SWD

Maybe i've solved updating openocd from 0.9 version to 0.10 last release and reducing the speed of the adapter from 400Khz to 40Khz.

There is still something strange because when I load a blink test everything works correctly but if I put custom binaries the application seems to go but the connection with opencod is lost so every binaries flash i have to do i have to disconnect and reconnect the olimex adapter.

I have to do other tests