Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STM32 NUCLEO boards with Ethernet connector: solve conflict with D11 arduino pin #4272

Merged
merged 1 commit into from
May 15, 2017

Conversation

jeromecoutant
Copy link
Collaborator

Description

STM32 NUCLEO boards with Ethernet connector are:

  • NUCLEO_F207ZG
  • NUCLEO_F429ZI
  • NUCLEO_F746ZG
  • NUCLEO_F767ZI

If you are using Ethernet, and not SPI Arduino pins:
=> keep your board with the default configuration

If you are using SPI Arduino pins, and not Ethernet:
=> you should remove the JP6 bridge on the front side of the board

If you need SPI Arduino and Ethernet:
=> you have to patch the NUCLEO board on the back side: set solder bridge SB121 to off, and SB122 to on
=> D11 is no more connected to PA_7 but to PB_5
=> enable ETHERNET_SPI_D11_CONFLICT macro in mbed_app.json file

Status

READY

@0xc0170
Copy link
Contributor

0xc0170 commented May 5, 2017

Looks fine to me.

What about ETHERNET_SPI_D11_CONFLICT - is a macro not a config that an app can override??

The idea about config is that a target provides default config, in this case setting D11 to a default configuration. A user can easily find out the default configuration, read the description what it does, and overwrite it if needed.
In case of macros, they are hidden in the codebase, must be documented somewhere (do we have a place designated for this?) ?

Based on this, I would expect this as a target configuration.

…arduino pin

If you are using Ethernet, and not SPI Arduino pins:
=> keep your board with the default configuration

If you are using SPI Arduino pins, and not Ethernet:
=> you should remove the JP6 bridge on the front side of the board

If you need SPI Arduino and Ethernet:
=> you have to patch the NUCLEO board on the back side: set solder bridge SB121 to off, and SB122 to on
=> D11 is no more connected to PA_7 but to PB_5
=> overwrite d11_configuration config value in json file
@jeromecoutant
Copy link
Collaborator Author

Hi @0xc0170

Please, check the new commit
Target configuration is now used as discussed.

@0xc0170
Copy link
Contributor

0xc0170 commented May 10, 2017

@jeromecoutant Thanks for the update, LGTM

@0xc0170
Copy link
Contributor

0xc0170 commented May 10, 2017

/morph test

@mbed-bot
Copy link

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 176

All builds and test passed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants