STM32F407 - change pinout of driver

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

Moderators: barthess, RoccoMarco

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

STM32F407 - change pinout of driver

Postby Adam » Tue Sep 17, 2013 8:45 am

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: 13019
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 748 times
Been thanked: 621 times
Contact:

Re: STM32F407 - change pinout of driver

Postby Giovanni » Tue Sep 17, 2013 9:13 am

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
Location: San Diego, CA
Contact:

Re: STM32F407 - change pinout of driver

Postby tronicgr » Tue Sep 17, 2013 5:37 pm

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: 13019
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 748 times
Been thanked: 621 times
Contact:

Re: STM32F407 - change pinout of driver

Postby Giovanni » Tue Sep 17, 2013 5:38 pm

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

Giovanni

resset
Posts: 31
Joined: Thu Dec 20, 2012 11:57 pm
Location: Poland
Contact:

Re: STM32F407 - change pinout of driver

Postby resset » Tue Sep 17, 2013 7:58 pm

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
Location: San Diego, CA
Contact:

Re: STM32F407 - change pinout of driver

Postby tronicgr » Tue Sep 17, 2013 9:48 pm

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!


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 2 guests