Skip to content

spiffs dump not working: error, downloading from spiffs #2982

@andrei-cb

Description

@andrei-cb

Describe the bug
spiffs dump is not working for traces that where generated using HF_14ASNIFF

I get the following error:

[usb] pm3 --> mem spiffs dump -s hf_14asniff.trace
[=] downloading 20162 bytes from `hf_14asniff.trace` (spiffs)
[-] error, downloading from spiffs

I can rename, delete, copy the file, but I can't view/dump it.

[usb] pm3 --> mem spiffs rename -s hf_14asniff.trace -d test.txt
[=] Done!
[?] Hint: Try `mem spiffs tree` to verify
[usb] pm3 --> mem spiffs tree
[=] --- Flash Memory tree (SPIFFS) -----------------

[#] [0001] 20162 B |-- test.txt
[usb] pm3 --> mem spiffs dump -s test.txt
[=] downloading 20162 bytes from `test.txt` (spiffs)
[-] error, downloading from spiffs

To Reproduce
Steps to reproduce the behavior:

  1. Load HF_14ASNIFF into standalone mode
  2. Sniff a mifare 1k
  3. Dump the file generated by HF_14ASNIFF
  4. See error: [-] error, downloading from spiffs

Expected behavior
File should download successfully.

Note: doing a spiffs test and downloading the test file works fine.

[usb] pm3 --> mem spiffs test

[#] ----------------------------------------------
[#] Testing SPIFFS operations
[#] ----------------------------------------------
[#] --  all test are made using lazy safetylevel
[#]   Mounting filesystem (lazy).......
[#]   Printing tree..............
[#] [0001] 20162 B |-- test.txt
[#] [0002] 20162 B |-- test2.txt
[#]   Writing 'I love Proxmark3 RDV4' in a testspiffs.txt
[#]   Printing tree again.......
[#] [0001] 20162 B |-- test.txt
[#] [0002] 20162 B |-- test2.txt
[#] [0003]    21 B |-- testspiffs.txt
[#]   Making a symlink to testspiffs.txt
[#]   Printing tree again.......
[#] [0001] 20162 B |-- test.txt
[#] [0002] 20162 B |-- test2.txt
[#] [0003]    21 B |-- testspiffs.txt
[#] [0004]    32 B |-- linktotestspiffs.txt(.lnk) --> testspiffs.txt
[#]   Rollbacking The mount status IF things have changed
[#] All done
[usb] pm3 --> mem spiffs dump -s  testspiffs.txt
mem spiffs dump: unexpected argument "testspiffs.txt"
[!] Try 'mem spiffs dump --help' for more information.

[usb] pm3 --> mem spiffs dump -s testspiffs.txt
[=] downloading 21 bytes from `testspiffs.txt` (spiffs)
[+] Saved 21 bytes to binary file `C:\Users\username\Desktop\proxmark\ProxSpace\pm3/testspiffs-001.txt`
[usb] pm3 -->

Desktop (please complete the following information):

  • OS: Windows 11
[usb] pm3 --> hw version

 [ Proxmark3 ]

 [ Client ]
  Iceman/master/v4.20728-11-g6204b67b0-dirty-suspect 2025-09-15 20:18:05 c71150d57
  Compiler.................. MinGW-w64 13.2.0
  Platform.................. Windows (64b) / x86_64
  Readline support.......... present
  QT GUI support............ present
  Native BT support......... absent
  Python script support..... present ( 3.11.5 )
  Python SWIG support....... present
  Lua script support........ present ( 5.4.6 )
  Lua SWIG support.......... present

 [ Model ]
  Device.................... RDV4
  Firmware.................. RDV4
  External flash............ present
  Smartcard reader.......... present
  FPC USART for BT add-on... absent

 [ ARM ]
  Bootrom.... Iceman/master/v4.20728-11-g6204b67b0-suspect 2025-09-15 18:49:34 c71150d57
  OS......... Iceman/master/v4.20728-11-g6204b67b0-dirty-suspect 2025-09-15 20:16:40 c71150d57
  Compiler... GCC 12.2.0

 [ FPGA ]
 fpga_pm3_hf.ncd image 2s30vq100 15-09-2025 18:14:01
 fpga_pm3_lf.ncd image 2s30vq100 15-09-2025 18:14:01
 fpga_pm3_felica.ncd image 2s30vq100 15-09-2025 18:14:01
 fpga_pm3_hf_15.ncd image 2s30vq100 15-09-2025 18:14:01

 [ Hardware ]
  --= uC: AT91SAM7S512 Rev A
  --= Embedded Processor: ARM7TDMI
  --= Internal SRAM size: 64K bytes
  --= Architecture identifier: AT91SAM7Sxx Series
  --= Embedded flash memory 512K bytes ( 77% used )

[usb] pm3 --> hw status
[#] Memory
[#]   BigBuf_size............. 37820
[#]   Available memory........ 37820
[#] Tracing
[#]   tracing ................ 0
[#]   traceLen ............... 20162
[#] Current FPGA image
[#]   mode.................... fpga_pm3_hf.ncd image 2s30vq100 15-09-2025 18:14:01
[#] Flash memory
[#]   Baudrate................ 24 MHz
[#]   Init.................... ok
[#]   Mfr ID / Dev ID......... EF / 11
[#]   JEDEC Mfr ID / Dev ID... EF / 3012
[#]   Memory size............. 256 kB (4 pages * 64k)
[#]   Unique ID (be).......... 0x26C77323525464D5
[#] Smart card module (ISO 7816)
[#]   version................. v3.10 ( Outdated )
[#] LF Sampling config
[#]   [q] divisor............. 95 ( 125.00 kHz )
[#]   [b] bits per sample..... 8
[#]   [d] decimation.......... 1
[#]   [a] averaging........... yes
[#]   [t] trigger threshold... 0
[#]   [s] samples to skip..... 0
[#]
[#] LF T55XX config
[#]            [r]               [a]   [b]   [c]   [d]   [e]   [f]   [g]
[#]            mode            |start|write|write|write| read|write|write
[#]                            | gap | gap |  0  |  1  | gap |  2  |  3
[#] ---------------------------+-----+-----+-----+-----+-----+-----+------
[#] fixed bit length (default) |  29 |  17 |  15 |  47 |  15 | n/a | n/a |
[#]     long leading reference |  29 |  17 |  15 |  47 |  15 | n/a | n/a |
[#]               leading zero |  29 |  17 |  15 |  40 |  15 | n/a | n/a |
[#]    1 of 4 coding reference |  29 |  17 |  15 |  31 |  15 |  47 |  63 |
[#]
[#] HF 14a config
[#]   [a] Anticol override........... std    ( follow standard )
[#]   [b] BCC override............... std    ( follow standard )
[#]   [2] CL2 override............... std    ( follow standard )
[#]   [3] CL3 override............... std    ( follow standard )
[#]   [r] RATS override.............. std    ( follow standard )
[#]   [m] Magsafe polling............ disabled
[#]   [p] Polling loop annotation.... disabled 00000000000000000000000000000000
[#] Transfer Speed
[#]   Sending packets to client...
[#]   Time elapsed................... 500ms
[#]   Bytes transferred.............. 154624
[#]   Transfer Speed PM3 -> Client... 309248 bytes/s
[#] Various
[#]   Max stack usage..... 3520 / 8480 bytes
[#]   Debug log level..... 1 ( error )
[#]   ToSendMax........... -1
[#]   ToSend BUFFERSIZE... 2308
[#]   Slow clock.......... 30717 Hz
[#] Installed StandAlone Mode
[#]  HF 14A SNIFF,  a ISO14443a sniffer with storing in flashmem
[#]
[#] To get the trace from flash and display it:
[#] 1. mem spiffs dump -s hf_14asniff.trace -d hf_14asniff.trace
[#] 2. trace load -f hf_14asniff.trace
[#] 3. trace list -t 14a -1
[#] Flash memory dictionary loaded
[#]   Mifare... 0 keys - dict_mf.bin
[#]   T55xx.... 0 keys - dict_t55xx.bin
[#]   iClass... 0 keys - dict_iclass.bin
[#]   UL-C..... 0 keys - dict_mfulc.bin
[#]   UL-AES... 0 keys - dict_mfulaes.bin
[#]
[usb] pm3 --> hw tune

[=] -------- Reminder ----------------------------
[=] `hw tune` doesn't actively tune your antennas.
[=] It's only informative.
[=] Measuring antenna characteristics...
[/] 10

[=] -------- LF Antenna ----------
[+] 125.00 kHz ........... 70.60 V
[+] 134.83 kHz ........... 36.88 V
[+] 126.32 kHz optimal.... 72.32 V
[+]
[+] Approx. Q factor measurement
[+] Frequency bandwidth... 12.2
[+] Peak voltage.......... 12.6
[+] LF antenna............ ok

[=] -------- HF Antenna ----------
[+] 13.56 MHz............. 46.90 V
[+]
[+] Approx. Q factor measurement
[+] Peak voltage.......... 8.2
[+] HF antenna ( ok )

[=] -------- LF tuning graph ------------
[+] Orange line - divisor 95 / 125.00 kHz
[+] Blue line - divisor   88 / 134.83 kHz


[=] Q factor must be measured without tag on the antenna

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions