Skip to content

STM32: Adds support for the stm32f746g_disco board #2794

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

Merged
merged 1 commit into from
Apr 24, 2020

Conversation

k0d
Copy link

@k0d k0d commented Apr 21, 2020

@hierophect Can you take a look at this and give your comments, specifically on the clocks.c changes. I'm not sure how you'd like to have this.

@k0d k0d marked this pull request as draft April 21, 2020 12:40
@hierophect
Copy link
Collaborator

The simplest solution here would be to simply default to 200MHz for the F746 overall, rather than the fastest possible speed for the chip, but that's a bit of a cop-out. I think another easy fix would be to have some #ifndef PLLQ_VALUE defaults for this file that can be overridden at the board level.

@tannewt do you have a preference here?

@hierophect
Copy link
Collaborator

Also, thank you for putting in the TFBGA216! That's a ton of work, much appreciated!

@hierophect
Copy link
Collaborator

hierophect commented Apr 23, 2020

I just realized on reviewing more closely that my suggestion is what your code already does - guess we were on the same wavelength.

@tannewt
Copy link
Member

tannewt commented Apr 23, 2020

Do you still need an answer from me? I'm not sure what the question was.

@k0d k0d force-pushed the ports_disco_f746zg branch from 45b5bc3 to 238f92f Compare April 23, 2020 19:22
@hierophect
Copy link
Collaborator

Do you still need an answer from me? I'm not sure what the question was.

@tannewt since you've been working with the clock files recently I was hoping for your input on including ifndef-mediated default values for the clock divisors (PLLM, PLLQ, etc) in each MCU line's clocks.c. These could then be overridden at the board level in the case that a board needs to suppress clock speed for a certain purpose (like external SRAM). Would this break anything for your low-power code or vision for encapsulation?

@k0d rebase looks good, I'll do a full review tomorrow but for now seems like CI is just failing due to the linker filename change.

@k0d
Copy link
Author

k0d commented Apr 23, 2020

@hierophect I'm going to look at this a bit more before I say it's ready from my side. I'd like to test more of the functionality first. I won't implement Audio/TFT/Ext.Flash/Ext.SDRAM in this PR though. I guess that's ok with you?

@hierophect
Copy link
Collaborator

@k0d we tend to go for shorter PRs most of the time, there are a lot of boards with major features missing - it makes the work available to others if they'd like to contribute as well. That policy often goes double for boards like the Discoveries since they could suck up a lot of time for features that we don't know the actual demand for.

@tannewt
Copy link
Member

tannewt commented Apr 23, 2020

Do you still need an answer from me? I'm not sure what the question was.

@tannewt since you've been working with the clock files recently I was hoping for your input on including ifndef-mediated default values for the clock divisors (PLLM, PLLQ, etc) in each MCU line's clocks.c. These could then be overridden at the board level in the case that a board needs to suppress clock speed for a certain purpose (like external SRAM). Would this break anything for your low-power code or vision for encapsulation?

I think ifndef defaults are totally fine. lower power is only impacted by the RTC config at this point. I'd start with this and we can adapt later if needed.

@hierophect
Copy link
Collaborator

Great. I may go ahead and add this feature for all ports at some point (probably once the low power code is in), since it's low effort and could add flexibility for other use cases we don't know of across all boards.

@k0d k0d force-pushed the ports_disco_f746zg branch from 238f92f to 950878e Compare April 24, 2020 13:53
@k0d k0d marked this pull request as ready for review April 24, 2020 14:03
@k0d
Copy link
Author

k0d commented Apr 24, 2020

@hierophect I've tested this a lot and feel that it's ready to go after a code-review.

hierophect
hierophect previously approved these changes Apr 24, 2020
Copy link
Collaborator

@hierophect hierophect left a comment

Choose a reason for hiding this comment

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

I had a couple of comments but they may not even need to be implemented, so I'm tagging this approved if it all looks good to you. We'll need to revisit board.c anyway after the low power stuff goes through. Overall this looks great, nice work.

@k0d
Copy link
Author

k0d commented Apr 24, 2020

I'm happy, the CI failed check doesn't matter, it was a GitHub timeout. Can you merge without me restarting the checks again? @hierophect

@hierophect hierophect merged commit b351e9b into adafruit:master Apr 24, 2020
@hierophect
Copy link
Collaborator

All set! thanks for the ping, and the PR!

@k0d k0d deleted the ports_disco_f746zg branch April 24, 2020 18:06
@hierophect hierophect added the stm label Apr 27, 2020
@hierophect hierophect changed the title adds support for the stm32f746g_disco board STM32: Adds support for the stm32f746g_disco board Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants