Commit Graph
4372 Commits
Author SHA1 Message Date
Niel Nielsen 8d6cccd4ca Rename battery temperature log to gauge temperature
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-25 12:43:53 +02:00
Niel Nielsen ed06150edc Implement automatic power-off on USB unplug
Added automatic power-off feature on USB unplug with configurable grace period and polling interval.

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-25 12:43:53 +02:00
Devin Ronge ee90190928 add a timeout parameter to the hw qc_pm5 command and ensure rgb led is off at the conclusion of the test 2026-08-25 12:19:04 +02:00
Niel Nielsen 4d529bc4d7 CHANGE: Battery temp to Temp (gauge), ADD: Dim green LED when on battery only 2026-08-24 21:05:00 +02:00
Niel Nielsen 9e0de43ddc Rename battery temperature log to gauge temperature
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-24 21:05:00 +02:00
Niel Nielsen fb3ec70aec FIX only use BWM functions is BWM is seated 2026-08-24 17:57:50 +02:00
Niel Nielsen 190ed8a990 ADD: BWM status includes AW32001ECSR registerd, Charging set to 256mAh and keeps BWM safety guards for temperature 2026-08-23 20:31:01 +02:00
Niel Nielsen 7377dae83d Add files via upload
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-23 14:17:50 +02:00
Niel Nielsen cc98f9560b ADD: hw bwmsetcap commandhandler
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-23 13:23:08 +02:00
Niel Nielsen d8ff5594e7 Add BWM charger kick and battery status functions
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-23 11:20:13 +02:00
dxl e9110045ec Use HAL in pcf7931.c/SendCmdPCF7931() 2026-08-23 04:01:00 +08:00
Iceman fbebbd4b78 Merge pull request #3489 from xianglin1998/fix_hitag2_sniff
Fixed hitag2 sniff.
2026-08-22 02:31:55 +07:00
dxl 5174a54cbc Fixed hitag2 sniffing.
1. Fixed a bug where old data caused incorrect bitwise operation results.
2. Do not call ResetLoEdgeCapture(), as this will prevent the condition rb >= HITAG_T_EOF from ever being met.
3. PM5 and RDV4 have been tested and have good compatibility.
4. FPGA_LF_EDGE_DETECT_TOGGLE_MODE seems to be useless.
2026-08-22 02:35:50 +08:00
Antiklesys 7ce6a72cfc Update iclass.c 2026-08-21 16:33:19 +08:00
Antiklesys 6a317bdacc Added CMD_HF_ICLASS_RAW
Raw iCLASS reader exchange that leaves the field ON
2026-08-21 12:45:46 +08:00
iceman1001 7ff85b09ec remove the old SAM implementation 2026-08-20 18:34:57 +02:00
Philippe Teuwen 08f8dc8692 CARDHOPPER: document how to set CARDHOPPER_USB 2026-08-20 14:28:21 +02:00
Philippe Teuwen b11b85e51a CARDHOPPER: missing header 2026-08-20 14:28:21 +02:00
Nemanja Nedeljkovic 6507b8f36b feat(pm5): hf tune --rgb / lf tune --rgb - antenna RGB as a tuning meter
Adds an opt-in `--rgb` flag to the continuous `hf tune` / `lf tune` commands that
mirrors the antenna tuning level on the PM5 antenna RGB LED: blue = low, green =
mid, red = high, tracking the on-screen bar so you can find coupling (e.g. an
implant) by feel without watching the screen.

The colour is computed client-side from the same per-iteration voltage / running
peak the bar uses (so it matches the bar and auto-scales), and pushed to the
device via a new dumb CMD_PM5_RGB_SET {r,g,b}. That command is handled (#ifdef
PM5) by a dedicated AT32 RGB HAL module, common_arm/rgb/{rgb_apis.h,
rgb_hw_at32.c} (RgbLedSet(), I2C controller @ 0x48), wired into the armsrc
Makefile/CMake as SRC_RGB for PM5 only - so no other platform is affected and no
hardware code lands in shared files.
2026-08-20 11:55:55 +02:00
Nemanja Nedeljkovic ba315d8d58 fix(pm5): suppress bogus [FPGA] version section on PM5
PM5's FPGA (Gowin GW1NR) bitstream is loaded at runtime via `hw fpga config`
and is not compiled into the firmware; only the Xilinx fpga_pm3_hf.bit is pulled
in (to generate g_fpga_version_information[]) which PM5 never runs. So the
`[ FPGA ] fpga_pm3_hf.ncd image 2s30vq100` line described a bitstream unrelated
to the actual device.

- Firmware (appmain.c): omit the [FPGA] section from the version string on PM5
  (#ifndef PM5), since there's no meaningful built-in FPGA version to report.
- Client (cmdhw.c): skip the FPGA_TYPE "chip mismatch" check for PM5, which would
  otherwise trigger now that the section is gone.
2026-08-20 10:36:09 +02:00
Nemanja Nedeljkovic 6da7c77427 feat(pm5): report AT32 MCU, flash size and PM5 target in hw version/status
`hw version` and `hw status` decoded the reported chip id as an Atmel AT91
CIDR. On PM5 (AT32) the id is an ARM DBGMCU IDCODE, so it showed
"MCU Unknown", a bogus flash size (32 KB / 973% used) and "PM3 GENERIC".

- Client: when IfPm5(), print MCU "AT32F437" and the real flash size, and add
  a "PM5" target line, instead of running the AT91 decode.
- Firmware: the flash size can't be derived from the AT32 IDCODE, so the device
  now sends GetChipFlashSize(). It is appended AFTER the version string in the
  CMD_VERSION reply, so the wire layout is unchanged and it stays compatible in
  both directions (old client ignores the trailing bytes; new client length-
  guards and treats a missing value as 0). GetChipFlashSize() already exists for
  both AT91 and AT32.
2026-08-19 21:49:43 +02:00
Philippe Teuwen 52af3f11e2 rename a couple of commands 2026-08-19 15:51:54 +02:00
Philippe Teuwen b6752e9dde compile CMD_FPGA_CMD_SET_PWR_PWM_LOW_COUNT only for pm5 2026-08-19 15:51:54 +02:00
dxl d064f9a310 Change HITAG_T_WAIT_FIRST to 350(See datasheet) so that PM5 can read hitagu normally. 2026-08-19 15:51:54 +02:00
dxl a286002d27 Refactor ISO14443A DMA RX to use cross-platform buffer helpers
Replace the hard-coded AT91 PDC register access in SniffIso14443a() with
cross-platform helpers for the RX double-buffer status/refresh, so the
sniffer no longer depends on AT91-specific registers.

- Add FPGA_SSC_DMA_RX_{Primary,Secondary}_Done and
  FPGA_SSC_DMA_RX_Refresh_{Both,Secondary} to fpga_apis.h.
- AT91: primary maps to PDC RPR/RCR, secondary ("next") to RNPR/RNCR.
- AT32: no double buffer, so the primary path is a no-op and all re-arming
  is done through the secondary (single-shot DMA re-arm).
2026-08-19 15:51:53 +02:00
dxl 676bc467cd Deleted unused variable 'maxDataLen' from SniffIso14443a() 2026-08-19 15:51:53 +02:00
dxl 7ef2d7b5b7 Moved startup_at32f435_437.s from armlib to armsrc 2026-08-19 15:51:53 +02:00
dxl d286946d0f Update the Makefile support for ARM 2026-08-19 15:51:53 +02:00
DXL 0191fb78ec CMake has been implemented to manage ARM projects.
Add the mkversion bat and ps1 implementation to the Windows platform compilation.
Make armlib a static library so that bootrom and armsrc can be reused.
2026-08-19 15:51:50 +02:00
dxl 1cdd70d8e7 Export I2C_BufferReadRaw() of i2c.c 2026-08-19 15:51:18 +02:00
dxl 566ada5f33 The source files for the unit tests of Proxmark5 have been added. 2026-08-19 15:51:18 +02:00
dxl 3cc2f7e59b Make ldscript cross-platform. 2026-08-19 15:51:18 +02:00
dxl 68aeb51482 hitag_common is restored to the FPGA-side detection edge and implemented using HAL. 2026-08-19 15:32:39 +02:00
dxl e3511c5350 Used HAL layer
in appmain.c and cmd added.
in cmd.c and add some code for test CEP
in em4x50.c(Do not timeout--)
in em4x70.c
in emvsim.c
in epa.c
in felica.c
in felicasim.c
in felicasim.c
in hfops.c
in hfsnoop.c
in hitag2.c
in hitag_common.c(Cross-platform implementation is incomplete.)
in hitagS.c
in hitagu.c
in i2c.c(Incomplete, continue to abstract.)
in i2c_direct.c
in iclass.c
in iso14443a.c(Sniff no finish yet)
in iso14443b.c and fixed bug for st25
in iso15693.c
in legicrf.c
in legicrfsim.c
in lfadc.c(lf_count_edge_periods_ex() improved)
in lfops.c(TI tag no finish yet)
in lfsampling.c
in lfzx.c
in mifarecmd.c
in mifaredesfire.c
in mifaresim.c
in mifaresniff_disabled.c
in mifareutil.c
in pcf7931.c
in sam_xxx
in secc & seos
in start.c
in thinfilm.c
in utils
2026-08-19 15:32:39 +02:00
dxl e4fa411ae9 Run ConfigSystemClocks() & UnitTestMain() in start.c 2026-08-19 15:32:39 +02:00
dxl 36f1c7e44c Make common_arm to hardware abstraction layer. 2026-08-19 15:32:39 +02:00
Philippe Teuwen 51d0ff260a cppcheck fix sanity check condition in SimTagIso15693 2026-08-19 13:53:09 +02:00
Philippe Teuwen d2a8cca233 Add pm5 capabilities 2026-08-19 12:04:33 +02:00
dxl 40ec760a92 Strictly check the length of atqa. 2026-08-19 12:04:33 +02:00
Philippe Teuwen 436bbed4a2 Add placeholder for CMD_MAIN_CHIP_UNIQUEID 2026-08-19 12:04:32 +02:00
iceman1001 53b4e2095b style 2026-07-28 15:53:20 +02:00
YoungJules faaab023f6 Added --kgh flag on clone to take care of checksum in last byte of segment payload on KGH cards, which includes the uid. Added a small debug on legic sim. Gated --fill option on wrbl to only allow after offset 22. You can still brick your card by wrbling byte by byte, but fill won't kill. 2026-07-28 14:37:32 +02:00
kormax b2a54cd95b Move some used FeliCa constants into shared protocols 2026-07-25 12:58:52 +03:00
kormax 1a4c2b7c70 Normalize FeliCa command constant names 2026-07-25 12:46:47 +03:00
Mistial Developer bc289cf436 Allow mifare to recover after usb disconnection 2026-07-24 03:07:36 -07:00
iceman1001 2c6e607110 style 2026-07-15 16:39:15 +02:00
iceman1001 b8911a29a1 fix coverity findings 2026-07-03 18:08:02 +02:00
iceman1001 dc5e213420 fix coverity #910754 2026-07-03 17:19:00 +02:00
iceman1001 fc773ea230 fix coverity #910036 2026-07-03 11:26:32 +02:00
iceman1001 b5abc8b335 fix coverity #910704 2026-07-03 11:25:14 +02:00