cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable MCP

ANICO.1
Associate III

Dear ST MCSDK team,

We are using MC SDK 5.Y.2 and have a conflict between our custom ADCs drivers and ASPEP protocol. Aspep init the UART that use DMA and conflict with our DMA usage with ADC.

We can't find anywhere to disable ASPEP / MCP Protocol in the Motor Control Workbench ?

We can't either find a place to change it's configuration (using MCP over STLNK).

Are we missing something ?

Best Regards,

Antoine

3 REPLIES 3
cedric H
ST Employee

Hello @ANICO.1​ ,

For the time being, the easiest way to disable the MCPV2 is to load the IOC generated file with MX, and uncheck all boxes related to MCP and ASPEP like in the attached screenshot.

the usage of MCP over STLNK is not ready yet for production and not currently supported by the motorPilot. So you will not have the possibility to connect your board through the UART.

For the WB 6, we plan to complete the support of the MCP V2 over STLNK, this will offer a fall back solution for all cases where DMA allocations are in conflict.

Regards

Cedric

ANICO.1
Associate III

Hello @cedric H​, thank you for your quick reply. Following your procedure, we succeeded to disable MCP. There are still a few traces of MCP in the generated code. We had to remove mcp_config.c from our build as it was using a macro from aspep.h file that isn't generated anymore. The files mcp.c, mcpa.c and mcptl.c were also still generated in the "Lib" parts but were not causing any errors.

Regards,

Antoine

cedric H
ST Employee

Hello @ANICO.1​ ,

Thanks for the notification, we will do our best to be able to remove it completely with the Workbench 6.

Regards

Cedric