You are here

swap PWM H and PWM L Pins on STM32F4

4 posts / 0 new
Last post
Urs_Harry
Offline
Last seen: 1 month 2 weeks ago
VESC Free
Joined: 2021-02-27 18:42
Posts: 6
swap PWM H and PWM L Pins on STM32F4

Hi, let's say someone (maybe me) made their own VESC based hardware and was so dumb to mess up the pins from the stm32 to the gate driver... so now STM-L -> GateDriver-H and STM-H -> GateDriver-L same for phase U ,V and W.

I don't want to make a new PCB if there is a chance to swap the pins in software or maybe it's sufficient to change the ADC timer from Up to down Count ? 

 

 

thanks : Harry

 

 

skyline1970
Offline
Last seen: 5 months 2 weeks ago
VESC Free
Joined: 2017-09-07 22:28
Posts: 232

It was not advised but it could work without changing pins.

You may change the pin assightments in hw config files.

Urs_Harry
Offline
Last seen: 1 month 2 weeks ago
VESC Free
Joined: 2021-02-27 18:42
Posts: 6

what would only change Pins like V sense and Current sense

skyline1970
Offline
Last seen: 5 months 2 weeks ago
VESC Free
Joined: 2017-09-07 22:28
Posts: 232

Just look inside hwconfig as a ref. Example palta..h