-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Add SparkFun IoT Node LoRaWAN RP2350 #16552
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
Closed
sfe-SparkFro
wants to merge
5
commits into
micropython:master
from
sparkfun:add_sparkfun_iotnode_lorawan_rp2350
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
5a68f3c
ports/rp2/boards: Add SparkFun IoT Node LoRaWAN
sfe-SparkFro 64d3b89
ports/rp2/boards: Change IoT Node LoRaWAN flash to 14MiB
sfe-SparkFro ef6e3ce
ports/rp2/boards: Update IoT Node LoRaWAN image name
sfe-SparkFro d0f78c9
ports/rp2: Set platform and remove GC overrides of SparkFun IoT Node …
sfe-SparkFro 1cffe95
ports/rp2: Temporarily add IoT Node LoRaWAN header
sfe-SparkFro File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
ports/rp2/boards/SPARKFUN_IOTNODE_LORAWAN_RP2350/board.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"deploy": [ | ||
"../deploy.md" | ||
], | ||
"docs": "", | ||
"features": [ | ||
"Battery Charging", | ||
"Dual-core", | ||
"External Flash", | ||
"External RAM", | ||
"JST-SH", | ||
"LoRa", | ||
"RGB LED", | ||
"USB-C", | ||
"microSD" | ||
], | ||
"images": [ | ||
"26060-IoT-Node-LoRaWAN-Feature-new.jpg" | ||
], | ||
"mcu": "rp2350", | ||
"product": "IoT Node LoRaWAN RP2350", | ||
"thumbnail": "", | ||
"url": "https://www.sparkfun.com/products/26060", | ||
"vendor": "Sparkfun" | ||
} |
7 changes: 7 additions & 0 deletions
7
ports/rp2/boards/SPARKFUN_IOTNODE_LORAWAN_RP2350/mpconfigboard.cmake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# cmake file for SparkFun IoT Node LoRaWAN RP2350 | ||
|
||
# TODO: DELETE THIS LINE ONCE PICO SDK 2.1.1 IS RELEASED | ||
set(PICO_BOARD_HEADER_DIRS ${MICROPY_PORT_DIR}/boards/${MICROPY_BOARD}) | ||
|
||
set(PICO_BOARD "sparkfun_iotnode_lorawan_rp2350") | ||
set(PICO_PLATFORM "rp2350") |
33 changes: 33 additions & 0 deletions
33
ports/rp2/boards/SPARKFUN_IOTNODE_LORAWAN_RP2350/mpconfigboard.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Board and hardware specific configuration | ||
#define MICROPY_HW_BOARD_NAME "SparkFun IoT Node LoRaWAN" | ||
#define MICROPY_HW_FLASH_STORAGE_BYTES (14 * 1024 * 1024) | ||
|
||
#define MICROPY_HW_USB_VID (0x1B4F) | ||
#define MICROPY_HW_USB_PID (0x0044) | ||
|
||
#define MICROPY_HW_I2C0_SDA (20) | ||
#define MICROPY_HW_I2C0_SCL (21) | ||
|
||
#define MICROPY_HW_I2C1_SDA (6) | ||
#define MICROPY_HW_I2C1_SCL (7) | ||
|
||
#define MICROPY_HW_SPI0_SCK (2) | ||
#define MICROPY_HW_SPI0_MOSI (3) | ||
#define MICROPY_HW_SPI0_MISO (4) | ||
|
||
#define MICROPY_HW_SPI1_SCK (14) | ||
#define MICROPY_HW_SPI1_MOSI (15) | ||
#define MICROPY_HW_SPI1_MISO (12) | ||
|
||
#define MICROPY_HW_UART0_TX (18) | ||
#define MICROPY_HW_UART0_RX (19) | ||
#define MICROPY_HW_UART0_CTS (2) | ||
#define MICROPY_HW_UART0_RTS (3) | ||
|
||
#define MICROPY_HW_UART1_TX (4) | ||
#define MICROPY_HW_UART1_RX (5) | ||
#define MICROPY_HW_UART1_CTS (6) | ||
#define MICROPY_HW_UART1_RTS (7) | ||
|
||
#define MICROPY_HW_PSRAM_CS_PIN (0) | ||
#define MICROPY_HW_ENABLE_PSRAM (1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
GP0,GPIO0 | ||
GP1,GPIO1 | ||
GP2,GPIO2 | ||
GP3,GPIO3 | ||
GP4,GPIO4 | ||
GP5,GPIO5 | ||
GP6,GPIO6 | ||
GP7,GPIO7 | ||
GP8,GPIO8 | ||
GP9,GPIO9 | ||
GP10,GPIO10 | ||
GP11,GPIO11 | ||
GP12,GPIO12 | ||
GP13,GPIO13 | ||
GP14,GPIO14 | ||
GP15,GPIO15 | ||
GP16,GPIO16 | ||
GP17,GPIO17 | ||
GP18,GPIO18 | ||
GP19,GPIO19 | ||
GP20,GPIO20 | ||
GP21,GPIO21 | ||
GP22,GPIO22 | ||
GP23,GPIO23 | ||
GP24,GPIO24 | ||
GP25,GPIO25 | ||
GP26,GPIO26 | ||
GP27,GPIO27 | ||
GP28,GPIO28 | ||
GP29,GPIO29 | ||
LED,GPIO25 | ||
LED_RGB,GPIO25 | ||
RGB_LED,GPIO25 | ||
NEOPIXEL,GPIO25 |
88 changes: 88 additions & 0 deletions
88
ports/rp2/boards/SPARKFUN_IOTNODE_LORAWAN_RP2350/sparkfun_iotnode_lorawan_rp2350.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
/* | ||
* Copyright (c) 2024 Raspberry Pi (Trading) Ltd. | ||
* | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
// ----------------------------------------------------- | ||
// NOTE: THIS HEADER IS ALSO INCLUDED BY ASSEMBLER SO | ||
// SHOULD ONLY CONSIST OF PREPROCESSOR DIRECTIVES | ||
// ----------------------------------------------------- | ||
// Board definition for the SparkFun IoT Node LoRaWAN | ||
// | ||
// This header may be included by other board headers as "boards/sparkfun_iotnode_lorawan_rp2350.h" | ||
|
||
// pico_cmake_set PICO_PLATFORM=rp2350 | ||
|
||
#ifndef _BOARDS_SPARKFUN_IOTNODE_LORAWAN_RP2350_H | ||
#define _BOARDS_SPARKFUN_IOTNODE_LORAWAN_RP2350_H | ||
|
||
// For board detection | ||
#define SPARKFUN_IOTNODE_LORAWAN_RP2350 | ||
|
||
// --- RP2350 VARIANT --- | ||
#define PICO_RP2350A 1 | ||
|
||
// --- UART --- | ||
#ifndef PICO_DEFAULT_UART | ||
#define PICO_DEFAULT_UART 0 | ||
#endif | ||
#ifndef PICO_DEFAULT_UART_TX_PIN | ||
#define PICO_DEFAULT_UART_TX_PIN 18 | ||
#endif | ||
#ifndef PICO_DEFAULT_UART_RX_PIN | ||
#define PICO_DEFAULT_UART_RX_PIN 19 | ||
#endif | ||
|
||
// --- LED --- | ||
#ifndef PICO_DEFAULT_WS2812_PIN | ||
#define PICO_DEFAULT_WS2812_PIN 25 | ||
#endif | ||
|
||
// --- I2C --- | ||
#ifndef PICO_DEFAULT_I2C | ||
#define PICO_DEFAULT_I2C 0 | ||
#endif | ||
#ifndef PICO_DEFAULT_I2C_SDA_PIN | ||
#define PICO_DEFAULT_I2C_SDA_PIN 20 | ||
#endif | ||
#ifndef PICO_DEFAULT_I2C_SCL_PIN | ||
#define PICO_DEFAULT_I2C_SCL_PIN 21 | ||
#endif | ||
|
||
// --- SPI --- | ||
#ifndef PICO_DEFAULT_SPI | ||
#define PICO_DEFAULT_SPI 1 | ||
#endif | ||
#ifndef PICO_DEFAULT_SPI_SCK_PIN | ||
#define PICO_DEFAULT_SPI_SCK_PIN 14 | ||
#endif | ||
#ifndef PICO_DEFAULT_SPI_TX_PIN | ||
#define PICO_DEFAULT_SPI_TX_PIN 15 | ||
#endif | ||
#ifndef PICO_DEFAULT_SPI_RX_PIN | ||
#define PICO_DEFAULT_SPI_RX_PIN 12 | ||
#endif | ||
#ifndef PICO_DEFAULT_SPI_CSN_PIN | ||
#define PICO_DEFAULT_SPI_CSN_PIN 13 | ||
#endif | ||
|
||
// --- FLASH --- | ||
|
||
#define PICO_BOOT_STAGE2_CHOOSE_W25Q080 1 | ||
|
||
#ifndef PICO_FLASH_SPI_CLKDIV | ||
#define PICO_FLASH_SPI_CLKDIV 2 | ||
#endif | ||
|
||
// pico_cmake_set_default PICO_FLASH_SIZE_BYTES = (16 * 1024 * 1024) | ||
#ifndef PICO_FLASH_SIZE_BYTES | ||
#define PICO_FLASH_SIZE_BYTES (16 * 1024 * 1024) | ||
#endif | ||
|
||
// pico_cmake_set_default PICO_RP2350_A2_SUPPORTED = 1 | ||
#ifndef PICO_RP2350_A2_SUPPORTED | ||
#define PICO_RP2350_A2_SUPPORTED 1 | ||
#endif | ||
|
||
#endif |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.