Skip to content

Commit 68ef76a

Browse files
authored
Merge pull request #540 from adafruit/fs-reinit-plus-titano
Add PyPortal Titano plus fallback Fs reinit and repeated serial if Halted
2 parents e254ac0 + 6b3c3aa commit 68ef76a

14 files changed

+83
-53
lines changed

.github/workflows/build-clang-doxy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
name: WipperSnapper Build CI
55

66
on:
7+
workflow_dispatch:
78
pull_request:
89
workflow_call:
910
secrets:
@@ -192,7 +193,7 @@ jobs:
192193
strategy:
193194
fail-fast: false
194195
matrix:
195-
arduino-platform: ["pyportal_tinyusb", "metro_m4_airliftlite_tinyusb"]
196+
arduino-platform: ["pyportal_tinyusb", "pyportal_titano_tinyusb", "metro_m4_airliftlite_tinyusb"]
196197
steps:
197198
- uses: actions/setup-python@v4
198199
with:
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
3+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
3+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
3+

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Adafruit WipperSnapper
2-
version=1.0.0-beta.75
2+
version=1.0.0-beta.76
33
author=Adafruit
44
maintainer=Adafruit <[email protected]>
55
sentence=Arduino application for Adafruit.io WipperSnapper

platformio.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,12 @@ build_flags = -DUSE_TINYUSB=1
233233
[env:adafruit_pyportal_m4_titano]
234234
extends = common:atsamd
235235
board = adafruit_pyportal_m4_titano
236+
; build_type = debug
237+
; upload_protocol = jlink
238+
; debug_tool = jlink
239+
; monitor_port = jlink
240+
; debug_init_break =
241+
lib_ignore = USBHost
236242
build_flags = -DUSE_TINYUSB=1
237243
-DADAFRUIT_PYPORTAL_M4_TITANO
238244

src/Wippersnapper.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2306,9 +2306,13 @@ void Wippersnapper::errorWriteHang(String error) {
23062306
WS_DEBUG_PRINTLN(error);
23072307
#ifdef USE_TINYUSB
23082308
_fileSystem->writeToBootOut(error.c_str());
2309+
TinyUSBDevice.attach();
2310+
delay(500);
23092311
#endif
23102312
// Signal and hang forever
23112313
while (1) {
2314+
WS_DEBUG_PRINTLN("ERROR: Halted execution");
2315+
WS_DEBUG_PRINTLN(error.c_str());
23122316
WS.feedWDT();
23132317
statusLEDBlink(WS_LED_STATUS_ERROR_RUNTIME);
23142318
delay(1000);

src/Wippersnapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
#endif
9191

9292
#define WS_VERSION \
93-
"1.0.0-beta.75" ///< WipperSnapper app. version (semver-formatted)
93+
"1.0.0-beta.76" ///< WipperSnapper app. version (semver-formatted)
9494

9595
// Reserved Adafruit IO MQTT topics
9696
#define TOPIC_IO_THROTTLE "/throttle" ///< Adafruit IO Throttle MQTT Topic

src/Wippersnapper_Boards.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
#define USE_STATUS_NEOPIXEL
2323
#define STATUS_NEOPIXEL_PIN 2
2424
#define STATUS_NEOPIXEL_NUM 1
25+
#elif defined(ADAFRUIT_PYPORTAL_M4_TITANO)
26+
#define BOARD_ID "pyportal-titano-tinyusb"
27+
#define USE_TINYUSB
28+
#define USE_STATUS_NEOPIXEL
29+
#define STATUS_NEOPIXEL_PIN 2
30+
#define STATUS_NEOPIXEL_NUM 1
2531
#elif defined(ADAFRUIT_METRO_M4_AIRLIFT_LITE)
2632
#define BOARD_ID "metro-m4-airliftlite-tinyusb"
2733
#define USE_TINYUSB

src/Wippersnapper_Networking.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
#ifndef WIPPERSNAPPER_NETWORKING_H
1717
#define WIPPERSNAPPER_NETWORKING_H
1818

19-
#if defined(ADAFRUIT_METRO_M4_AIRLIFT_LITE) || defined(ADAFRUIT_PYPORTAL) || \
20-
defined(ADAFRUIT_METRO_M4_EXPRESS) || defined(USE_AIRLIFT)
19+
#if defined(ADAFRUIT_METRO_M4_EXPRESS) || \
20+
defined(ADAFRUIT_METRO_M4_AIRLIFT_LITE) || defined(ADAFRUIT_PYPORTAL) || \
21+
defined(ADAFRUIT_PYPORTAL_M4_TITANO) || defined(USE_AIRLIFT)
2122
#include "network_interfaces/Wippersnapper_AIRLIFT.h"
2223
/** Nina-FW (adafruit fork) networking class */
2324
typedef Wippersnapper_AIRLIFT Wippersnapper_WiFi;

0 commit comments

Comments
 (0)