Hi all,
I've build my own board with nrf9161 LACA, so for now I've tried to create my own board, for the moment I'm just trying to pilot my 3 leds. I've follow dev academy blinky example but unfortunally it's not working.
To create my custom board I've followed this video? I can compile without error but my led doen't blink.
My board is calling gcg_dnv_nrf9161s, I have added a zip in my post, containing my board definition
I have 3 leds connect to PA0.00 PA0.01 and PA0.02 (RGB leds).
My main.c
#include <stdio.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/gpio.h>
#define SLEEP_TIME_MS (1000)
#define LED_R_NODE DT_ALIAS(ledg)
static const struct gpio_dt_spec led = GPIO_DT_SPEC_GET(LED_R_NODE, gpios);
int main(void)
{
int ret;
//printf("Hello World! %s\n", CONFIG_BOARD);
if(!gpio_is_ready_dt(&led)){
return 0;
}
ret = gpio_pin_configure_dt(&led, GPIO_OUTPUT_INACTIVE);
if(ret < 0)
return 0;
while(1){
ret = gpio_pin_toggle_dt(&led);
if(ret < 0)
return 0;
k_msleep(SLEEP_TIME_MS);
}
return 0;
}
What I'm doing wrong ?
