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

boards: Add support for Nucleo-f401 #4119

Merged
merged 1 commit into from
Nov 30, 2015

Conversation

latsku
Copy link
Contributor

@latsku latsku commented Oct 20, 2015

Hi,

This PR contains definitions for the nucleo-f401 board and the MCU (ST32F401). With 512kb flash and 96kb RAM this is nice development board for networking.

At the moment implemented peripherals are:

  • Two timers
  • UART
  • SPI

@PeterKietzmann PeterKietzmann added Platform: ARM Platform: This PR/issue effects ARM-based platforms Type: new feature The issue requests / The PR implemements a new feature for RIOT labels Oct 22, 2015
@PeterKietzmann PeterKietzmann added this to the Release NEXT MAJOR milestone Oct 22, 2015
@latsku
Copy link
Contributor Author

latsku commented Oct 26, 2015

@katezilla Ok, I just noticed that there was already PR on this exactly same board. #2601
Don't really understand how I missed that one.

Which one should we try to merge?

@katezilla
Copy link
Contributor

oh, well you just missed it, but i forgot it completly.
I would prefer your pr as the other seems frozen since may...
let me put up a comment on his and see if he plans to work on the comments at all

*/
#define LED_GREEN_PORT (GPIOA)
#define LED_GREEN_PIN (5)
/** @} */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also please add here LED_GPIO GPIO(PORT_A,5)

@latsku
Copy link
Contributor Author

latsku commented Nov 4, 2015

ping @katezilla

FEATURES_PROVIDED += periph_uart
FEATURES_PROVIDED += periph_gpio
FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_cpuid
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove periph_spi and periph_cpuid as these are not provided by your port.
My bad, I confused it, please ignore my comment.

@thomaseichinger thomaseichinger added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Nov 5, 2015
@latsku
Copy link
Contributor Author

latsku commented Nov 5, 2015

Travis fails qemu-i386 tests, everything else runs smoothly.

And I don't understand what happens with Strider. :)

@thomaseichinger
Copy link
Member

@latsku I kicked Travis. Strider builds are only included experimentally but decisions are based on Travis' outcome.
@katezilla Do you have any further comments on this?

@katezilla
Copy link
Contributor

@thomaseichinger just to be sure, did you test it? I were not able to test it yet

@thomaseichinger
Copy link
Member

@katezilla No I didn't, I don't have access to the hardware and won't for the next couple days either.

@latsku
Copy link
Contributor Author

latsku commented Nov 11, 2015

ping @katezilla @thomaseichinger No pressure, just keeping this active.

@OlegHahm
Copy link
Member

@thomaseichinger, @katezilla, ping.

@katezilla
Copy link
Contributor

Seems like, i don't have the Hardware either...

@PeterKietzmann
Copy link
Member

@katezilla you wanted to review the code without testing, because of our lack of hardware. Are you done with that, would you ACK? Then Thomas can check if it properly runs on hardware

@thomaseichinger
Copy link
Member

@PeterKietzmann @katezilla Checking the hardware stock, I don't have access to this board. If nobody else does, this will be eyes only review.

@katezilla
Copy link
Contributor

@PeterKietzmann yes im done reviewing.

@miri64
Copy link
Member

miri64 commented Nov 27, 2015

Was that an ACK then?

@katezilla
Copy link
Contributor

Yes, ACK from me.

#define SPI_0_DEV SPI1
#define SPI_0_CLKEN() (RCC->APB2ENR |= RCC_APB2ENR_SPI1EN)
#define SPI_0_CLKDIS() (RCC->APB2ENR &= ~RCC_APB2ENR_SPI1EN)
#define SPI_0_BUS_DIV 1 /* 1 -> SPI runs with half CPU clock, 0 -> quarter CPU clock */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@latsku Could you please change SPI to SPI bus in the comment?

@thomaseichinger
Copy link
Member

@latsku Two more minor comments.
@katezilla Merge when addressed and your ACK holds.

@latsku
Copy link
Contributor Author

latsku commented Nov 29, 2015

Fixed the comment and led initialization to turn off the leds on start. Previously turned on the led for debugging.
boards/nucleo-f401/board.c#56

@PeterKietzmann
Copy link
Member

@latsku please squash your commits to one commit that states the initial import of the boards (e.g. something like "board/nucleoXYZ: initial import" ). I will immediately merge after Travis agreed on it then

cpu: Add support for STM32F401xE cpu

boards: Add support for Nucleo-f401

boards/nucleo-f401: New line fixes and comment on green led pin

board/nucleo-f401: Added LED GPIO

board/nucleo-f401: Fixed LED GPIO

board/nucleo-f401: Minor fixes
@PeterKietzmann
Copy link
Member

and go

PeterKietzmann added a commit that referenced this pull request Nov 30, 2015
boards: Add support for Nucleo-f401
@PeterKietzmann PeterKietzmann merged commit 329820d into RIOT-OS:master Nov 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: ARM Platform: This PR/issue effects ARM-based platforms Type: new feature The issue requests / The PR implemements a new feature for RIOT
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants