-
Notifications
You must be signed in to change notification settings - Fork 2k
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/nucleo144-f413 add inital support #6565
Conversation
OpenOCD patch is here http://openocd.zylin.com/#/c/3969/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments. I can't test on hardware. @kYc0o do you have this one in your office for testing ?
@@ -0,0 +1,33 @@ | |||
/* | |||
* Copyright (C) 2016 Inria |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2017, OTAKeys with Inria ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I didn't change the code from you PR, I didn't think about the copyright. Addressed
* @file | ||
* @brief Board specific implementations for the nucleo144-f413 board | ||
* | ||
* @author Alexandre Abadie <alexandre.abadie@inria.fr> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can add yourself in the list .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed
@@ -0,0 +1,79 @@ | |||
/* | |||
* Copyright (C) 2016 Inria |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment and probably in other places.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addessed
@@ -0,0 +1,268 @@ | |||
/* | |||
* Copyright (C) 2016 Inria | |||
* Copyright (C) 2017 OTA keys S.A. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok :)
cpu/stm32f4/vectors.c
Outdated
@@ -108,6 +108,10 @@ WEAK_DEFAULT void isr_otg_hs_ep1_in(void); | |||
WEAK_DEFAULT void isr_otg_hs_wkup(void); | |||
WEAK_DEFAULT void isr_otg_hs(void); | |||
WEAK_DEFAULT void isr_dcmi(void); | |||
WEAK_DEFAULT void isr_can3_tx(void); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe protect with the same if defined as below or the build will fail for other boards (not sure).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed, and add a comment with the reference manual
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jenkins also reported trailing whitespaces in the cmsis file.
@@ -103,11 +105,20 @@ WEAK_DEFAULT void isr_dma2_stream7(void); | |||
WEAK_DEFAULT void isr_usart6(void); | |||
WEAK_DEFAULT void isr_i2c3_ev(void); | |||
WEAK_DEFAULT void isr_i2c3_er(void); | |||
#if defined(CPU_MODEL_STM32F413ZH) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Finally, I think the specific defined is not required. I tested it for another CPU (F0) and it still builds if the function is not used.
I don't know what's the best practice here. Maybe @haukepetersen can help ?
Cleaned up vendor header (remove trailing spaces) |
Looks good now. Can you squash the commits ? |
d8c8c7a
to
14b6ec4
Compare
Squashed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Un-tested ACK (surprisingly, I don't have this one ;) )
14b6ec4
to
fc24355
Compare
rebased |
Even if it's all green, I'm not sure if I should press the green button now : I prefer waiting for your OpenOCD patch to be merged first |
We will need the cpu support soon for our hardware, so I would like to have this merged if possible. |
I see. Can you verify that the documentation in the wiki is ok ? In particular, the "flashing" section. |
wiki looks OK |
then go ! |
This adds support for nucleo144-f413 (mainly imported from #6553) and support for stm32f413.
It needs a patched openOCD because the f413 is not correctly detected. I'll try to submit my patch upstream ASAP.