Skip to content

Commit 3576cdf

Browse files
perigosorg-silva
authored andcommitted
target/lpc546xx: mark cmd erase_sector as deprecated in favor of erase_range
1 parent 5627de9 commit 3576cdf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/target/lpc546xx.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ static void lpc546xx_reset_attach(target_s *t)
182182

183183
static bool lpc546xx_cmd_erase_sector(target_s *t, int argc, const char **argv)
184184
{
185+
tc_printf(t, "This command is deprecated in favor of erase_range and may be removed in the future\n");
186+
185187
if (argc > 1) {
186188
uint32_t sector_addr = strtoul(argv[1], NULL, 0);
187189
sector_addr *= t->flash->blocksize;

0 commit comments

Comments
 (0)