2023-08-18 12:58 PM
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
Solved! Go to Solution.
2023-08-19 07:36 AM
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.
2023-08-18 12:59 PM
Here are the pinout of the Nucleo, and in red are the pins that I'm trying to realocate
2023-08-19 07:36 AM
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.