zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.75k stars 6.56k forks source link

hal: silabs: Clarify best source for silabs hal files #22337

Closed chrta closed 1 year ago

chrta commented 4 years ago

Introduction

This issue should continue the discussion of https://github.com/zephyrproject-rtos/hal_silabs/pull/3 and collect all relevant information for this.

Problem description

It is not 100% clear where to pull the files from to update https://github.com/zephyrproject-rtos/hal_silabs There are multiple sources that have some pros and cons.

Also the version information about the contained files needs clarification.

The current flow is described in https://github.com/zephyrproject-rtos/hal_silabs/blob/master/gecko/README

Options for possible sources of the hal

  1. Use files downloaded by Simplicity Studio

    This is the current approach. For different families (EFM32 vs EFR32), different packages must be downloaded. That is currently not reflected in the documentation. The IDE Simplicity Studio must be installed to get the files. It would be better if these files would be available without any IDE, like the CMSIS packs. Older versions are available via this method.

  2. Use CMSIS packs, e.g. https://www.silabs.com/documents/public/cmsis-packs/SiliconLabs.GeckoPlatform_EFM32JG12B_DFP.2.7.0.pack

    This only contains the CMSIS files, not the required emlib. Also only the most up to date version is available per device.

Things that should be solved in this issues are:

Proposed change

To be discussed in this issue.

chrta commented 4 years ago

@conq Can you comment here or get someone from SiLabs involved to help answering the above questions?

carlescufi commented 4 years ago

CC @rettichschnidi

chrta commented 4 years ago

Information regarding Simplicity Studio and its SDKs: For my installation this is shown: gecko_sdk_selection

There is a "Gecko SDK Suite" version 2.7.1. The "32-Bit MCU SDK" has version 5.9.1.0. The "Flex SDK" has Version 2.7.1.0. All of these files are stored in the folder .../gecko_sdk_suite/v2.7

I never installed "Gecko SDK Suite" directly, so i assume that both "32-Bit MCU SDK" and "Flex SDK" depend on this package.

So i think for version information the version of the "Gecko SDK Suite" should be used instead of the version of the "32-Bit MCU SDK".

stevew817 commented 4 years ago

I'll try to answer here considering @conq is on leave for a while.

mnkp commented 4 years ago

Thanks for the clarification. The current version of SiLabs hal Zephyr is using (CMSIS device headers + emlib) is quite outdated. I was planning to bring it up to date and about to ask if it's already available outside of Simplicity Studio.

I will use Simplicity Studio SDK for now. However, if the files will be published as CMSIS packs or in some other way it would be great to hear the news.

nashif commented 1 year ago

stale.