5 years, 11 months ago.

Unable to re-initialise x-nucleo-IHM03A1

Hi

I am currently using a stepper connected to the x-nucleo-IHM03A1 alongside the STM32F411RE. I also need to run several servos alongside, and the x-nucleo-IHM03A1 uses too many pins for all devices to fit (D2, D4, D8, D9, D10, D11, D12, D13). Luckily I do not need to rotate my stepper at the same time as the servos, and I am still able to plug the servos into those pins, so it's my understanding that I can re-purpose and re-initialize the pins/hardware when swapping between the stepper and the servos

On the x-nucleo-IHM03A1 I am able to run the servos without issue until I initialize the x-nucleo-IHM03A1. Once initialized I can run the stepper motor but not the servos.

After clearing up the x-nucleo-IHM03A1 objects I am then able to run the servos./media/uploads/regency96/hardware_rotations.cpp

However even after clearing up all the memory associated I am unable to re-initialise the stepper motor, getting a red LED (failure) once attempting to manipulate the stepper.

I attach my (debug) code, and hope someone can inform me with what I am missing

Thank you

Be the first to answer this question.