#error "PSA_WANT_ALG_DETERMINISTIC_ECDSA defined, but not all prerequisites".

I have used ncs-example application workspace to develop our project. In that we were trying to include WIFI, so we include all (sample/wifi/sta) content to my project. but while compiling we facing #error "PSA_WANT_ALG_DETERMINISTIC_ECDSA defined, but not all prerequisites". Here I share the build log.

I am using nRF Connect SDK v2.6.1
  

D:/nrf_projects/Workspace/nrf/ext/oberon/psa/core/library/check_crypto_config.h:80:2: error: #error "PSA_WANT_ALG_DETERMINISTIC_ECDSA defined, but not all prerequisites"
80 | #error "PSA_WANT_ALG_DETERMINISTIC_ECDSA defined, but not all prerequisites"
| ^~~~~
ninja: build stopped: subcommand failed.
FAILED: modules/trusted-firmware-m/tfm-prefix/src/tfm-stamp/tfm-build tfm/bin/tfm_s.elf tfm/bin/tfm_s.bin tfm/bin/tfm_s.hex tfm/bin/tfm_s_signed.bin tfm/bin/tfm_s_ns_signed.bin 



  • Hi, 

    it works even if you get this error, that indicate to me that you are tryign to bring up the interface twice.

    Yes, I think so. But how could I found that?

    Like auto Init config may cause this issues? Please provide your suggestion to figure out this issue.

  • Hi Einar,

    setting CONFIG_NET_CONFIG_AUTO_INIT=n

    I have change this setting and check, the below error is not coming 
    # [00:00:30.600,250] <err> net_config: Timeout while waiting network interface
    # [00:00:30.600,250] <err> net_config: Network initialization failed (-115)

    but faced below error "WiFi Connection Request Failed"


     *** Booting nRF Connect SDK v3.5.99-ncs1-1 ***
    
    2024-06-05 10:10:30.483000 [00:00:00.577,392] <inf> main: Node Sensor!
    
    2024-06-05 10:10:30.483000 [00:00:00.577,392] <inf> nrf7002_wifi: WfiInit
    
    2024-06-05 10:10:30.498000 [00:00:00.577,423] <inf> nrf7002_wifi: WiFi ExampleBoard: nrf7002dk_nrf5340_cpuapp
    
    2024-06-05 10:10:30.498000 [00:00:00.577,453] <inf> nrf7002_wifi: WfiConfiguration
    
    2024-06-05 10:10:30.498000 [00:00:00.577,484] <inf> nrf7002_wifi: Connecting to SSID: test_ap
    
    2024-06-05 10:10:30.514000 [00:00:00.577,484] <err> nrf7002_wifi: WiFi Connection Request Failed


    then I have included net_config_init function to initialize network in WifiInit() function

        int ret;

        // Initialize network configuration
        ret = net_config_init("Initializing network...", K_SECONDS(10));
        if (ret < 0) {
            LOG_ERR("Network initialization failed: %d", ret);
            return;
        }

    but it takes 6min to get the error response and while trying to connected to the SSID, it gives IP and  stuck there event cb is not working. Is anything to change in the event callback?

    2024-06-05 10:32:53.617000 *** Booting nRF Connect SDK v3.5.99-ncs1-1 ***
    
    2024-06-05 10:32:53.633000 [00:00:00.641,174] <inf> main: Node Sensor!
    
    2024-06-05 10:32:53.633000 [00:00:00.641,174] <inf> nrf7002_wifi: WfiInit
    
    2024-06-05 10:32:53.633000 [00:00:00.641,204] <inf> nrf7002_wifi: WiFi ExampleBoard: nrf7002dk_nrf5340_cpuapp
    
    2024-06-05 10:32:53.648000 [00:00:00.641,235] <inf> net_config: Initializing network...
    
    2024-06-05 10:32:53.648000 [00:00:00.641,265] <inf> net_config: Waiting interface 1 (0x20000f48) to be up...
    
    2024-06-05 10:38:21.862000 [00:05:28.322,082] <inf> net_config: IPv4 address: 192.168.1.1
    
    2024-06-05 10:38:21.862000 [00:05:28.322,143] <inf> net_config: Running dhcpv4 client...
    
    2024-06-05 10:38:21.877000 [00:05:28.322,357] <err> net_config: Timeout while waiting network interface
    
    2024-06-05 10:38:21.877000 [00:05:28.322,387] <err> nrf7002_wifi: Network initialization failed: -115
    
    2024-06-05 10:38:21.877000 [00:05:28.322,387] <inf> nrf7002_wifi: WfiConfiguration
    
    2024-06-05 10:38:21.893000 [00:05:28.322,418] <inf> nrf7002_wifi: Connecting to SSID: test_ap
    
    2024-06-05 10:38:24.190000 [00:05:31.203,399] <inf> net_dhcpv4: Received: 192.168.137.220
    
    2024-06-05 10:38:24.190000 [00:05:31.203,552] <inf> net_config: IPv4 address: 192.168.137.220
    
    2024-06-05 10:38:24.206000 [00:05:31.203,552] <inf> net_config: Lease time: 604800 seconds
    
    2024-06-05 10:38:24.206000 [00:05:31.203,613] <inf> net_config: Subnet: 255.255.255.0
    
    2024-06-05 10:38:24.206000 [00:05:31.203,643] <inf> net_config: Router: 192.168.137.1
  • Hi,

    I see. Looking at the code I see that you do no thandle the NET_EVENT_IPV4_DHCP_BOUND event. As you based your code on the STA sample, you can refer to how it is handled there (calling print_dhcp_ip() on the event). I did not spot anything obvious, but there may also be other issues.

Related