Skip to content

Commit cc33cb4

Browse files
committed
s32k3xx: Remove assert
* Pulling __assert_func() and fiprintf() costs ~1.5 KiB of BMF flash * Target flash layer is guaranteed to call this with len=writesize anyways
1 parent db48ed5 commit cc33cb4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/target/s32k3xx.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
* the XML memory map and Flash memory programming.
2424
*/
2525

26-
#include <assert.h>
27-
2826
#include "command.h"
2927
#include "general.h"
3028
#include "target.h"
@@ -250,8 +248,6 @@ static bool s32k3xx_flash_erase(target_flash_s *const flash, target_addr_t addr,
250248

251249
static bool s32k3xx_flash_write(target_flash_s *flash, target_addr_t dest, const void *src, size_t len)
252250
{
253-
assert(len == flash->writesize);
254-
255251
const uint32_t *const s_data = src;
256252
s32k3xx_flash_prepare(flash);
257253
target_mem32_write32(flash->t, PFCPGM_PEADR_L, dest);

0 commit comments

Comments
 (0)