2023-10-24 11:38 AM
[MCSDK Version]: 6.2.0
Programming EVSPIN32F02Q1S1 (Evaluation board for STSPIN32 controller), controlling one BLDC via FOC.
[Tool]: Motor Pilot (MP) - viewing and plotting registers with high-speed plotting
[Details]:
I am able to open the high-speed plotting window.
However, when I tried to add any register to the plot, an error was thrown: "ASPEP_RESP MCP_ERROR_UNKNOWN_REG" (see attached Screenshot 1).
I thought this meant MP somehow did not have access to the registers I wanted to plot, but I was able to plot these registers using low-speed plotting and confirmed in the "Registers" tab that MP could access these registers.
Here is some (possibly) relevant information regarding my software setup:
I am new to ASPEP protocol and MCP, so this error is quite cryptic to me. I tried looking into the documentation, but not sure where the problem lies. I'd greatly appreciate any help or pointers (even basic ones) on how I can solve this problem. Details would be much appreciated, thank you!
2023-10-25 01:23 AM
Hello markpg,
When checking the Reduce the number of registers accessible with the MC Pilot to fit in 32 KB Flash box, most registers become unavailable through Motor Pilot. Thus, the use of the Data Log feature becomes questionable, even though some registers should still be available.
2023-10-26 02:22 AM
Hello markpg,
"Reduce the number of registers" remove I_A, I_B, I_APHA_MEAS, I_BETA_MEAS, I_Q_MEAS, I_D_MEAS, I_Q_REF and I_D_REF register from high-speed plot.
You can have a look to RI_GetPtrReg function inside register_interface.c file and re enable them if you need them. (you can generate a project with STM32G4 for example and compare difference)
BRs