Zephyr official support

Please include the following information, in order for us to help you as effectively as possible.

  • What product do you wish to discuss? RAK4631

  • What firmware are you using? VS Code + nrf Connect SDK + Zephyr

  • Computer OS? Windows

  • What Computer OS version? 11 Pro

Good morning,

I would like to know if RAKWireless has plans to support for “VS Code + nrf Connect SDK + Zephyr”.

Zephyr project already has RAK4631 in the “Suported Boards and Shields”

RAK4631

What exactly do you expect from

It is supported by Zephyr, so you can use it.

Hi @crmrosa ,

The fastest way to start is using this repo - GitHub - srcnert/rak-zephyr-app: Example projects for Zephyr RTOS on RAK3172/RAK4631/RAK11720

You can use Zephyr guide too but this is faster and includes working examples

I am using the Nordic nrf Connect SDK in the VS Code and it is working fine. Do you have or do you intend to have some examples for Wisblock ?

I need to develop a Wisblock Low Power project with RAK1904, RAK1906, RAK12500 and RAK15004. Then I need to have sensors hardware information to configure in overlay file the example below RAK4630-Amazon-Sidewalk:

Regards,

Claudio

/*
 * SPDX-License-Identifier: Apache-2.0
 */

/ {
	chosen {
		zephyr,console = &cdc_acm_uart0;
		zephyr,shell-uart = &cdc_acm_uart0;
        zephyr,ieee802154 = &ieee802154;
	};
};

&pinctrl {
    i2c0_default: i2c0_default {
       group1 {
          psels = <NRF_PSEL(TWIM_SDA, 0, 13)>,
                  <NRF_PSEL(TWIM_SCL, 0, 14)>;
       };
    };
    i2c0_sleep: i2c0_sleep {
       group1 {
          psels = <NRF_PSEL(TWIM_SDA, 0, 13)>,
                  <NRF_PSEL(TWIM_SCL, 0, 14)>;
                  low-power-enable;
       };
    };

};
&i2c0 {
    compatible = "nordic,nrf-twim";
	status = "okay";
    pinctrl-0 = <&i2c0_default>;
    pinctrl-1 = <&i2c0_sleep>;
    pinctrl-names = "default", "sleep";
	clock-frequency = <I2C_BITRATE_FAST>;
	rak1901@70 {
		status = "okay";
        compatible = "rak1901";
		reg = <0x70>;
	};
};

&gpio1 {
    sense-edge-mask = < 0xffff3b9f >;
};

&zephyr_udc0 {
	cdc_acm_uart0: cdc_acm_uart0 {
		compatible = "zephyr,cdc-acm-uart";
	};
};

&radio{
    ieee802154: ieee802154 {
                status = "okay";
    };
};

sid_semtech: &spi1 {
	compatible = "nordic,nrf-spim";
	clock-frequency = <DT_FREQ_M(8)>;
	/delete-property/ cs-gpios;

	lora: lora@0 {
	    status = "disabled";
	};
};

/{
 	semtech_sx1262_gpios{
 		compatible = "gpio-keys";
		semtech_sx1262_cs: cs {
			gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
			label = "semtech_sx1262 CS";
		};
 		semtech_sx1262_reset_gpios: reset {
			gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
			label = "semtech_sx1262 Reset";
		};
		semtech_sx1262_busy_gpios: busy {
			gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
			label = "semtech_sx1262 Busy";
		};
		semtech_sx1262_antenna_enable_gpios: antena_enable {
			gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
			label = "semtech_sx1262 Antena Enable";
		};
		semtech_sx1262_dio1_gpios: dio1 {
			gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
			label = "semtech_sx1262 DIO1";
		};
 	};
};

Hello @crmrosa,

Unfortunately, there are no tested examples for Wisblocks. However, these Wisblock boards are based on following sensors and you can find sample examples for these sensors inside zephyr project.

RAK1904 → LIS3DH
RAK1906 → BME680
RAK12500 → ZOE-M8Q
RAK15004 → MB85RC512T

I prepared a sample overlay file for you to set up these sensors.

/ {
	aliases {
                rak1904 = &lis3dh;
                rak1906 = &bme680;
                rak12500 = & uart1;
		rak15004 = & mb85rcxx;
	};
};

&uart1 {
	status = "okay";
	compatible = "nordic,nrf-uarte";
	current-speed = <115200>;

	u_blox_m8: u-blox,m8 {
		status = "okay";
		compatible = "u-blox,m8";
		uart-baudrate = <115200>;
	};
};

&i2c0 {
	status = "okay";
	clock-frequency = <I2C_BITRATE_FAST>;

	/* ST Microelectronics LIS3DH motion sensor */
	lis3dh: lis3dh@18 {
		compatible = "st,lis3dh", "st,lis2dh";
		reg = <0x18>;
	};

	bme680: bme680@77 {
		compatible = "bosch,bme680";
		reg = <0x77>;
	};

	mb85rcxx: mb85rcxx@56 {
		compatible = "fujitsu,mb85rcxx";
		reg = <0x56>;
		size = <131072>;
		pagesize = <131072>;
		address-width = <16>;
		wp-gpios = <&gpio1 2 0>;
		/* read-only; */
	};
};

It is also possible to develop low power project. Please adopt overlay file according to your board and setup. You can find more detailed examples and definitions inside zephyr project. Feel free to contact us in case of any difficulties.

Best regards,
Sercan.

2 Likes

Thank you very much by your support.

Hi,

Let me help to fix a small problem in the our overlay file:

aliases {
                rak1904 = &lis3dh;
                rak1906 = &bme680;
                rak12500 = & uart1; 
		rak15004 = & mb85rcxx;
	};

I found two “extra space”: “& uart1” and “& mb85rcxx”. It should be “&uart1” and “&mb85rcxx” :slight_smile:

The overlay file is working fine :slight_smile:

Have a nice Sunday!

Thank you very much by your support with Zephyr.

Claudio Rosa

1 Like

Hi Claudio,

This is great to know. I am happy to help. Thank you for the update.

Best regards,
Sercan.

1 Like