Hi Team,
I am trying to add the nRF7000 support, for WIFI location, to our nRF9160 custom board.
This is the lines I add to our device tree:
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
nordic_wlan0: nordic_wlan0 {
compatible = "nordic,wlan0";
status = "okay";
};
chosen {
zephyr,wifi = &nordic_wlan0;
};
nrf70_tx_power_ceiling: nrf70_tx_power_ceiling_node {
status = "okay";
compatible = "nordic,nrf700x-tx-power-ceiling";
max-pwr-2g-dsss = <0x54>;
max-pwr-2g-mcs0 = <0x40>;
max-pwr-2g-mcs7 = <0x40>;
max-pwr-5g-low-mcs0 = <0x34>;
max-pwr-5g-low-mcs7 = <0x34>;
max-pwr-5g-mid-mcs0 = <0x34>;
max-pwr-5g-mid-mcs7 = <0x34>;
max-pwr-5g-high-mcs0 = <0x30>;
prj.conf
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Network
CONFIG_NETWORKING=y
CONFIG_NET_NATIVE=n
CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETS_OFFLOAD=y
CONFIG_NET_IPV6=y
CONFIG_NET_IPV4=y
# Location related configuration
CONFIG_LOCATION=y
CONFIG_LOCATION_METHOD_GNSS=n
CONFIG_LOCATION_METHOD_CELLULAR=y
CONFIG_LOCATION_METHOD_WIFI=y
CONFIG_LOCATION_SERVICE_NRF_CLOUD=y
CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_FIRST_CELLULAR=y
CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_SECOND_WIFI=y
CONFIG_LOCATION_DATA_DETAILS=y
CONFIG_LOCATION_LOG_LEVEL_DBG=y
CONFIG_LOCATION_SERVICE_EXTERNAL=n
# Actual configs for the Wi-Fi
I am using the Location library to get the location data, but during initialization I get an error:
Fullscreen
1
2
[00:00:00.488,006] <err> location: No Wi-Fi interface found: nordic_wlan0
[00:00:00.488,067] <err> location: Failed to initialize 'Wi-Fi' method
The hardware connection is correct because I test it with sample code for nrf9160DK with the follow overlay file:
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
&uart1 {
status = "disabled";
};
/* Typically we use GPIO extender to resolve these conflicts but the
* GPIO pin used by extender itself conflicts with Wi-Fi (0.6), so,
* disable LEDs and Button0/1.
*/
&led0 {
status = "disabled";
};
&led1 {
status = "disabled";
};
&led2 {
status = "disabled";
};
&led3 {