Page 1 of 1

STM32F407 - change pinout of driver

Posted: Tue Sep 17, 2013 8:45 am
by Adam
Hi,

first, I´am sorry of my question, I´m new in chibiOS and STM32.

Is possible to change a pin of OVER_CURRENT (USB - PD5) to another pin? If it is, how?

Thank you!

Adam

Re: STM32F407 - change pinout of driver

Posted: Tue Sep 17, 2013 9:13 am
by Giovanni
Hi,

The driver does not use that pin so you can assign it everywhere or even do not use it at all. If you decide to change that pin then you have too create custom board files (board.c, board.h, board.mk) for your custom board.

Giovanni

Re: STM32F407 - change pinout of driver

Posted: Tue Sep 17, 2013 5:37 pm
by tronicgr
So we can use the PD5 pin for an LCD screen for example without having to physically alter the STM32F4-Discovery board then?

Re: STM32F407 - change pinout of driver

Posted: Tue Sep 17, 2013 5:38 pm
by Giovanni
I think no because the pin is wired on the board, verify the schematic.

Giovanni

Re: STM32F407 - change pinout of driver

Posted: Tue Sep 17, 2013 7:58 pm
by resset
tronicgr wrote:So we can use the PD5 pin for an LCD screen for example without having to physically alter the STM32F4-Discovery board then?


You can, at least it works if you use it as an output: I use PD5 as WR line in 8080 16-bit display (FSMC_NWE).

Re: STM32F407 - change pinout of driver

Posted: Tue Sep 17, 2013 9:48 pm
by tronicgr
resset wrote:
tronicgr wrote:So we can use the PD5 pin for an LCD screen for example without having to physically alter the STM32F4-Discovery board then?


You can, at least it works if you use it as an output: I use PD5 as WR line in 8080 16-bit display (FSMC_NWE).


That's good news. I was wondering how people get FSMC work with LCDs on STM32F4-Discovery while the schematics show other devices connected on some of the bus pins.

Thanks!