Skip to content

Commit 420fa6b

Browse files
authored
Revert "Gecko SDK 4.4.6 (#89)" for stable (#107)
* Revert "Gecko SDK 4.4.6 (#89)" This reverts commit 18a0155. * Update OpenThread RCP firmware README
1 parent 22c111f commit 420fa6b

18 files changed

+55
-197
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ RUN \
5959
&& unzip -q -d simplicity_sdk_2024.6.2 simplicity_sdk_2024.6.2.zip \
6060
&& rm simplicity_sdk_2024.6.2.zip
6161

62-
# Gecko SDK 4.4.6
62+
# Gecko SDK 4.4.4
6363
RUN \
64-
curl -o gecko_sdk_4.4.6.zip -L https://github.com/SiliconLabs/gecko_sdk/releases/download/v4.4.6/gecko-sdk.zip \
65-
&& unzip -q -d gecko_sdk_4.4.6 gecko_sdk_4.4.6.zip \
66-
&& rm gecko_sdk_4.4.6.zip
64+
curl -o gecko_sdk_4.4.4.zip -L https://github.com/SiliconLabs/gecko_sdk/releases/download/v4.4.4/gecko-sdk.zip \
65+
&& unzip -q -d gecko_sdk_4.4.4 gecko_sdk_4.4.4.zip \
66+
&& rm gecko_sdk_4.4.4.zip
6767

6868
# ZCL Advanced Platform (ZAP) v2024.09.27
6969
RUN \

manifests/nabucasa/skyconnect_bootloader.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: SkyConnect Bootloader
22
device: EFR32MG21A020F512IM32
33
base_project: src/bootloader
44
filename: "{manifest_name}_{gecko_bootloader_version}"
5-
sdk: "gecko_sdk:4.4.6"
5+
sdk: "gecko_sdk:4.4.4"
66
toolchain: "12.2.1.20221205"
77

88
gbl:

manifests/nabucasa/skyconnect_openthread_rcp.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: SkyConnect OpenThread RCP
22
device: EFR32MG21A020F512IM32
33
base_project: src/openthread_rcp
44
filename: "{manifest_name}_{ot_rcp_version.split('/')[-1]}_gsdk_{sdk_version}"
5-
sdk: "gecko_sdk:4.4.6"
5+
sdk: "gecko_sdk:4.4.4"
66
toolchain: "12.2.1.20221205"
77

88
gbl:

manifests/nabucasa/skyconnect_zigbee_ncp.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: SkyConnect Zigbee
22
device: EFR32MG21A020F512IM32
33
base_project: src/zigbee_ncp
44
filename: "{manifest_name}_{ezsp_version}"
5-
sdk: "gecko_sdk:4.4.6"
5+
sdk: "gecko_sdk:4.4.4"
66
toolchain: "12.2.1.20221205"
77

88
gbl:

manifests/nabucasa/yellow_bootloader.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Yellow Bootloader
22
device: MGM210PA32JIA
33
base_project: src/bootloader
44
filename: "{manifest_name}_{gecko_bootloader_version}"
5-
sdk: "gecko_sdk:4.4.6"
5+
sdk: "gecko_sdk:4.4.4"
66
toolchain: "12.2.1.20221205"
77

88
gbl:

manifests/nabucasa/yellow_openthread_rcp.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Yellow OpenThread RCP
22
device: MGM210PA32JIA
33
base_project: src/openthread_rcp
44
filename: "{manifest_name}_{ot_rcp_version.split('/')[-1]}_gsdk_{sdk_version}"
5-
sdk: "gecko_sdk:4.4.6"
5+
sdk: "gecko_sdk:4.4.4"
66
toolchain: "12.2.1.20221205"
77

88
gbl:

manifests/nabucasa/yellow_zigbee_ncp.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Yellow Zigbee
22
device: MGM210PA32JIA
33
base_project: src/zigbee_ncp
44
filename: "{manifest_name}_{ezsp_version}"
5-
sdk: "gecko_sdk:4.4.6"
5+
sdk: "gecko_sdk:4.4.4"
66
toolchain: "12.2.1.20221205"
77

88
gbl:

src/openthread_rcp/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# 2.4.6.0_GitHub-bdb394eb3
2+
Beta release built with Gecko SDK 4.4.6.
3+
4+
# SL-OPENTHREAD/2.4.4.0_GitHub-7074a43e4
25
Initial release with the new firmware builder. This firmware is identical to the firmware bundled with the OpenThread Border Router addon.

src/openthread_rcp/app.c

100644100755
Lines changed: 9 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*******************************************************************************
1+
/***************************************************************************//**
22
* @file
33
* @brief Core application logic.
44
*******************************************************************************
@@ -18,35 +18,24 @@
1818
#include <openthread-core-config.h>
1919
#include <openthread/config.h>
2020

21-
#include <openthread/diag.h>
2221
#include <openthread/ncp.h>
22+
#include <openthread/diag.h>
2323
#include <openthread/tasklet.h>
2424

25-
#include "app.h"
2625
#include "openthread-system.h"
26+
#include "app.h"
2727

2828
#include "reset_util.h"
2929

30-
#if OPENTHREAD_CONFIG_MULTIPAN_RCP_ENABLE
31-
#if OPENTHREAD_CONFIG_MULTIPLE_STATIC_INSTANCE_ENABLE == 0
32-
#error "Support for multiple OpenThread static instance is disabled."
33-
#endif
34-
otInstance *sInstances[OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM] = {NULL};
35-
#endif // OPENTHREAD_CONFIG_MULTIPAN_RCP_ENABLE
36-
3730
/**
3831
* This function initializes the NCP app.
3932
*
4033
* @param[in] aInstance The OpenThread instance structure.
4134
*
4235
*/
43-
#if OPENTHREAD_CONFIG_MULTIPAN_RCP_ENABLE
44-
extern void otAppNcpInitMulti(otInstance **aInstances, uint8_t aCount);
45-
#else
4636
extern void otAppNcpInit(otInstance *aInstance);
47-
#endif
4837

49-
static otInstance *sInstance = NULL;
38+
static otInstance* sInstance = NULL;
5039

5140
otInstance *otGetInstance(void)
5241
{
@@ -55,15 +44,7 @@ otInstance *otGetInstance(void)
5544

5645
void sl_ot_create_instance(void)
5746
{
58-
#if OPENTHREAD_CONFIG_MULTIPAN_RCP_ENABLE
59-
for (int i = 0; i < OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM; i++)
60-
{
61-
sInstances[i] = otInstanceInitMultiple(i);
62-
63-
assert(sInstances[i]);
64-
}
65-
sInstance = sInstances[0];
66-
#elif OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE && !OPENTHREAD_CONFIG_MULTIPAN_RCP_ENABLE
47+
#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE
6748
size_t otInstanceBufferLength = 0;
6849
uint8_t *otInstanceBuffer = NULL;
6950

@@ -84,14 +65,10 @@ void sl_ot_create_instance(void)
8465

8566
void sl_ot_ncp_init(void)
8667
{
87-
#if OPENTHREAD_CONFIG_MULTIPAN_RCP_ENABLE
88-
otAppNcpInitMulti(sInstances, OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM);
89-
#else
9068
otAppNcpInit(sInstance);
91-
#endif
9269
}
9370

94-
/******************************************************************************
71+
/**************************************************************************//**
9572
* Application Init.
9673
*****************************************************************************/
9774

@@ -100,7 +77,7 @@ void app_init(void)
10077
OT_SETUP_RESET_JUMP(argv);
10178
}
10279

103-
/******************************************************************************
80+
/**************************************************************************//**
10481
* Application Process Action.
10582
*****************************************************************************/
10683
void app_process_action(void)
@@ -109,13 +86,13 @@ void app_process_action(void)
10986
otSysProcessDrivers(sInstance);
11087
}
11188

112-
/******************************************************************************
89+
/**************************************************************************//**
11390
* Application Exit.
11491
*****************************************************************************/
11592
void app_exit(void)
11693
{
11794
otInstanceFinalize(sInstance);
118-
#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE && !OPENTHREAD_CONFIG_MULTIPAN_RCP_ENABLE
95+
#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE
11996
free(otInstanceBuffer);
12097
#endif
12198
// TO DO : pseudo reset?

src/openthread_rcp/app.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*******************************************************************************
1+
/***************************************************************************//**
22
* @file
33
* @brief Application interface provided to main().
44
*******************************************************************************
@@ -18,19 +18,19 @@
1818
#ifndef APP_H
1919
#define APP_H
2020

21-
/******************************************************************************
21+
/**************************************************************************//**
2222
* Application Init.
2323
*****************************************************************************/
2424
void app_init(void);
2525

26-
/******************************************************************************
26+
/**************************************************************************//**
2727
* Application Exit.
2828
*****************************************************************************/
2929
void app_exit(void);
3030

31-
/******************************************************************************
31+
/**************************************************************************//**
3232
* Application Process Action.
3333
*****************************************************************************/
3434
void app_process_action(void);
3535

36-
#endif
36+
#endif

src/openthread_rcp/main.c

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*******************************************************************************
1+
/***************************************************************************//**
22
* @file
33
* @brief main() function.
44
*******************************************************************************
@@ -14,9 +14,9 @@
1414
* sections of the MSLA applicable to Source Code.
1515
*
1616
******************************************************************************/
17-
#include "app.h"
1817
#include "sl_component_catalog.h"
1918
#include "sl_system_init.h"
19+
#include "app.h"
2020
#if defined(SL_CATALOG_POWER_MANAGER_PRESENT)
2121
#include "sl_power_manager.h"
2222
#endif // SL_CATALOG_POWER_MANAGER_PRESENT
@@ -28,34 +28,33 @@
2828

2929
int main(void)
3030
{
31-
// Initialize Silicon Labs device, system, service(s) and protocol stack(s).
32-
// Note that if the kernel is present, processing task(s) will be created by
33-
// this call.
34-
sl_system_init();
31+
// Initialize Silicon Labs device, system, service(s) and protocol stack(s).
32+
// Note that if the kernel is present, processing task(s) will be created by
33+
// this call.
34+
sl_system_init();
3535

36-
// Initialize the application. For example, create periodic timer(s) or
37-
// task(s) if the kernel is present.
38-
app_init();
36+
// Initialize the application. For example, create periodic timer(s) or
37+
// task(s) if the kernel is present.
38+
app_init();
3939

4040
#if defined(SL_CATALOG_KERNEL_PRESENT)
41-
// Start the kernel. Task(s) created in app_init() will start running.
42-
sl_system_kernel_start();
41+
// Start the kernel. Task(s) created in app_init() will start running.
42+
sl_system_kernel_start();
4343
#else // SL_CATALOG_KERNEL_PRESENT
44-
while (1)
45-
{
46-
// Do not remove this call: Silicon Labs components process action routine
47-
// must be called from the super loop.
48-
sl_system_process_action();
44+
while (1) {
45+
// Do not remove this call: Silicon Labs components process action routine
46+
// must be called from the super loop.
47+
sl_system_process_action();
4948

50-
// Application process.
51-
app_process_action();
49+
// Application process.
50+
app_process_action();
5251

5352
#if defined(SL_CATALOG_POWER_MANAGER_PRESENT)
54-
// Let the CPU go to sleep if the system allows it.
55-
sl_power_manager_sleep();
53+
// Let the CPU go to sleep if the system allows it.
54+
sl_power_manager_sleep();
5655
#endif
57-
}
58-
// Clean-up when exiting the application.
59-
app_exit();
56+
}
57+
// Clean-up when exiting the application.
58+
app_exit();
6059
#endif // SL_CATALOG_KERNEL_PRESENT
61-
}
60+
}

src/openthread_rcp/openthread_rcp.slcp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,6 @@ configuration:
4646
- name: BUFFER_SIZE_DOWN
4747
value: 0
4848
condition: [ot_rtt_log]
49-
- name: SL_UARTDRV_USART_VCOM_FLOW_CONTROL_TYPE
50-
value: uartdrvFlowControlHwUart
51-
condition: [uartdrv_usart]
52-
- name: SL_UARTDRV_EUSART_VCOM_FLOW_CONTROL_TYPE
53-
value: uartdrvFlowControlHwUart
54-
condition: [uartdrv_eusart]
5549

5650
filter:
5751
- name: "Wireless Technology"

src/openthread_rcp/reset_util.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
#if defined(OPENTHREAD_ENABLE_COVERAGE) && OPENTHREAD_ENABLE_COVERAGE && defined(__GNUC__)
3333
#if __GNUC__ >= 11 || (defined(__clang__) && (defined(__APPLE__) && (__clang_major__ >= 13)) || \
3434
(!defined(__APPLE__) && (__clang_major__ >= 12)))
35-
void __gcov_dump(void);
36-
void __gcov_reset(void);
35+
void __gcov_dump();
36+
void __gcov_reset();
3737

3838
static void flush_gcov(void)
3939
{

src/zigbee_ncp/config/zigbee_watchdog_periodic_refresh_config.h

Lines changed: 0 additions & 34 deletions
This file was deleted.

src/zigbee_ncp/main.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ void app_process_action(void)
4040
{
4141
}
4242

43-
#if defined(__ICCARM__)
44-
#pragma diag_suppress=Pe111
45-
#endif // defined(__ICCARM__)
4643
int main(void)
4744
{
4845
// Initialize Silicon Labs device, system, service(s) and protocol stack(s).

0 commit comments

Comments
 (0)