I am trying to flash an custom board with nrf52805 chip with st-link v2 thought openocd.

It flashes with sucess

C:\Users\vasco>openocd -f interface/stlink.cfg -f target/nrf52.cfg -c "program \"C:/Users/vasco/OneDrive/Ambiente de Trabalho/zephyr.hex\" verify reset exit"
Open On-Chip Debugger 0.12.0
Licensed under GNU GPL v2
For bug reports, read
openocd.org/.../bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD

nRF52 device has a CTRL-AP dedicated to recover the device from AP lock.
A high level adapter (like a ST-Link) you are currently using cannot access
the CTRL-AP so 'nrf52_recover' command will not work.
Do not enable UICR APPROTECT.

Info : clock speed 1000 kHz
Info : STLINK V2J29S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.155354
Info : [nrf52.cpu] Cortex-M4 r0p1 processor detected
Info : [nrf52.cpu] target has 6 breakpoints, 4 watchpoints
Info : starting gdb server for nrf52.cpu on 3333
Info : Listening on port 3333 for gdb connections
[nrf52.cpu] halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0000ea50 msp: 0x20003b80
** Programming Started **
Info : nRF52805-xxAA(build code: A0) 192kB Flash, 24kB RAM
Info : Padding image section 0 at 0x0001a264 with 12 bytes
Warn : Adding extra erase range, 0x0001b4dc .. 0x0001bfff
** Programming Finished **
** Verify Started **
** Verified OK **
** Resetting Target **
shutdown command invoked
 
but my pcb board dosent do nothing,
I have this code 

#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/bluetooth/bluetooth.h>
#include <zephyr/bluetooth/hci.h>

static const struct gpio_dt_spec led_emissor = GPIO_DT_SPEC_GET(DT_ALIAS(led0), gpios); // P0.12 (LED)

int main(void) {
 
    if (!device_is_ready(led_emissor.port)) {
        return -1;
    }
    if (gpio_pin_configure_dt(&led_emissor, GPIO_OUTPUT_ACTIVE) < 0) {
        return -1;
    }
    gpio_pin_set_dt(&led_emissor, 1);
    return 0;
}
Related