Add Storage Location Setting
Hi Bruce firmware devs,
I’m sending this sanitised V3 report for an AliExpress 4-in-1 Marauder Double Barrel board running Bruce 1.15 using the Marauder V4/V6 custom board firmware.
The report documents the board photos, firmware behaviour, tested pin setups, and the confirmed fixes found so far. The main confirmed changes are:
- SD card only mounted correctly after changing SD CS to GPIO14.
- GPS/wardriving only worked after reversing the default GPS UART mapping to RX GPIO4 / TX GPIO13 at 9600 baud.
- The RF/M5R433RST module appears to only respond when RF RX and TX are both set to GPIO4, but this needs dev review because GPIO4 is also being used by GPS RX.
- The RF Scan/Copy app crashes/reboots the Marauder when pressing NEXT to open the options menu.
- Bruce Gotchi works and collects handshakes, but randomly exits back to the Wi-Fi selection screen. I’m not sure whether this is caused by LittleFS limits, memory usage, watchdog reset, or an app crash, so it would be good if this could be checked and made stable enough to run continuously.
The reason the Marauder V4/V6 custom board firmware was used instead of the 6.x / 6.1 launcher-side firmware is that this version includes extra Bruce features that were not present in the 6.x / 6.1 launcher-side build.
The PDF includes the current working brucePins.conf notes, the tested pin combinations, screenshots, and device photos. It has been sanitised to remove personal information.
Hi Bruce tester!
I don't know if this information will help you, but since you went to such lengths to create such a detailed 2-megabyte report, I think it's useful:
If you have the necessary knowledge and programs (Notepad/code editor) and the ability to rebuild the firmware: https://wiki.bruce.computer/development/building-from-source/. There you can also find information on how to easily port Bruce to your device and then, if necessary, submit a pull request.
I'll say right away that the instructions for porting to devices are rather crude, but I have some experience adapting to a device (it looks like a CYD, but it isn't). Here's the basic file structure:
https://wiki.bruce.computer/development/porting-to-devices/
But I have a few details to add: You only need to change the BOARD.ini file. Inside it is a list of parameters such as:
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:Marauder-V4-V6]
board = esp32dev
board_build.partitions = custom_4Mb_full.csv
build_src_filter =${env.build_src_filter} +<../boards/marauder-touch>
build_flags =
${env.build_flags}
${env_4mb.build_flags}
-Iboards/marauder-touch
-DUSE_TFT_eSPI_TOUCH
-D SDCARD_CS=12
-D MARAUDER_TOUCH
-D TFT_HEIGHT=320
-D TFT_WIDTH=240
-D TOUCH_XPT2046_SPI
-D XPT2046_TOUCH_CONFIG_INT_GPIO_NUM=-1
-D XPT2046_SPI_BUS_MISO_IO_NUM=19
-D XPT2046_SPI_BUS_MOSI_IO_NUM=23
-D XPT2046_SPI_BUS_SCLK_IO_NUM=18
-D XPT2046_SPI_CONFIG_CS_GPIO_NUM=21
-DDEVICE_NAME='"Marauder v4-v6"'
lib_deps =
${env.lib_deps}
lib_ignore =
${env_4mb.lib_ignore}
[env:Marauder-v61]
extends=env:Marauder-V4-V6
build_flags =
${env:Marauder-V4-V6.build_flags}
-D SDCARD_CS=14
build_unflags =
-D SDCARD_CS=12
[env:LAUNCHER_Marauder-V4-V6]
extends=env:Marauder-V4-V6
board_build.partitions = custom_4Mb.csv
build_flags =
${env:Marauder-V4-V6.build_flags}
${env_light.build_flags}
lib_deps =
${env_light.lib_deps}
[env:LAUNCHER_Marauder-v61]
extends=env:Marauder-v61
board_build.partitions = custom_4Mb.csv
build_flags =
${env:Marauder-v61.build_flags}
${env_light.build_flags}
lib_deps =
${env_light.lib_deps}
[env:Awok-Touch]
extends = env:Marauder-v61
board_build.partitions = custom_16Mb.csv
board_upload.maximum_size = 16777216
board_upload.flash_size=16MB
[env:WaveSentry-R1]
extends=env:Marauder-V4-V6
build_flags =
${env:Marauder-V4-V6.build_flags}
-D WAVESENTRY=1
-D ENCODER_INA=2
-D ENCODER_INB=14
-D ENCODER_KEY=0
-D HAS_ENCODER=1
lib_deps =
${env.lib_deps}
mathertel/RotaryEncoder @1.5.3
[env:LAUNCHER_WaveSentry-R1]
extends = env:WaveSentry-R1
board_build.partitions = custom_4Mb.csv
build_flags =
${env:WaveSentry-R1.build_flags}
${env_light.build_flags}
lib_deps =
${env_light.lib_deps}
mathertel/RotaryEncoder @1.5.3
Here you need to find your parameters and change them, for example, change the sdcard_cs in the [env:Marauder-V4-V6] zone. (THIS IS IMPORTANT!!! Because you can see that in the zone... In the [env:Marauder-v61] environment, this parameter is already 14. Bruce-Marauder-v61.bin -- Here is the file. It's in Bruce releases. And you said that the -D LIGHT_VERSION flag is used there, but wait... Look at this file: Bruce-LAUNCHER_Marauder-v61.bin. It has this parameter enabled, which is why some functions are unavailable. BUT, you can use the Bruce-Marauder-v61.bin file EVEN IN THE LAUNCHER, although... I probably misunderstood something, but you can double-check anyway.
Although, I reread it carefully, and it seems to me that when choosing firmware for your board, you simply need to select the correct firmware. My point is that version 4/6 didn't add a new Bruce, and you simply used the version with the "LAUNCHER" prefix, which should necessarily remove some functions to save space. You can use the NON-Launcher version on a device with the Launcher installed ONLY IF you have enough flash memory (not an SD card). In any case, you can. Test
As for things like GPS and ANALOG_BAT_PIN, you just need to recompile and specify the necessary flags in your board's INi file.
As for the RF application crash and Bruce Gotcha instability, unfortunately, you'll have to dig into the firmware and change the code. BUT, I'll test this app on another device for you right now... If this crash happens on another device, it means it's a bug in the new version of Bruce, because it worked fine before. Hmm, it seems to be working fine, okay, I'll wait a bit longer.
Well, I don't know, it's probably just a bug on your board. Mine has been working for 3-5 minutes now and everything is fine.
As for changing ANALOG_BAT_PIN, this can't be done through BrucePins.conf, and to change it, you MUST recompile the firmware.
Regarding the firmware type selection, I think it's clear that you don't need to use the launcher version even if you use a launcher (this isn't certain and should be verified). Fw: marauder 6.1 version (not launcher)
Sorry if I was rude, expressed myself incorrectly, or misunderstood. If you have any questions, please ask them below.
*I used translator, information may contain inaccuracies
thank you for your reply. as i havent been able to find much regarding the ali express 4in1 marauder in terms of flashing it with bruce firmware, i kinda have been winging it and just seeing what works. when i get a chance ill look into trying to modify this v4/v6 version and try to fix some of these problems im having with this marauder and maybe even try to add some extra features and get it to you guys to test out and see what you think. thanks for all the work you guys do.
Hi Bruce firmware devs,
I wanted to suggest a firmware-wide storage improvement for Bruce, especially for Marauder-style ESP32 boards that only have a very small LittleFS partition.
On my device, LittleFS is only around 192 KB, and I’ve noticed that some apps can become unstable, reset, or crash once LittleFS fills up. A good example is Bruce Gotchi: it can collect data and operate correctly for a while, but once storage/memory fills or the app crashes, collected data and settings may be lost, and the app can return to its default state instead of continuing from where it left off.
Could Bruce please add a visible firmware-wide option that lets users choose where each app saves its data?
Suggested feature:
Storage Location Setting
- Save app data to LittleFS
- Save app data to SD card
- Prefer SD card, fallback to LittleFS only if SD is missing
- Option to move/migrate existing LittleFS app data to SD card
Suggested behaviour:
Each Bruce app should have a dedicated folder on the SD card, for example:
/SD/Bruce/BruceGotchi/
/SD/Bruce/BruceWardriving/
/SD/Bruce/BrucePCAP/
/SD/Bruce/BruceRFID/
/SD/Bruce/wordlists/
/SD/Bruce/config/
Apps should save their settings, logs, captures, wordlists, collected data, and session state to the SD card instead of filling LittleFS. On boot, Bruce should check for SD card data and automatically reload each app’s saved settings/session files, so the user can continue from the previous state.
This would help prevent LittleFS from filling up and causing app instability. It would also make boards with small onboard storage much more reliable, especially for apps like Bruce Gotchi, wardriving, PCAP capture, RFID/RF logs, wordlists, and other tools that generate ongoing data.
A useful implementation would be:
-
Add a global setting under Settings → Storage:
- Default storage: LittleFS / SD Card / Auto
-
Add per-app storage settings inside each app’s options menu.
-
Add a visible SD status indicator showing whether the SD card is mounted.
-
Add automatic folder creation for each app.
-
Add a safety check before writing to LittleFS if free space is low.
-
Add autosave/session-save support so apps like Bruce Gotchi do not lose collected data if the app crashes, exits, or the device reboots.
-
Add fallback behaviour: if SD is not available, warn the user before falling back to LittleFS.
This would be especially helpful for devices where LittleFS is very small but an SD card is available. It would make Bruce more stable across all supported boards and stop apps from failing simply because internal flash storage fills up.
Please consider adding this as a firmware-wide storage feature across all Bruce-supported devices and apps.