-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Add initial support for Silicon Labs EFM32PG-STK3402A board #7043
Add initial support for Silicon Labs EFM32PG-STK3402A board #7043
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7043 +/- ##
=======================================
Coverage 55.02% 55.02%
=======================================
Files 483 483
Lines 53977 53977
Branches 10480 10480
=======================================
Hits 29701 29701
Misses 20000 20000
Partials 4276 4276 Continue to review full report at Codecov.
|
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.
Thanks for providing the documentation. Here are some suggested edits for clarity and to fix some doc generation issues.
.. _efm32pg_stk3402a: | ||
|
||
EFM32PG-STK3402A | ||
############### |
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.
Title underlines need to be at least as long as the title. Add another #
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
- A physical UART connection which is relayed over interface USB Serial port. | ||
|
||
Flashing an application to EFM32PG-STK3402A | ||
---------------------------------------- |
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.
Title underling too short, add a few more ---
's
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
For more information about the EFM32PG SoC and EFM32PG-STK3402A board: | ||
|
||
- `EFM32PG Website`_ | ||
- `EFM32PG Datasheet`_ |
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.
These links are called EFM32PG12 Datasheet (and Reference Manual) at the bottom of the doc, so you're getting a reference error from the doc generation tools.
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
@@ -0,0 +1,168 @@ | |||
.. _efm32pg_stk3402a: | |||
|
|||
EFM32PG-STK3402A |
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.
Would a more friendly title be, "EFM32 Pearl Gecko Starter Kit" ?
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.
Overview | ||
******** | ||
|
||
The EFM32 Pearl Gecko Starter Kit EFM32PG-STK3402A contains a MCU from the |
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.
contains an MCU
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
- A USB connection to the host computer, which exposes a Mass Storage and a | ||
USB Serial Port. | ||
- A Serial Flash device, which implements the USB flash disk file storage. | ||
- A physical UART connection which is relayed over interface USB Serial port. |
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.
change to serial
(lowercase)
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
:goals: build | ||
|
||
Connect the EFM32PG-STK3402A to your host computer using the USB port and you | ||
should see a USB connection which exposes a Mass Storage (STK3402A) and 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.
change to a mass storage device
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
|
||
Connect the EFM32PG-STK3402A to your host computer using the USB port and you | ||
should see a USB connection which exposes a Mass Storage (STK3402A) and a | ||
USB Serial Port. Copy the generated zephyr.bin in the STK3402A drive. |
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.
change to serial port
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
should see a USB connection which exposes a Mass Storage (STK3402A) and a | ||
USB Serial Port. Copy the generated zephyr.bin in the STK3402A drive. | ||
|
||
Use for example a converter like FT232/CP2102 to connect to UART on the |
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.
Change to:
Use a USB-to-UART converter such as an FT232/CP2102 to connect to the UART on the
expansion header.
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
- Parity: None | ||
- Stop bits: 1 | ||
|
||
Reset the board and you should be able to see on the corresponding Serial Port |
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.
Change to:
Reset the board and you'll see the following message on the corresponding serial port
terminal session:
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
3ce5b06
to
74e0484
Compare
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.
Docs LGTM, thanks!
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.
Can you add a README per: http://docs.zephyrproject.org/contribute/contribute_non-apache.html
74e0484
to
0e37c1e
Compare
Ok, I edited the README. |
0e37c1e
to
1a87610
Compare
1a87610
to
db03f8e
Compare
This includes the Gecko HAL files for the EFM32PG12B SoCs Origin: Silicon Labs Gecko SDK URL: https://github.com/SiliconLabs/Gecko_SDK Version: v5.1.2 (SHA: 938464c68e6c3b2237388a692f767bb0767ec010) Purpose: Add support for Silicon Labs EXX32 SoCs License: Zlib Maintained-by: External Signed-off-by: Gil Benkö <gil.benkoe@pm.me>
This adds the paths of the necessary parts of the SDK to the build infrastructure files. Signed-off-by: Gil Benkö <gil.benkoe@pm.me>
The Silicon Labs EFM32 Pearl Gecko MCU includes: * Cortex-M4F core at 40MHz * up to 1024KB of flash and 256KB of RAM * multiple low power peripherals Ported from EFM32WG: https://www.silabs.com/documents/public/application-notes/an0918.0-efm32_to_efm32jgpg_migration_guide.pdf Signed-off-by: Gil Benkö <gil.benkoe@pm.me>
This ensures compatibility with Silicon Labs EXX32 MCU Series 1. Signed-off-by: Gil Benkö <gil.benkoe@pm.me>
This is copied from the UART driver. Signed-off-by: Gil Benkö <gil.benkoe@pm.me>
The EFM32 Pearl Gecko Starter Kit contains sensors and peripherals demonstrating the usage of the EFM32PG MCU family. This patch adds basic support for this board and is copied from EFM32WG-STK3800. Signed-off-by: Gil Benkö <gil.benkoe@pm.me>
db03f8e
to
f80029c
Compare
Because commit 2eb347b is already merged, please keep in mind to delete |
@GilBenkoe Are you working on this? |
@galak , it seems to me this PR is abandoned; @GilBenkoe , please, advice otherwise :) |
Once #9042 is merged, I will rebase and continue working on this. |
I cannot push to the branch that is reviewed here. I updated everything and tested it on the hardware. Should i create a new pull request with my branch or is there another possibility? |
As you prefer. If you close this PR is will be hard to follow-up the re-review on the new branch. |
@ioannisg I would prefer to continue here, but i get the following error message:
|
while in general I would agree, but since we can't push to GilBenkoe branch, lets just create a new PR and we can reference this one in that. |
Closing as this is replaced by #11065 |
MicroPython and the following samples were tested:
Most of the changes are taken from the EFM32WG-STK3800 board.