nRF9151 CONFIG_UART_ASYNC_API

Hi!

I am using nRF9151-DK, enabling UART1 and using CONFIG_UART_ASYNC_API.

The build is successful, but the problem every time i connect a flashed kit with this binaries into nrf Programmer software.

I get notification of "Application core is protected".

I have isolated all the included configurations and found out that CONFIG_UART_ASYNC_API is causing this.

Am i missing some configuration? How to overcome this issue?

nRF Programmer

UART-related config:

# Enable UART1 Async
CONFIG_SERIAL=y
CONFIG_UART_ASYNC_API=y
CONFIG_UART_1_ASYNC=y
CONFIG_UART_1_INTERRUPT_DRIVEN=n

Devicetree:

&uart1 {
    status = "okay";
    current-speed = <115200>;
    pinctrl-0 = <&uart1_default>;
    pinctrl-1 = <&uart1_sleep>;
    pinctrl-names = "default", "sleep";
};

Best regards,
Abdu

Parents
  • Hello,

    Are you enabling mcuboot in your application, and what build configuration are you using? Are you building it for the _ns variant? If you are using mcuboot, you probably need to enable this in the mcuboot.conf as well. Can you share your project with a minimal configuration so I can run it here and reproduce the issue?

    Kind Regards,

    Abhijith

Reply
  • Hello,

    Are you enabling mcuboot in your application, and what build configuration are you using? Are you building it for the _ns variant? If you are using mcuboot, you probably need to enable this in the mcuboot.conf as well. Can you share your project with a minimal configuration so I can run it here and reproduce the issue?

    Kind Regards,

    Abhijith

Children
  • Hello, 

    I am not enabling mcuboot in my application.

    In order to replicate the issue with minimal configuration, i have:

    • Used hello_dect sample
    • Created within the project folder boards/nrf9151dk_nrf9151_ns.overlay

    /*
     * Copyright (c) 2019, Nordic Semiconductor ASA
     * SPDX-License-Identifier: Apache-2.0
     */
    
    #include <zephyr/dt-bindings/gpio/gpio.h>
    
    &uart1 {
        status = "okay";
        current-speed = <115200>;
        pinctrl-0 = <&uart1_default>;
        pinctrl-1 = <&uart1_sleep>;
        pinctrl-names = "default", "sleep";
    };
    
    / {
        model = "Nordic nRF9151 DK NRF9151";
    	compatible = "nordic,nrf9151-dk-nrf9151";
    
        digital_pins {
    		compatible = "gpio-leds";
    		digital_pin10: digital_pin10 {
    			gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
    			label = "Digital Output PO.10 D10";
    		};
    		digital_pin11: digital_pin11 {
    			gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
    			label = "Digital Output PO.11 D11";
    		};
    		digital_pin12: digital_pin12 {
    			gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
    			label = "Digital Output PO.12 D12";
    		};
    		digital_pin13: digital_pin13 {
    			gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
    			label = "Digital Output PO.13 D13";
    		};
    	};
    
        /* These aliases are provided for compatibility with samples */
    	aliases {
    		dpin10 = &digital_pin10;
    		dpin11 = &digital_pin11;
    		dpin12 = &digital_pin12;
    		dpin13 = &digital_pin13;
    	};
    };

    • Added these extra configs to prj.conf

    CONFIG_NRF_MODEM_LIB=y
    
    CONFIG_MODEM_ANTENNA=n
    
    CONFIG_NRF_MODEM_LINK_BINARY_DECT_PHY=y
    CONFIG_HWINFO=y
    
    # Logs config
    CONFIG_LOG=y
    CONFIG_FPU=y
    CONFIG_LOG_DEFAULT_LEVEL=3
    
    # Transmission forver
    CONFIG_TX_TRANSMISSIONS=0
    
    # Data Rate Config
    CONFIG_MCS=0
    CONFIG_RX_PERIOD_S=100
    
    # Generate random numbers
    CONFIG_ENTROPY_GENERATOR=y
    
    # Enable UART1 Async
    CONFIG_SERIAL=y
    CONFIG_UART_ASYNC_API=y
    CONFIG_UART_1_ASYNC=y
    CONFIG_UART_1_INTERRUPT_DRIVEN=n
    

    • Build Configuration

    west build --build-dir c:/Users/abdu/nrf/hello_dect/build c:/Users/abdu/nrf/hello_dect --pristine --board nrf9151dk/nrf9151/ns -- -DEXTRA_CONF_FILE=overlay-eu.conf

    I have also attached the project example with issue, as a comprised folder, if you would like to double check it.

    Kind Regards,

    Abdu

    hello_dect_orig.tar.gz

Related