Skip to content

Commit

Permalink
[RP2XXX] bump Pico Core up to 3.9.5
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov committed Aug 9, 2024
1 parent e00e80b commit 7dcb9df
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 15 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ jobs:
tar xzf ${NIM_BLE_VERSION}.tar.gz ;
rm ${NIM_BLE_VERSION}.tar.gz ;
mv NimBLE-Arduino-${NIM_BLE_VERSION} $HOME/Arduino/libraries/ ;
#wget https://github.com/arduino-libraries/ArduinoBLE/archive/refs/tags/${ARDUINO_BLE_VERSION}.tar.gz ;
#tar xzf ${ARDUINO_BLE_VERSION}.tar.gz ;
#rm ${ARDUINO_BLE_VERSION}.tar.gz ;
#mv ArduinoBLE-${ARDUINO_BLE_VERSION} $HOME/Arduino/libraries/ ;
cd $GITHUB_WORKSPACE ;
fi
#if [[ "$BOARD" =~ "esp32:esp32:esp32h2" ]]; then
Expand Down Expand Up @@ -369,7 +373,7 @@ jobs:
fi
if [[ "$BOARD" =~ "rp2040:rp2040:" ]]; then
arduino --pref "boardsmanager.additional.urls=https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json" --save-prefs ;
arduino --install-boards rp2040:rp2040:3.9.4 ;
arduino --install-boards rp2040:rp2040:3.9.5 ;
arduino --board $BOARD --save-prefs ;
if [[ "$BOARD" =~ "rp2040:rp2040:rpipicow" ]]; then
arduino --pref "custom_freq=rpipicow_120" --save-prefs ;
Expand Down
5 changes: 4 additions & 1 deletion software/firmware/source/SkyWatch/GNSSHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,10 @@ const gnss_chip_ops_t uc65_ops = {
#if !defined(EXCLUDE_GNSS_AG33)
static gnss_id_t ag33_probe()
{
return GNSS_MODULE_NMEA; /* TBD */
/* Firmware version request */
// return nmea_handshake("$PAIR020*38\r\n", "$PAIR020,", true) ?
return nmea_handshake("$PAIR021*39\r\n", "$PAIR021,", true) ?
GNSS_MODULE_AG33 : GNSS_MODULE_NMEA;
}

static bool ag33_setup()
Expand Down
2 changes: 1 addition & 1 deletion software/firmware/source/SoftRF/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ PLAT_CPPS := $(PLATFORM_PATH)/ESP8266.cpp \
$(PLATFORM_PATH)/SAMD.cpp \
$(PLATFORM_PATH)/AVR.cpp \
$(PLATFORM_PATH)/ASR66.cpp \
$(PLATFORM_PATH)/RP2040.cpp \
$(PLATFORM_PATH)/RP2XXX.cpp \
$(PLATFORM_PATH)/RA4M1.cpp \
$(PLATFORM_PATH)/EFR32.cpp \
$(PLATFORM_PATH)/CH32.cpp
Expand Down
1 change: 1 addition & 0 deletions software/firmware/source/SoftRF/src/platform/ESP32.h
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ extern const USB_Device_List_t supported_USB_devices[];
#define EXCLUDE_TEST_MODE
#define EXCLUDE_WATCHOUT_MODE
#undef USE_NMEALIB
//#define USE_ARDUINOBLE
#undef USE_BLE_MIDI
#undef ENABLE_PROL
//#define USE_NIMBLE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Platform_RP2040.cpp
* Platform_RP2XXX.cpp
* Copyright (C) 2022-2024 Linar Yusupov
*
* This program is free software: you can redistribute it and/or modify
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Platform_RP2040.h
* Platform_RP2XXX.h
* Copyright (C) 2022-2024 Linar Yusupov
*
* This program is free software: you can redistribute it and/or modify
Expand All @@ -17,8 +17,8 @@
*/
#if defined(ARDUINO_ARCH_RP2040)

#ifndef PLATFORM_RP2040_H
#define PLATFORM_RP2040_H
#ifndef PLATFORM_RP2XXX_H
#define PLATFORM_RP2XXX_H

#include <avr/dtostrf.h>

Expand Down Expand Up @@ -324,5 +324,5 @@ extern Adafruit_NeoPixel strip;
#endif /* ARDUINO_GENERIC_RP2040 */
#endif /* USE_OLED */

#endif /* PLATFORM_RP2040_H */
#endif /* PLATFORM_RP2XXX_H */
#endif /* ARDUINO_ARCH_RP2040 */
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,6 @@ static void ArdBLE_Bluetooth_setup()
#if defined(ESP32)
BLE_FIFO_RX = new cbuf(BLE_FIFO_RX_SIZE);
BLE_FIFO_TX = new cbuf(BLE_FIFO_TX_SIZE);

#if defined(CONFIG_IDF_TARGET_ESP32)
esp_bt_controller_mem_release(ESP_BT_MODE_CLASSIC_BT);
#endif /* CONFIG_IDF_TARGET_ESP32 */
#endif /* ESP32 */

BLE.begin();
Expand All @@ -156,12 +152,14 @@ static void ArdBLE_Bluetooth_setup()
hw_info.model == SOFTRF_MODEL_HAM ? "Ham Edition" :
hw_info.model == SOFTRF_MODEL_MIDI ? "Midi Edition" :
hw_info.model == SOFTRF_MODEL_ACADEMY ? "Academy Edition" :
hw_info.model == SOFTRF_MODEL_ECO ? "Eco Edition" :
hw_info.model == SOFTRF_MODEL_INK ? "Ink Edition" :
"Unknown";
char SerialNum[9];
snprintf(SerialNum, sizeof(SerialNum), "%08X", SoC->getChipId());

char Firmware[32];
snprintf(Firmware, sizeof(Firmware), "Arduino %s %s", SoC->name, ARDUINO_CORE_VERSION);
snprintf(Firmware, sizeof(Firmware), "Core %s %s", SoC->name, ARDUINO_CORE_VERSION);

char Hardware[9];
snprintf(Hardware, sizeof(Hardware), "%08X", hw_info.revision);
Expand Down Expand Up @@ -218,7 +216,6 @@ static void ArdBLE_Bluetooth_loop()

if (size > 0) {
BLE_FIFO_TX->read((char *) chunk, size);

UARTCharacteristic.writeValue(chunk, size);
}
#else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ static void ESP32_Bluetooth_setup()
hw_info.model == SOFTRF_MODEL_PRIME_MK3 ? "Prime Mark III" :
hw_info.model == SOFTRF_MODEL_HAM ? "Ham Edition" :
hw_info.model == SOFTRF_MODEL_MIDI ? "Midi Edition" :
hw_info.model == SOFTRF_MODEL_ECO ? "Eco Edition" :
hw_info.model == SOFTRF_MODEL_INK ? "Ink Edition" :
"Unknown";
char SerialNum[9];
snprintf(SerialNum, sizeof(SerialNum), "%08X", SoC->getChipId());
Expand Down
2 changes: 1 addition & 1 deletion software/firmware/source/SoftRF/src/system/SoC.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include "../platform/SAMD.h"
#include "../platform/AVR.h"
#include "../platform/ASR66.h"
#include "../platform/RP2040.h"
#include "../platform/RP2XXX.h"
#include "../platform/RA4M1.h"
#include "../platform/EFR32.h"
#include "../platform/CH32.h"
Expand Down

0 comments on commit 7dcb9df

Please sign in to comment.