Custom bord on nrf51822, standart blinky-compiles, but not work

Hello frends! Im trying switch from old scool stye developing (nrfSDK->arm-gcc->open OCD->st link V2) to nrf  Connect SDK. My first goal - run blinky on custom board. And im have some problems. Blinky compiles without errors, but MS VS code show me errors in main.c - GPIO_DT_SPEC_GET. Im read about similar errors, but on this point not understand where is dig.
Chip - nrf51822 qfaa. When im use old way - my custom board works property.

my prj config, defconfig and board file. OS -Win 10, nrf Connect SDK - 2.2.0

CONFIG_GPIO=y

CONFIG_SOC_SERIES_NRF51X=y
CONFIG_SOC_NRF51822_QFAA=y
CONFIG_BOARD_MYTAG=y

# Enable MPU
CONFIG_ARM_MPU=y

# Enable hardware stack protection
CONFIG_HW_STACK_PROTECTION=y

// Copyright (c) 2023 Nordic Semiconductor ASA
// SPDX-License-Identifier: Apache-2.0

/dts-v1/;
#include <nordic/nrf51822_qfaa.dtsi>

&gpio0 {
	status = "okay";
};

/ {
	model = "MyTag";
	compatible = "nordic-semiconductor,mytag";

	chosen {
		zephyr,sram = &sram0;
		zephyr,flash = &flash0;
		zephyr,code-partition = &slot0_partition;
	};

	leds{

		compatible = "gpio-leds";
		led0: led_0 {
			gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
			label = "My  led";
		};
	};

	aliases {
		led0 = &led0;
	};
	

};




&flash0 {
	partitions {
		compatible = "fixed-partitions";
		#address-cells = <1>;
		#size-cells = <1>;

		boot_partition: partition@0 {
			label = "mcuboot";
			reg = <0x0 0x8000>;
		};
		slot0_partition: partition@8000 {
			label = "image-0";
			reg = <0x8000 0x1a000>;
		};
		slot1_partition: partition@22000 {
			label = "image-1";
			reg = <0x22000 0x1a000>;
		};
		scratch_partition: partition@3c000 {
			label = "image-scratch";
			reg = <0x3c000 0x2000>;
		};
		storage_partition: partition@3e000 {
			label = "storage";
			reg = <0x3e000 0x2000>;
		};
	};
};

Parents Reply Children
No Data
Related