cancel
Showing results for 
Search instead for 
Did you mean: 

Motor Pilot - Cannot add registers into high-speed plotting "ASPEP_RESP MCP_ERROR_UNKNOWN_REG"

markpg
Associate

[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:

  • The code for STM32 is generated as follows: configure FOC driver in MCWB 6.2.0 >> generate CubeMX project >> open in CubeIDE for uploading and debugging (via integrated STLink Debugger)
  • In MCWB 6.2.0: "Data Log" (under User Interface > Motor Control Protocol) is checked, see attached Screenshot 2 for all configs under Motor Control Protocol. "Reduce the number of registers accessible with the MC Pilot to fit in 32 KB Flash"  (under Application Configuration) is checked (otherwise cannot fit Flash).  
  • Hovering over the high-speed graph button says "MCP ASYNC Available in this Firmware. ASYNC UARTA size = 0" (see attached Screenshot 1)
  • The Flash & RAM of the MCU is almost at capacity (>97%)

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!

 

 

2 REPLIES 2
Gael A
ST Employee

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.

If you agree with my answer, please consider accepting it by clicking on 'Accept as solution'.

Hope this will help,
Gaël A.
LHOUE
ST Employee

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

If you agree with my answer, please accept it by clicking on 'Accept as solution'.