STM32F407 - change pinout of driver

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
Adam
Posts: 18
Joined: Thu Sep 05, 2013 1:53 pm

STM32F407 - change pinout of driver

Post 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
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32F407 - change pinout of driver

Post 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
User avatar
tronicgr
Posts: 12
Joined: Thu Aug 08, 2013 8:50 pm

Re: STM32F407 - change pinout of driver

Post 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?
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32F407 - change pinout of driver

Post by Giovanni »

I think no because the pin is wired on the board, verify the schematic.

Giovanni
resset
Posts: 32
Joined: Thu Dec 20, 2012 11:57 pm
Has thanked: 2 times
Been thanked: 1 time

Re: STM32F407 - change pinout of driver

Post 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).
User avatar
tronicgr
Posts: 12
Joined: Thu Aug 08, 2013 8:50 pm

Re: STM32F407 - change pinout of driver

Post 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!
Post Reply