Motor Pilot - Cannot add registers into high-speed plotting "ASPEP_RESP MCP_ERROR_UNKNOWN_REG"
- October 24, 2023
- 2 replies
- 1768 views
[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!
