cancel
Showing results for 
Search instead for 
Did you mean: 

Cant see the pwm from nucleo h755ziq

hyden_a_mist
Associate III

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)

1 ACCEPTED SOLUTION

Accepted Solutions

@GMA 

hyden_a_mist_0-1743231304995.png

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 .

View solution in original post

24 REPLIES 24
GMA
ST Employee

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.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA

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...

This is the error that pops up when i try to start the motor using motor pilot

hyden_a_mist_0-1741692071085.png

 

GMA
ST Employee

Hello @hyden_a_mist,

At generation step, you have the following message, SB80 and SB84 have to be removed:

GMA_0-1741697380535.png

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.

 

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA

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..

 

hyden_a_mist_0-1741763025510.png

hyden_a_mist_1-1741763274941.png

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..?

 

 

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?

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA

Sorry for delay in response ,

I have zipped the entire project file and attached here ,since stwb6 file format is not supported to upload .

I request you guys to respond asap.

Thanks in advance .

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?

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA