Skip to content

Commit

Permalink
blackpill-f4: change slew speed frequency cutoff to 3 MHz
Browse files Browse the repository at this point in the history
which is the default bus frequency (see line 146), so that the probe
works on more targets by default (see blackmagic-debug#2065).
  • Loading branch information
birkenfeld committed Feb 11, 2025
1 parent 88ac09b commit 54557ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platforms/common/blackpill-f4/blackpill-f4.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ uint32_t platform_target_voltage_sense(void)

void platform_ospeed_update(const uint32_t frequency)
{
const uint8_t ospeed = frequency > 2000000U ? GPIO_OSPEED_25MHZ : GPIO_OSPEED_2MHZ;
const uint8_t ospeed = frequency > 3000000U ? GPIO_OSPEED_25MHZ : GPIO_OSPEED_2MHZ;

gpio_set_output_options(TCK_PORT, GPIO_OTYPE_PP, ospeed, TCK_PIN);
gpio_set_output_options(TMS_PORT, GPIO_OTYPE_PP, ospeed, TMS_PIN);
Expand Down

0 comments on commit 54557ed

Please sign in to comment.