mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-21 16:46:30 +03:00
Warn if HAS_BITCLOCK_ADJ misses on setting bitclock
This commit is contained in:
@@ -849,6 +849,8 @@ static int pickit5_updi_init(const PROGRAMMER *pgm, const AVRPART *p, double v_t
|
||||
return -1;
|
||||
}
|
||||
|
||||
if(!(pgm->extra_features & HAS_BITCLOCK_ADJ))
|
||||
pmsg_warning("setting bitclock despite HAS_BITCLOCK_ADJ missing in pgm->extra_features\n");
|
||||
unsigned int baud = my.actual_pgm_clk;
|
||||
if(baud < 300) { // Better be safe than sorry
|
||||
pmsg_warning("UPDI needs a higher clock for operation, increasing UPDI to 300 Hz\n");
|
||||
@@ -1012,6 +1014,9 @@ static int pickit5_initialize(const PROGRAMMER *pgm, const AVRPART *p) {
|
||||
}
|
||||
} else {
|
||||
|
||||
if(!(pgm->extra_features & HAS_BITCLOCK_ADJ))
|
||||
pmsg_warning("setting bitclock despite HAS_BITCLOCK_ADJ missing in pgm->extra_features\n");
|
||||
|
||||
// JTAG __requires__ setting the speed before program enable
|
||||
pickit5_set_sck_period(pgm, 1.0 / my.actual_pgm_clk);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user