Skip to main content
Associate
August 18, 2023
Solved

MCSDK 6.1.1 - Trouble changing default pins

  • August 18, 2023
  • 2 replies
  • 1297 views

Hello!

I'm working on a prototype using FOC, and I got everything working with the following scheme:
NUCLEO-F401RE, Custom Power Board, CubeIDE 1.12.1, CubeMX 6.8.0, Motor Pilot 1.1.12 and MCSDK 6.1.2.

Now I'm trying to do the same thing but with the STM32F401CCU6 (48-UQFPN). I'm importing the first project that works, but in order to import the same project I need to relocate the current sensing pins, since on the Nucleo they are on PortC (that are not present on the 48-pin MCU). I couldn't find a straightforward way to do this, and just relocating the pins in CubeMX isn't working (even though I'm making sure everything has exactly the same configuration as before).

I've already looked a lot in the official documentation of this version of the SDK about pin reallocation, and I wasn't successful.

Any kind of help would be appreciated! Thanks

 

    This topic has been closed for replies.
    Best answer by TDK

    I'm assuming those pins are used as ADCs. Identify open ADC pins on your new chip and assign those instead. You'll need to change the relevant code such that those pins/channels are used instead of the previous ones, which is likely going to take more work than a few clicks in the GUI.

    2 replies

    Associate
    August 18, 2023

    Here are the pinout of the Nucleo, and in red are the pins that I'm trying to realocate

    giordano_walker_0-1692388743060.png

     

     

    TDK
    TDKBest answer
    Super User
    August 19, 2023

    I'm assuming those pins are used as ADCs. Identify open ADC pins on your new chip and assign those instead. You'll need to change the relevant code such that those pins/channels are used instead of the previous ones, which is likely going to take more work than a few clicks in the GUI.

    "If you feel a post has answered your question, please click ""Accept as Solution""."