-
Notifications
You must be signed in to change notification settings - Fork 7.4k
boards: arm: add support for stm32f072b_disco board #5405
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
Conversation
shippable returns unstable with linking errors in some tests (e.g. tests/net/ieee802154/l2/test, tests/net/lib/mqtt_subscriber/test), because of small SRAM. I expected How should this be solved? |
For most of the smaller ram boards we've done something like the following in BOARD.yaml
See boards/arm/frdm_kl25z/frdm_kl25z.yaml as an example |
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.
One formatting issues
|
||
- Six LEDs: | ||
|
||
- LD1 (red/green) for USB communication |
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.
This sublist looks better when it's not indented so much, 4 spaces is sufficient. Otherwise the html that's generated has a vertical bar added on the left because it looks like a quoted text block.
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.
done
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.
actually I had to go down to 2 Spaces to remove the quote-bar.
fixup: |
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.
SoC STM32F072xB is being introduced as part of #5171 which should be close to merge.
I think you should wait it is merged and rebase on top of it.
Otherwise LGTM
Yep, I think also, you also should enable FLASH in the defconfig. Apart that, LGTM |
ee5b12f
to
f95e5fd
Compare
Can you rebase this? |
rebased onto #5171 that introduces stm32f072xb SoC. @superna9999 I removed FLASH from the documentation, since I didn't test it. |
recheck |
Codecov Report
@@ Coverage Diff @@
## master #5405 +/- ##
==========================================
- Coverage 54.37% 54.33% -0.05%
==========================================
Files 457 457
Lines 43298 43298
Branches 8302 8302
==========================================
- Hits 23545 23524 -21
- Misses 19614 19635 +21
Partials 139 139
Continue to review full report at Codecov.
|
Edit: Background: UART2 is not really usable on this board. Pinmuxing it to PA14/PA15 works sometimes, but interferes with programming/debugging port and PA2/PA3 are occupied by linear touch sensor. |
now that #5171 is merged this should be ready to get merged as well. @ydamigos can you please take a look at the SPI configuration through device tree? SPI_loopback test works, but I'm not familiar with dts, so I stay a little uncertain, if all is correct. I basically copied your work from 96b_carbon board and adjustet the dts.fixup file to use the SPI_FIFO versions instead. @superna9999 @erwango @dbkinder can you please take a look at it again? |
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.
LGTM. Some minor non blocking comments. I don't have the hardware to test it.
CONFIG_BUILD_TIMESTAMP=y | ||
CONFIG_SYS_LOG=y | ||
CONFIG_SPI=y | ||
CONFIG_SPI_LEGACY_API=n |
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.
It isn't needed. It defaults to n in arm/soc/st_stm32/common/Kconfig.defconfig.series when SPI and one SPI_x port are enabled.
CONFIG_SPI=y | ||
CONFIG_SPI_LEGACY_API=n | ||
CONFIG_SYS_LOG_SPI_LEVEL=1 | ||
CONFIG_SPI_STM32=y |
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.
It isn't needed. It defaults to y in arm/soc/st_stm32/common/Kconfig.defconfig.series when SPI and one SPI_x port are enabled.
CONFIG_SPI_LEGACY_API=n | ||
CONFIG_SYS_LOG_SPI_LEVEL=1 | ||
CONFIG_SPI_STM32=y | ||
CONFIG_SPI_STM32_INTERRUPT=y |
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.
It isn't needed. It defaults to y in boards Kconfig.defconfig when SPI is enabled.
CONFIG_SYS_LOG_SPI_LEVEL=1 | ||
CONFIG_SPI_STM32=y | ||
CONFIG_SPI_STM32_INTERRUPT=y | ||
CONFIG_SPI_1=y |
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.
It isn't needed. It defaults to y in boards Kconfig.defconfig when SPI is enabled.
@erwango @ydamigos what do you think of moving those changes to a seperate PR that cleans up the spi_loopback test?
|
@dwagenk It's fine with me. |
@dwagenk : Sure, go ahead |
I won't have time for a follow up pr for the spi_loopback test before monday, but would like to get this closed soon (it's been open quite some time). Can you merge it now anyhow, or at least the two first commits (without adding the board to spi_loopback test)? |
@dwagenk: Maybe you can just remove last commit. |
Adds pinmux defines to use I2C2 at PB10/PB11 for stm32f0-based boards. Needed for stm32f072b_disco board to use extension connector Signed-off-by: Daniel Wagenknecht <[email protected]>
Support the ST STM32F072B-DISCO discovery board with STM32F072RB SoC Signed-off-by: Daniel Wagenknecht <[email protected]>
I pushed an update and dropped the SPI patch so we can merge this board port |
@galak thanks! |
No description provided.