Skip to content

add dfrobot lorawan esp32s3 board #11300

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
81 changes: 81 additions & 0 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12706,6 +12706,87 @@ dfrobot_romeo_esp32s3.menu.EraseFlash.none.upload.erase_cmd=
dfrobot_romeo_esp32s3.menu.EraseFlash.all=Enabled
dfrobot_romeo_esp32s3.menu.EraseFlash.all.upload.erase_cmd=-e

##############################################################
dfrobot_lorawan_esp32s3.name=DFRobot LoRaWAN ESP32-S3
#dfrobot_lorawan_esp32s3.vid.0=0x303a
#dfrobot_lorawan_esp32s3.pid.0=0x1001

dfrobot_lorawan_esp32s3.bootloader.tool=esptool_py
dfrobot_lorawan_esp32s3.bootloader.tool.default=esptool_py

dfrobot_lorawan_esp32s3.upload.tool=esptool_py
dfrobot_lorawan_esp32s3.upload.tool.default=esptool_py
dfrobot_lorawan_esp32s3.upload.tool.network=esp_ota

dfrobot_lorawan_esp32s3.upload.speed=921600
dfrobot_lorawan_esp32s3.upload.erase_cmd=
dfrobot_lorawan_esp32s3.upload.maximum_size=1310720
dfrobot_lorawan_esp32s3.upload.maximum_data_size=327680
dfrobot_lorawan_esp32s3.upload.flags=
dfrobot_lorawan_esp32s3.upload.extra_flags=
dfrobot_lorawan_esp32s3.upload.use_1200bps_touch=false
dfrobot_lorawan_esp32s3.upload.wait_for_upload_port=false

dfrobot_lorawan_esp32s3.serial.disableDTR=false
dfrobot_lorawan_esp32s3.serial.disableRTS=false

dfrobot_lorawan_esp32s3.build.tarch=xtensa
dfrobot_lorawan_esp32s3.build.bootloader_addr=0x0
dfrobot_lorawan_esp32s3.build.target=esp32s3
dfrobot_lorawan_esp32s3.build.mcu=esp32s3
dfrobot_lorawan_esp32s3.build.core=esp32
dfrobot_lorawan_esp32s3.build.variant=dfrobot_lorawan_esp32s3
dfrobot_lorawan_esp32s3.build.board=ESP32S3_DEV
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggesting changing the default build.board name.

Suggested change
dfrobot_lorawan_esp32s3.build.board=ESP32S3_DEV
dfrobot_lorawan_esp32s3.build.board=DFROBOT_LORAWAN_ESP32S3


dfrobot_lorawan_esp32s3.build.usb_mode=1
dfrobot_lorawan_esp32s3.build.cdc_on_boot=1
dfrobot_lorawan_esp32s3.build.msc_on_boot=0
dfrobot_lorawan_esp32s3.build.dfu_on_boot=0
dfrobot_lorawan_esp32s3.build.f_cpu=240000000L
dfrobot_lorawan_esp32s3.build.flash_size=4MB
dfrobot_lorawan_esp32s3.build.flash_freq=80m
dfrobot_lorawan_esp32s3.build.flash_mode=dio
dfrobot_lorawan_esp32s3.build.boot=qio
dfrobot_lorawan_esp32s3.build.boot_freq=80m
dfrobot_lorawan_esp32s3.build.partitions=default
dfrobot_lorawan_esp32s3.build.defines=-D{build.band}
dfrobot_lorawan_esp32s3.build.loop_core=
dfrobot_lorawan_esp32s3.build.event_core=
dfrobot_lorawan_esp32s3.build.psram_type=qspi
dfrobot_lorawan_esp32s3.build.memory_type={build.boot}_{build.psram_type}
dfrobot_lorawan_esp32s3.build.region=

dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.0=REGION_EU868
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.0.build.band=REGION_EU868
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.1=REGION_EU433
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.1.build.band=REGION_EU433
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.2=REGION_CN470
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.2.build.band=REGION_CN470
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.3=REGION_US915
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.3.build.band=REGION_US915
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.4=REGION_AU915
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.4.build.band=REGION_AU915
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.5=REGION_CN779
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.5.build.band=REGION_CN779
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.6=REGION_AS923
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.6.build.band=REGION_AS923
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.7=REGION_KR920
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.7.build.band=REGION_KR920
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.8=REGION_IN865
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.8.build.band=REGION_IN865
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.9=REGION_US915_HYBRID
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.9.build.band=REGION_US915_HYBRID

dfrobot_lorawan_esp32s3.menu.LoopCore.1=Core 1
dfrobot_lorawan_esp32s3.menu.LoopCore.1.build.loop_core=-DARDUINO_RUNNING_CORE=1
dfrobot_lorawan_esp32s3.menu.LoopCore.0=Core 0
dfrobot_lorawan_esp32s3.menu.LoopCore.0.build.loop_core=-DARDUINO_RUNNING_CORE=0

dfrobot_lorawan_esp32s3.menu.EventsCore.1=Core 1
dfrobot_lorawan_esp32s3.menu.EventsCore.1.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=1
dfrobot_lorawan_esp32s3.menu.EventsCore.0=Core 0
dfrobot_lorawan_esp32s3.menu.EventsCore.0.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=0

##############################################################

firebeetle32.name=FireBeetle-ESP32
Expand Down
43 changes: 43 additions & 0 deletions variants/dfrobot_lorawan_esp32s3/pins_arduino.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#ifndef Pins_Arduino_h
#define Pins_Arduino_h

#include <stdint.h>

#define LED_BUILTIN 21

static const uint8_t TX = 43;
static const uint8_t RX = 44;

static const uint8_t SDA = 8;
static const uint8_t SCL = 9;

#define WB_IO1 1
#define WB_IO2 1
#define WB_SW1 34
#define WB_A0 36
#define WB_LED1 -1
#define WB_LED2 2
Comment on lines +14 to +19
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PTAL and check if that's correct??
WB_IO1 and WB_IO2 are both 1. Also WB_LED1 is -1.


#define LORA_ANTPWR 42 //RXEN
#define LORA_RST 41 //RST
#define LORA_BUSY 40 //BUSY
#define LORA_DIO1 4 //DIO


static const uint8_t LORA_SS = 10;
static const uint8_t LORA_MOSI = 6;
static const uint8_t LORA_MISO = 5;
static const uint8_t LORA_SCK = 7;

static const uint8_t SS = 17;
static const uint8_t MOSI = 11;
static const uint8_t MISO = 13;
static const uint8_t SCK = 12;


#define TFT_DC 14
#define TFT_CS 17
#define TFT_RST 15
#define TFT_BL 16 // Backlight pin

#endif /* Pins_Arduino_h */