From 6d2c35b05b05590dc0f0e5b7238ff01b60830e7d Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 30 Aug 2026 19:21:28 +0200 Subject: [PATCH] The slight increase of array size makes us use the usb packages the AT91 sends which is 64bytes of size. We maximizing the available bytes basically and it comes with a slight cost of .bss and stack cost. Making bigbuff just abit smaller. We gain: 600 kBs -> 630 kB/s and less number of frames being sent over the wire. \n\nWhen it comes to Pm5 it will need to find its own aligned size to optimize transfers --- CHANGELOG.md | 1 + include/pm3_cmd.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e1e92efc..276b245da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file. This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log... ## [unreleased][unreleased] +- Changed NG frame layout to align better with 64bytes frames. From 512 -> 624bytes (@iceman1001) - Changed `hf plot` - converted to NG frame (@iceman1001) - Fixed `hf mfu cchk` - now 3-pass key check all keys sent to device (@iceman1001) - Changed iso15693 on device side to share one response buffer across the reader helpers (@iceman1001) diff --git a/include/pm3_cmd.h b/include/pm3_cmd.h index 017e5cfb2..4b3275dea 100644 --- a/include/pm3_cmd.h +++ b/include/pm3_cmd.h @@ -25,7 +25,7 @@ // Use it e.g. when using slow links such as BT #define USART_SLOW_LINK -#define PM3_CMD_DATA_SIZE 512 +#define PM3_CMD_DATA_SIZE 624 // OLD frames are pinned at 512 independently of PM3_CMD_DATA_SIZE: // the bootloader only speaks OLD #define PM3_CMD_DATA_SIZE_OLD 512