regrading configuring and flasing custom board using ncs 2.1.2

hello,

using nrf5340 with custom and been trying to adding interfaces like ic1,ic2 and uart 

initially i have added this in my overlay files

&i2c1 {
    compatible = "nordic,nrf-twim";
    status = "okay";
        sda-pin = <12>;
        scl-pin = <13>;
        clock-frequency =  <I2C_BITRATE_FAST>;
};
&i2c2 {
    compatible = "nordic,nrf-twim";
    status = "okay";
        sda-pin = <22>;
        scl-pin = <23>;
        clock-frequency =  <I2C_BITRATE_FAST>;
};


&uart0 {
    status = "okay";
    current-speed = <115200>;
    tx-pin = <33>;
    rx-pin = <32>;
    rx-pull-up;
    rts-pin = <7>;
    cts-pin = <4>;
    cts-pull-up;
};
then i got conflit like that is already defined in pin-cntrl
so i changed my pin-cntrl and common dts like this and commented all the lines in overlay
&i2c1 {
    compatible = "nordic,nrf-twim";
    status = "okay";
    pinctrl-0 = <&i2c1_default>;
    pinctrl-1 = <&i2c1_sleep>;
    pinctrl-names = "default", "sleep";
};

&i2c2 {
    compatible = "nordic,nrf-twim";
    status = "okay";
    pinctrl-0 = <&i2c2_default>;
    pinctrl-1 = <&i2c2_sleep>;
    pinctrl-names = "default", "sleep";
};
    i2c1_sleep: i2c1_sleep {
        group1 {
            psels = <NRF_PSEL(TWIM_SDA, 1, 2)>,
                <NRF_PSEL(TWIM_SCL, 1, 3)>;
            low-power-enable;
        };
    };
   
        i2c2_default: i2c2_default {
            group1 {
                psels = <NRF_PSEL(TWIM_SDA, 0, 22)>,
                    <NRF_PSEL(TWIM_SCL, 0, 23)>;
            };
        };
   
        i2c2_sleep: i2c2_sleep {
            group1 {
                psels = <NRF_PSEL(TWIM_SDA, 0, 22)>,
                    <NRF_PSEL(TWIM_SCL, 0, 23)>;
                low-power-enable;
            };
        };
    uart0_default: uart0_default {
        group1 {
            psels = <NRF_PSEL(UART_TX, 0, 33)>,
                <NRF_PSEL(UART_RTS, 0, 7)>;
        };
        group2 {
            psels = <NRF_PSEL(UART_RX, 0, 32)>,
                <NRF_PSEL(UART_CTS, 0, 4)>;
            bias-pull-up;
        };
    };

    uart0_sleep: uart0_sleep {
        group1 {
            psels = <NRF_PSEL(UART_TX, 0, 33)>,                <NRF_PSEL(UART_RX, 0, 32)>,
                <NRF_PSEL(UART_RTS, 0, 7)>,
                <NRF_PSEL(UART_CTS, 0, 4)>;
            low-power-enable;
        };
    };
is this correct way or something wrong with it because my custom board not detecting the i2c devices but building sucessfully custom board pin numbers is sda-22 scl-23 tx-33 and rx-32  rts 7 cts 4
and one more thing i want to add custom board for flasing but it always shows only the dk in flashing section like below but in connected devices custom board is visble so how can i add my custom board in existing code so that i can flash 
NOTE: now i have not connected custom board that why it shows no device found and also please dont tell me to refer other documents because documents are not clear regarding this..show me some example 

,

Parents Reply Children
No Data
Related