2025-03-10 11:27 PM
i generated the code using the workbench for stm32h755ziq and the motor driver ihm07m1 with a 12v bldc motor...and i have called the api's for motor start as well in the main code ...but after downloading it into nucleo..i cant see any pwm signals on the respective pins of nucleo ...?(assume me i'm completely new to this thing)
Solved! Go to Solution.
2025-03-28 11:59 PM
C7_30(PA1) is driven higher voltage than 0.6 by C8_2 .
After removing the connection between C8_2 and C7_30 , the vbus sensing works fine and 0.6v is given to PA1 and motor pilot reads it as 12v.
CAN YOU @GMA VERIFY AT YOUR END AS WELL .
2025-03-11 1:42 AM
Hello @hyden_a_mist,
Once both cores, CM4 and CM7 compiled and flashed, did you try resetting the board by pushing "RESET" button and starting the board by pushing blue "USER" start button?
You can also use ST Motor Pilot tool to drive the board and have board status.
2025-03-11 2:40 AM
yes i tried that...i flashed cm4 and cm7 again...and still no pwm signal is generated on the respective pins(i probed through logic analyser) ...is there any led like d11 should glow in ihm07m1, if everythig is proper...and one more thing is ld3 on nucleo turns red sometimes...if i make the connection of st -morpho little stronger it goes away...
2025-03-11 4:21 AM
This is the error that pops up when i try to start the motor using motor pilot
2025-03-11 5:54 AM
Hello @hyden_a_mist,
At generation step, you have the following message, SB80 and SB84 have to be removed:
On Pilot GUI, VBUS exceeds 20V and your motor is a 12V. Temperature is also wrong.
As soon an error is reported, it will prevent PWM generation.
2025-03-11 11:11 PM
Actually i probed the vbus its just 1.5v(PA1) , but in the pilot its measuring as 29v .....And i have removed the sb80 and sb84 before hand..
2025-03-12 12:10 AM
seems like pe15 pa4 pe8 all are reversed , eventhough it's mentioned as SB's mentioned in bold are default...but in the board both conditions are reversed ...can you verify that..?
2025-03-13 5:54 AM
Hello @hyden_a_mist,
You are right for the documentation, thanks for the reporting. By default, in current use case, BKIN1 is used and connected to PA6, and BKIN2/DAC/TIM1_CHIN signals are not used.
Could you share your project (at least .stwb6 and .ioc files) to reproduce your used case?
2025-03-19 10:48 PM
2025-03-20 8:39 AM
Hello @hyden_a_mist,
On "projects\my_motor\CM4\Src\main.c" file, ADC resolution is missing:
static void MX_ADC3_Init(void)
{
...
ADC_ChannelConfTypeDef sConfig = {0};
...
/** Common config
*/
hadc3.Instance = ADC3;
hadc3.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV1;
hadc3.Init.Resolution = ADC_RESOLUTION_14B; /* Missing ADC resolution setting */
hadc3.Init.ScanConvMode = ADC_SCAN_DISABLE;
hadc3.Init.EOCSelection = ADC_EOC_SINGLE_CONV;
hadc3.Init.LowPowerAutoWait = DISABLE;
Not visible using STM32CubeMX 6.14.
Could you add this missing setting, and check behavior?