adafruit / adafruit/Adafruit_Wippersnapper_Arduino

Unable to modify MagTag file system contents

Open
#456 5 comments 0 reactions 0 assignees View on GitHub
bug filesystem Status: Needs Investigation
Dominant language
C++
Stars
54
Forks
56
Avg merge
2d 12h
Merged PRs (30d)
11

Description

***Souce***
Forums, https://forums.adafruit.com/viewtopic.php?p=980542#p980542

***Arduino board***
MagTag

**To Reproduce**
Steps to reproduce the behavior:

1. Choose any of the following actions
2. rename `secrets.json` to `secrets.old`
3. edit `secrets.json` (using notepad, exiting notepad) to have API key, username, SSID, and password
4. copy (from host) new `secrets.json` over existing file
5. Attempt safe removal: right-click the safe removal icon in taskbar, and choose to eject the USB device
6. Wait 30+ seconds
7. Either press reset button on MagTag, or slide power switch to off position for at least 3 seconds

**Expected behavior**
The file volume appears, and reflects the action selected above that modified secrets.json.

**Actual Results**
The first boot flashes neopixels purple for <1 second.
No serial port is enumerated, and no mass storage appears.
At this point, if use reset button again (or power switch), WIPPER volume will reappear, but with original, unmodified contents.

Also noteworthy: The "Safe Removal" attempt never completes. It's almost as though the device is failing all write commands, and thus rejecting the QUERY_REMOVAL until the cache is flushed ... which never happens.

**Additional context**

Adafruit.io WipperSnapper
Firmware Version: 1.0.0-beta.67
Board ID: magtag
MAC Address: 7C:DF:A1:17:8E:28

tinyuf2-adafruit_magtag_29gray-0.16.0
wippersnapper.magtag.1.0.0-beta.67.uf2

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file or test is named. Start by reproducing the failure on the MagTag with the listed WipperSnapper and tinyuf2 firmware, then trace the firmware's USB mass-storage and filesystem write handling. Done means edited secrets.json survives reboot and the WIPPER volume reappears with the modified contents.

Written by the indexing model from the issue text.

Assessment

Tech stack
arduino, cpp
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.