Auto tunning tab missing in pac_foc_gui

Hi there,

I’m currently working with the PAC55723EVK1 Evaluation Kit and have successfully run the FOC firmware, flashed it to the PAC device, and controlled a motor using the PAC FOC GUI in manual mode. Now, I’d like to use the auto-tune feature mentioned in the documentation. I can see the feature is present in the firmware and understand how to enable it, but the GUI doesn’t appear to have any tab or interface for auto-tuning. I’m using the latest FOC firmware version 4.5.0. Could you please help clarify this issue? Thank you!

Hello,
For the GUI auto-tuning, you will need to go to config_feautres.h in the src folder, and then uncomment the line 236: #define ENABLE_AUTOTUNE_PI. And then you can compile, flash and open the GUI. After connecting to the board by config->COM port config, you can see the auto-tuning tab.
Thanks.

Thank you for you reply.

That’s exactly what I did, but the Autotuning tab still doesn’t appear in the GUI.

Could you check the following items and tell me what you find?

  1. Open the GUI without connecting to the board. There should be the auto-tuning tab no matter the software on the board is.
  2. Erase and flash the board again. Then power off, power on. Open the GUI and connect to the board. You should see the auto-tuning tab.
    Please tell me if there is still any issue after this.

Hi there,

Thank you for your response. Initially, the tuning tab didn’t appear, but after I erased the firmware and re-flashed it with autotuning enabled, the tab is now visible.

However, I’m facing a new issue: the autotuning doesn’t seem to work correctly. During the MID1 stage, where Ld, Lq, and Ra should be identified, it reports incorrect values — which I can confirm because I’ve already measured them manually. Are there any settings I might be missing that could affect the autotuning process?*

Hello,
Could you tell us the correct value and the value from GUI? What is the difference between them?
And do you fill correctly the value in the config tab? Including motor config (only pole pairs and nominal speed if auto-tuning is used), app config, control config and hardware config.

First, I want to mention that the autotuning process has been very inconsistent — sometimes it works, and other times it doesn’t at all. I’ve tried to follow the autotuning guide closely, but haven’t had much success. From what I understand, the intended sequence is to start with MID1 to measure Ld, Lq, and R, then calculate the current loop gains, proceed to MID2, and finally tune the speed loop gains. However, MID2 has never worked for me.

In response to your question: on the few occasions when MID1 did work, it returned 39 µH for Ld, and either zero or very small values like 1 µH for Lq, and again zero for R. The actual measured values are Ld = 30 µH, Lq = 31 µH, and R = 45 mΩ or something very close to these values.

As for the configuration, I’ve tried to follow the settings recommended in the autotuning guide, but the results have been unreliable. Could you let me know if there are any specific settings or configurations I might be missing? Thanks.

To provide more context, here’s a screenshot of the autotuning tab. As you can see, I’ve pressed the MID1 button, but nothing happens — there’s no detection of Ld, Lq, or R.

You’ll also notice a few warning messages in the status and general configuration sections. I’m not sure if those are critical or if they can be safely ignored.

Hello,
Can you show me the picture of the config tab and some basic parameters of the motor that you are using?
And for the auto-tuning process, after the MID1 and current PI calculation, user should run the motor in torque mode and go to MID2 while the motor is running in torque mode. Then the user can get the Ke and J, and calculate the speed PI. After this, the motor can be running in speed mode.
Please come back to me if there is still any issue.

Hello AhmadStevie,

If you still have the issue, it is difficult to debug it through this message board, I suggest you contact Qorvo local support FAE, if you can’t find Qorvo local FAE contact info, you can send a request email to customer.support@qorvo.com.

Thanks,