Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rak4631dk nrf52840 #548

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions samples/sid_end_device/boards/rak4631_nrf52840.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# Copyright (c) 2024 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

CONFIG_SIDEWALK_DFU=n
CONFIG_SHELL_BACKEND_RTT=y
CONFIG_LOG_BACKEND_RTT_BUFFER_SIZE=8096
49 changes: 49 additions & 0 deletions samples/sid_end_device/boards/rak4631_nrf52840.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/*
* Copyright (c) 2023 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

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


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 7 GPIO_ACTIVE_HIGH>;
label = "semtech_sx1262 Antena Enable";
};
semtech_sx1262_dio1_gpios: dio1 {
gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
label = "semtech_sx1262 DIO1";
};
};
};
5 changes: 5 additions & 0 deletions samples/sid_end_device/pm_static_rak4631_nrf52840.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mfg_storage:
address: 0xff000
end_address: 0x100000
region: flash_primary
size: 0x1000
2 changes: 1 addition & 1 deletion samples/sid_end_device/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ CONFIG_LOG_BUFFER_SIZE=2048
CONFIG_NVS_LOG_LEVEL_WRN=y

# Bluetooth
CONFIG_BT_DEVICE_NAME="Nordic"
CONFIG_BT_DEVICE_NAME="RAK-46"

# Power Management
CONFIG_PM_DEVICE=y
Expand Down
4 changes: 3 additions & 1 deletion subsys/config/common/src/app_subGHz_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ static radio_sx126x_device_config_t radio_sx1262_cfg = {
.pa_cfg_callback = radio_sx1262_pa_cfg,

.tcxo = {
.ctrl = SX126X_TCXO_CTRL_NONE,
.ctrl = SX126X_TCXO_CTRL_DIO3,
.voltage = RADIO_SX126X_TCXO_CTRL_3_3V,
.timeout = 320,
},

.trim_cap_val_callback = radio_sx1262_trim_val,
Expand Down
Loading