DC motor on I2C Motor Driver(L298): PWM is 25Hz and can’t be changed

Hello,
I performed an firmware upgrade with a STlinkv2 counterfeit because I found only that quickly:


I am waiting for a true SLlinkV3

My upgrade steps:

  • STLinkV2 firmware upgrade with v3-15-6 upgrade tool from www.st.com
  • Connect STLink to motor driver according to Seraphina picture
  • I couldn’t install STM32 ST-LINK Utility from www.st.com so I installed STM32 cube programmer
  • I performed connect/eraseChip/Program
    The motor driver should be updated.

I tried the recomanded instruction:
Motor.frequency(50)

With the Grove_I2C_Motor_Driver_v1_3
In this simplified program:

#include "Grove_I2C_Motor_Driver.h"
#define I2C_ADDRESS 0x0f

void setup() {
  Motor.begin(I2C_ADDRESS);
  Motor.frequency(50);
}

void loop() {
  Motor.speed(MOTOR1, 50);
  delay(2000);
}

But I have the error:
Compilation error: 'class I2CMotorDriver' has no member named 'frequency'
There is no Motor.frequency in the library but just a frequence in the library.

I suppose you use an upgrade library to use Motor.frequency

Can you provide the upgrade library?