Skip to content

Conversation

LukasWoodtli
Copy link

@LukasWoodtli LukasWoodtli commented Jun 6, 2025

Support for the Silabs EFM32TG-STK3300 Starter Kit.

Board features:

  • EFM32TG840F32 MCU with 32 kB flash and 4 kB RAM
  • Advanced Energy Monitoring
  • Real-time, accurate energy and power profiling
  • Light, LC and touch sensors
  • 8 x 20 LCD
  • SEGGER J-Link debugger

Signed-off-by: Lukas Woodtli [email protected]

@LukasWoodtli
Copy link
Author

Depends on PR for support for EFM32TG in hal_silabs.

Copy link

github-actions bot commented Jun 6, 2025

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
hal_silabs zephyrproject-rtos/hal_silabs@65c7380 zephyrproject-rtos/hal_silabs#108 zephyrproject-rtos/hal_silabs#108/files

DNM label due to: 1 project with PR revision

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@github-actions github-actions bot added manifest manifest-hal_silabs DNM (manifest) This PR should not be merged (controlled by action-manifest) labels Jun 6, 2025
Copy link
Contributor

@nordicjm nordicjm left a comment

Choose a reason for hiding this comment

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

split into multiple commits (at least 2) i.e. one for soc, one for board

CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_GPIO=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=32000000
Copy link
Contributor

Choose a reason for hiding this comment

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

get from dts property using function, and it should be set in soc Kconfig.defconfig file, not by a board

Copy link
Author

Choose a reason for hiding this comment

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

This is the way other boards configure the clock cycles. It's also part of an example here: Board Porting Guide

Copy link
Contributor

Choose a reason for hiding this comment

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

that documentation is very outdated and needs to be fixed, but this also needs to be fixed, this Kconfig needs to come from a dts value and in the soc Kconfig.defconfig file

Copy link
Author

@LukasWoodtli LukasWoodtli Jun 29, 2025

Choose a reason for hiding this comment

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

I would rather have this changed in a different PR. It should be consistent for all board. And then the documentation should be updated accordingly.

Copy link
Contributor

Choose a reason for hiding this comment

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

nothing new to be added with the old style, so if the old style remains in this PR then this PR will remain nacked

@LukasWoodtli LukasWoodtli force-pushed the efm32tg_stk3300 branch 2 times, most recently from 741d978 to a24e5c4 Compare June 10, 2025 20:09
Copy link
Contributor

@jerome-pouiller jerome-pouiller left a comment

Choose a reason for hiding this comment

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

LGTM

@jhedberg
Copy link
Member

@LukasWoodtli is there a reason why you still want to keep this as a Draft PR?

Copy link


flash-controller@400c0000 {
flash0: flash@0 {
reg = <0 DT_SIZE_K(256)>;
Copy link
Contributor

Choose a reason for hiding this comment

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

From what I see here: https://www.silabs.com/documents/public/data-sheets/efm32tg-datasheet.pdf
Flash size is only 32 kB and ram size is 4kB

status = "disabled";
};

leuart1: leuart@40084400 { /* LEUART1 */
Copy link
Contributor

@Martinhoff-maker Martinhoff-maker Jul 10, 2025

Choose a reason for hiding this comment

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

usart1: usart@4000c400 { /* USART1 */
compatible = "silabs,gecko-usart";
reg = <0x4000c400 0x400>;
interrupts = <15 0>, <16 0>;
Copy link
Contributor

Choose a reason for hiding this comment

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

#address-cells = <1>;
#size-cells = <0>;
reg = <0x4000a000 0x400>;
interrupts = <9 0>;
Copy link
Contributor

Choose a reason for hiding this comment

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

i2c0 interrupt is 8.

gpio@40006100 {
compatible = "silabs,gecko-gpio";
reg = <0x40006100 0xf00>;
interrupts = <1 2 11 2>;
Copy link
Contributor

Choose a reason for hiding this comment

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

GPIO ODD interrupt is 9
btw I think the format should now more look like "<1 2>, <9 2>" ? but I don't know if there is a particularity for gpio.

Serial Port
===========

The EFM32TG SoC has two USARTs and two Low Energy UARTs (LEUART).
Copy link
Contributor

Choose a reason for hiding this comment

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

only one

Copy link

github-actions bot commented Sep 9, 2025

This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label Sep 9, 2025
* ARM Cortex-M3 processor
* Up to 32 kB Flash and 4 kB RAM memory
* Energy efficient and autonomous peripherals
* Ultra low power Energy Modes
* Fast wake-up

Signed-off-by: Lukas Woodtli <[email protected]>
Support for the Silabs EFM32TG-STK3300 Starter Kit.

Board features:

* EFM32TG840F32 MCU with 32 kB flash and 4 kB RAM
* Advanced Energy Monitoring
* Real-time, accurate energy and power profiling
* Light, LC and touch sensors
* 8 x 20 LCD
* SEGGER J-Link debugger

Signed-off-by: Lukas Woodtli <[email protected]>
Copy link

@github-actions github-actions bot removed the Stale label Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DNM (manifest) This PR should not be merged (controlled by action-manifest) manifest manifest-hal_silabs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants