From eb3d33441571bc77cdd7542b37f19df75f1dc522 Mon Sep 17 00:00:00 2001 From: puddly <32534428+puddly@users.noreply.github.com> Date: Wed, 25 Sep 2024 16:39:53 -0400 Subject: [PATCH] Drop firmware eraser --- .../nabucasa/skyconnect_firmware-eraser.yaml | 6 - misc/firmware-eraser/.cproject | 2757 ----------------- misc/firmware-eraser/app.cpp | 44 - misc/firmware-eraser/app.h | 31 - .../config/app_properties_config.h | 65 - .../config/btl_interface_cfg.h | 48 - .../config/btl_interface_cfg_s2c1.h | 281 -- .../config/emlib_core_debug_config.h | 45 - misc/firmware-eraser/config/pin_config.h | 141 - .../config/sl_board_control_config.h | 56 - .../config/sl_debug_swo_config.h | 106 - .../config/sl_device_init_emu_config.h | 53 - .../config/sl_device_init_hfrco_config.h | 57 - .../config/sl_device_init_hfxo_config.h | 57 - .../config/sl_device_init_lfxo_config.h | 93 - .../firmware-eraser/config/sl_memory_config.h | 28 - misc/firmware-eraser/firmware-eraser.pintool | 10 - misc/firmware-eraser/firmware-eraser.slcp | 41 - misc/firmware-eraser/firmware-eraser.slps | 17 - misc/firmware-eraser/gbl_metadata.yaml | 1 - misc/firmware-eraser/main.cpp | 58 - 21 files changed, 3995 deletions(-) delete mode 100644 manifests/nabucasa/skyconnect_firmware-eraser.yaml delete mode 100644 misc/firmware-eraser/.cproject delete mode 100644 misc/firmware-eraser/app.cpp delete mode 100644 misc/firmware-eraser/app.h delete mode 100644 misc/firmware-eraser/config/app_properties_config.h delete mode 100644 misc/firmware-eraser/config/btl_interface_cfg.h delete mode 100644 misc/firmware-eraser/config/btl_interface_cfg_s2c1.h delete mode 100644 misc/firmware-eraser/config/emlib_core_debug_config.h delete mode 100644 misc/firmware-eraser/config/pin_config.h delete mode 100644 misc/firmware-eraser/config/sl_board_control_config.h delete mode 100644 misc/firmware-eraser/config/sl_debug_swo_config.h delete mode 100644 misc/firmware-eraser/config/sl_device_init_emu_config.h delete mode 100644 misc/firmware-eraser/config/sl_device_init_hfrco_config.h delete mode 100644 misc/firmware-eraser/config/sl_device_init_hfxo_config.h delete mode 100644 misc/firmware-eraser/config/sl_device_init_lfxo_config.h delete mode 100644 misc/firmware-eraser/config/sl_memory_config.h delete mode 100644 misc/firmware-eraser/firmware-eraser.pintool delete mode 100644 misc/firmware-eraser/firmware-eraser.slcp delete mode 100644 misc/firmware-eraser/firmware-eraser.slps delete mode 100644 misc/firmware-eraser/gbl_metadata.yaml delete mode 100644 misc/firmware-eraser/main.cpp diff --git a/manifests/nabucasa/skyconnect_firmware-eraser.yaml b/manifests/nabucasa/skyconnect_firmware-eraser.yaml deleted file mode 100644 index 9feb8a14..00000000 --- a/manifests/nabucasa/skyconnect_firmware-eraser.yaml +++ /dev/null @@ -1,6 +0,0 @@ -name: SkyConnect Firmware Eraser -device: EFR32MG21A020F512IM32 -base_project: misc/firmware-eraser -filename: "{manifest_name}_gsdk_{sdk_version}" - -gbl: {} diff --git a/misc/firmware-eraser/.cproject b/misc/firmware-eraser/.cproject deleted file mode 100644 index 54a97c22..00000000 --- a/misc/firmware-eraser/.cproject +++ /dev/null @@ -1,2757 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/misc/firmware-eraser/app.cpp b/misc/firmware-eraser/app.cpp deleted file mode 100644 index 55706027..00000000 --- a/misc/firmware-eraser/app.cpp +++ /dev/null @@ -1,44 +0,0 @@ -#include - -#include -#include - -#include - - -// TODO: figure out how to actually include this properly -void bootloader_rebootAndInstall(void) -{ - // Set reset reason to bootloader entry - BootloaderResetCause_t* resetCause = (BootloaderResetCause_t*) (SRAM_BASE); - resetCause->reason = BOOTLOADER_RESET_REASON_BADAPP; - resetCause->signature = BOOTLOADER_RESET_SIGNATURE_INVALID; -#if defined(RMU_PRESENT) - // Clear resetcause - RMU->CMD = RMU_CMD_RCCLR; - // Trigger a software system reset - RMU->CTRL = (RMU->CTRL & ~_RMU_CTRL_SYSRMODE_MASK) | RMU_CTRL_SYSRMODE_FULL; -#endif - NVIC_SystemReset(); -} - -/***************************************************************************//** - * Initialize application. - ******************************************************************************/ -void app_init(void) -{ - // This will set the program counter (startOfAppSpace + 4) to 0xFFFFFFFF, which - // breaks the bootloader early with `BOOTLOADER_RESET_REASON_BADAPP`. - MSC_Init(); - MSC_ErasePage((uint32_t*)BTL_APPLICATION_BASE); - MSC_Deinit(); - - bootloader_rebootAndInstall(); -} - -/***************************************************************************//** - * App ticking function. - ******************************************************************************/ -void app_process_action(void) -{ -} diff --git a/misc/firmware-eraser/app.h b/misc/firmware-eraser/app.h deleted file mode 100644 index b8f74c81..00000000 --- a/misc/firmware-eraser/app.h +++ /dev/null @@ -1,31 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Top level application functions - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * The licensor of this software is Silicon Laboratories Inc. Your use of this - * software is governed by the terms of Silicon Labs Master Software License - * Agreement (MSLA) available at - * www.silabs.com/about-us/legal/master-software-license-agreement. This - * software is distributed to you in Source Code format and is governed by the - * sections of the MSLA applicable to Source Code. - * - ******************************************************************************/ - -#ifndef APP_H -#define APP_H - -/***************************************************************************//** - * Initialize application. - ******************************************************************************/ -void app_init(void); - -/***************************************************************************//** - * App ticking function. - ******************************************************************************/ -void app_process_action(void); - -#endif // APP_H diff --git a/misc/firmware-eraser/config/app_properties_config.h b/misc/firmware-eraser/config/app_properties_config.h deleted file mode 100644 index 792f1c8f..00000000 --- a/misc/firmware-eraser/config/app_properties_config.h +++ /dev/null @@ -1,65 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Application Properties Header File - ******************************************************************************* - * # License - * Copyright 2021 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * SPDX-License-Identifier: Zlib - * - * The licensor of this software is Silicon Laboratories Inc. - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event will the authors be held liable for any damages - * arising from the use of this software. - * - * Permission is granted to anyone to use this software for any purpose, - * including commercial applications, and to alter it and redistribute it - * freely, subject to the following restrictions: - * - * 1. The origin of this software must not be misrepresented; you must not - * claim that you wrote the original software. If you use this software - * in a product, an acknowledgment in the product documentation would be - * appreciated but is not required. - * 2. Altered source versions must be plainly marked as such, and must not be - * misrepresented as being the original software. - * 3. This notice may not be removed or altered from any source distribution. - * - ******************************************************************************/ - -#ifndef APP_PROPERTIES_CONFIG_H -#define APP_PROPERTIES_CONFIG_H - -#include "sl_application_type.h" - -// <<< Use Configuration Wizard in Context Menu >>> - -// App Properties settings - -// Type of signature this application is signed with -// Default: APPLICATION_SIGNATURE_NONE(0) -#define SL_APPLICATION_SIGNATURE 0 - -// Location of the signature -// Default: 0xFFFFFFFF -#define SL_APPLICATION_SIGNATURE_LOCATION 0xFFFFFFFF - -// Bitfield representing type of application -#define SL_APPLICATION_TYPE APPLICATION_TYPE - -// Version number for this application -// <0-4294967295:1> -// Default: 1 [0-4294967295] -#define SL_APPLICATION_VERSION 1 - -// Capabilities of this application -// Default: 0 -#define SL_APPLICATION_CAPABILITIES 0 - -//Product ID of the device for which the application is built -#define SL_APPLICATION_PRODUCT_ID { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF } - -// - -#endif // APP_PROPERTIES_CONFIG_H \ No newline at end of file diff --git a/misc/firmware-eraser/config/btl_interface_cfg.h b/misc/firmware-eraser/config/btl_interface_cfg.h deleted file mode 100644 index 13e09116..00000000 --- a/misc/firmware-eraser/config/btl_interface_cfg.h +++ /dev/null @@ -1,48 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Configuration header of Bootloader Interface - ******************************************************************************* - * # License - * Copyright 2021 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * The licensor of this software is Silicon Laboratories Inc. Your use of this - * software is governed by the terms of Silicon Labs Master Software License - * Agreement (MSLA) available at - * www.silabs.com/about-us/legal/master-software-license-agreement. This - * software is distributed to you in Source Code format and is governed by the - * sections of the MSLA applicable to Source Code. - * - ******************************************************************************/ -#ifndef BTL_INTERFACE_CFG_H -#define BTL_INTERFACE_CFG_H - -#if !defined(BOOTLOADER_APPLOADER) - -#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_1) -#include "btl_interface_cfg_s2c1.h" -#endif - -#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_2) -#include "btl_interface_cfg_s2c2.h" -#endif - -#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_3) -#include "btl_interface_cfg_s2c3.h" -#endif - -#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_4) -#include "btl_interface_cfg_s2c4.h" -#endif - -#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_5) -#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 -#endif - -#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_8) -#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 -#endif - -#endif // !BOOTLOADER_APPLOADER - -#endif // BTL_INTERFACE_CFG_H \ No newline at end of file diff --git a/misc/firmware-eraser/config/btl_interface_cfg_s2c1.h b/misc/firmware-eraser/config/btl_interface_cfg_s2c1.h deleted file mode 100644 index 7f703143..00000000 --- a/misc/firmware-eraser/config/btl_interface_cfg_s2c1.h +++ /dev/null @@ -1,281 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Configuration header of Bootloader Interface - ******************************************************************************* - * # License - * Copyright 2021 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * The licensor of this software is Silicon Laboratories Inc. Your use of this - * software is governed by the terms of Silicon Labs Master Software License - * Agreement (MSLA) available at - * www.silabs.com/about-us/legal/master-software-license-agreement. This - * software is distributed to you in Source Code format and is governed by the - * sections of the MSLA applicable to Source Code. - * - ******************************************************************************/ -#ifndef BTL_INTERFACE_CFG_S2C1_H -#define BTL_INTERFACE_CFG_S2C1_H - -// <<< Use Configuration Wizard in Context Menu >>> -// Bootloader Interface Trust Zone Security State Configuration - -// Disable multi tiered fallback logic -// The fault handling logic as well as the USART auto-detection logic will be disabled. -// The re-configuration of SMU will be handled by querying the running bootloader -// for the peripheral list. Querying the peripheral list is supported from the bootloader -// version 2.0.0. Check for the BOOTLOADER_CAPABILITY_PERIPHERAL_LIST capability to -// see if the running bootloader supports querying the peripheral list. -#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 0 - -// Disable peripheral access fault handling -// The fault handling triggered by an erroneous access of peripherals will be disabled. -// -// This should be disabled iff all the peripherals that are in use by the bootloader -// have been properly configured by the "Manually override security state of peripherals" option. -#define BOOTLOADER_DISABLE_NVM3_FAULT_HANDLING 0 - -// Manually override the security state of peripherals in use by the bootloader -// Default: 0. -// Manually override the security state of peripherals. Choose the peripherals touched -// by the customized code to have a valid secure access state before interacting with the bootloader -// In practice, this means that the chosen peripherals will be available at the secure address, -// which is accessible by the bootloader. Once the application is entered back the secure access state -// is changed back to the original state. -// -// The USART auto-detection logic that detects which, if any, USART is in use by the bootloader -// will be disabled. Make sure to choose the correct USART used by the bootloader. -#define BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE 0 -// EMU -// Update secure access state of EMU before calling into bootloader -#define BOOTLOADER_PPUSATD0_EMU 0 - -// CMU -// Update secure access state of CMU before calling into bootloader -#define BOOTLOADER_PPUSATD0_CMU 0 - -// HFXO0 -// Update secure access state of HFXO0 before calling into bootloader -#define BOOTLOADER_PPUSATD0_HFXO0 0 - -// HFRCO0 -// Update secure access state of HFRCO0 before calling into bootloader -#define BOOTLOADER_PPUSATD0_HFRCO0 0 - -// FSRCO -// Update secure access state of FSRCO before calling into bootloader -#define BOOTLOADER_PPUSATD0_FSRCO 0 - -// DPLL0 -// Update secure access state of DPLL0 before calling into bootloader -#define BOOTLOADER_PPUSATD0_DPLL0 0 - -// LFXO -// Update secure access state of LFXO before calling into bootloader -#define BOOTLOADER_PPUSATD0_LFXO 0 - -// LFRCO -// Update secure access state of LFRCO before calling into bootloader -#define BOOTLOADER_PPUSATD0_LFRCO 0 - -// ULFRCO -// Update secure access state of ULFRCO before calling into bootloader -#define BOOTLOADER_PPUSATD0_ULFRCO 0 - -// MSC -// Update secure access state of MSC before calling into bootloader -#define BOOTLOADER_PPUSATD0_MSC 0 - -// ICACHE0 -// Update secure access state of ICACHE0 before calling into bootloader -#define BOOTLOADER_PPUSATD0_ICACHE0 0 - -// PRS -// Update secure access state of PRS before calling into bootloader -#define BOOTLOADER_PPUSATD0_PRS 0 - -// GPIO -// Update secure access state of GPIO before calling into bootloader -#define BOOTLOADER_PPUSATD0_GPIO 0 - -// LDMA -// Update secure access state of LDMA before calling into bootloader -#define BOOTLOADER_PPUSATD0_LDMA 0 - -// LDMAXBAR -// Update secure access state of LDMAXBAR before calling into bootloader -#define BOOTLOADER_PPUSATD0_LDMAXBAR 0 - -// TIMER0 -// Update secure access state of TIMER0 before calling into bootloader -#define BOOTLOADER_PPUSATD0_TIMER0 0 - -// TIMER1 -// Update secure access state of TIMER1 before calling into bootloader -#define BOOTLOADER_PPUSATD0_TIMER1 0 - -// TIMER2 -// Update secure access state of TIMER2 before calling into bootloader -#define BOOTLOADER_PPUSATD0_TIMER2 0 - -// TIMER3 -// Update secure access state of TIMER3 before calling into bootloader -#define BOOTLOADER_PPUSATD0_TIMER3 0 - -// USART0 -// Update secure access state of USART0 before calling into bootloader -#define BOOTLOADER_PPUSATD0_USART0 0 - -// USART1 -// Update secure access state of USART1 before calling into bootloader -#define BOOTLOADER_PPUSATD0_USART1 0 - -// USART2 -// Update secure access state of USART2 before calling into bootloader -#define BOOTLOADER_PPUSATD0_USART2 0 - -// BURTC -// Update secure access state of BURTC before calling into bootloader -#define BOOTLOADER_PPUSATD0_BURTC 0 - -// I2C1 -// Update secure access state of I2C1 before calling into bootloader -#define BOOTLOADER_PPUSATD0_I2C1 0 - -// CHIPTESTCTRL -// Update secure access state of CHIPTESTCTRL before calling into bootloader -#define BOOTLOADER_PPUSATD0_CHIPTESTCTRL 0 - -// LVGD -// Update secure access state of LVGD before calling into bootloader -#define BOOTLOADER_PPUSATD0_LVGD 0 - -// SYSCFG -// Update secure access state of SYSCFG before calling into bootloader -#define BOOTLOADER_PPUSATD0_SYSCFG 0 - -// BURAM -// Update secure access state of BURAM before calling into bootloader -#define BOOTLOADER_PPUSATD0_BURAM 0 - -// IFADCDEBUG -// Update secure access state of IFADCDEBUG before calling into bootloader -#define BOOTLOADER_PPUSATD0_IFADCDEBUG 0 - -// GPCRC -// Update secure access state of GPCRC before calling into bootloader -#define BOOTLOADER_PPUSATD0_GPCRC 0 - -// RTCC -// Update secure access state of RTCC before calling into bootloader -#define BOOTLOADER_PPUSATD0_RTCC 0 - -// LETIMER0 -// Update secure access state of LETIMER0 before calling into bootloader -#define BOOTLOADER_PPUSATD1_LETIMER0 0 - -// IADC0 -// Update secure access state of IADC0 before calling into bootloader -#define BOOTLOADER_PPUSATD1_IADC0 0 - -// ACMP0 -// Update secure access state of ACMP0 before calling into bootloader -#define BOOTLOADER_PPUSATD1_ACMP0 0 - -// ACMP1 -// Update secure access state of ACMP1 before calling into bootloader -#define BOOTLOADER_PPUSATD1_ACMP1 0 - -// I2C0 -// Update secure access state of I2C0 before calling into bootloader -#define BOOTLOADER_PPUSATD1_I2C0 0 - -// HFRCOEM23 -// Update secure access state of HFRCOEM23 before calling into bootloader -#define BOOTLOADER_PPUSATD1_HFRCOEM23 0 - -// WDOG0 -// Update secure access state of WDOG0 before calling into bootloader -#define BOOTLOADER_PPUSATD1_WDOG0 0 - -// WDOG1 -// Update secure access state of WDOG1 before calling into bootloader -#define BOOTLOADER_PPUSATD1_WDOG1 0 - -// AMUXCP0 -// Update secure access state of AMUXCP0 before calling into bootloader -#define BOOTLOADER_PPUSATD1_AMUXCP0 0 - -// RADIOAES -// Update secure access state of RADIOAES before calling into bootloader -#define BOOTLOADER_PPUSATD1_RADIOAES 0 - -// BUFC -// Update secure access state of BUFC before calling into bootloader -#define BOOTLOADER_PPUSATD1_BUFC 0 - -// SMU -// Update secure access state of SMU before calling into bootloader -#define BOOTLOADER_PPUSATD1_SMU 0 - -// AHBRADIO -// Update secure access state of AHBRADIO before calling into bootloader -#define BOOTLOADER_PPUSATD1_AHBRADIO 0 - -// SEMAILBOX -// Update secure access state of SEMAILBOX before calling into bootloader -#define BOOTLOADER_PPUSATD1_SEMAILBOX 0 -// - -// -// <<< end of configuration section >>> - -#if BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE == 1 -#define BOOTLOADER_PPUSATD0_MASK ((BOOTLOADER_PPUSATD0_EMU << _SMU_PPUSATD0_EMU_SHIFT) \ - | (BOOTLOADER_PPUSATD0_CMU << _SMU_PPUSATD0_CMU_SHIFT) \ - | (BOOTLOADER_PPUSATD0_HFXO0 << _SMU_PPUSATD0_HFXO0_SHIFT) \ - | (BOOTLOADER_PPUSATD0_HFRCO0 << _SMU_PPUSATD0_HFRCO0_SHIFT) \ - | (BOOTLOADER_PPUSATD0_FSRCO << _SMU_PPUSATD0_FSRCO_SHIFT) \ - | (BOOTLOADER_PPUSATD0_DPLL0 << _SMU_PPUSATD0_DPLL0_SHIFT) \ - | (BOOTLOADER_PPUSATD0_LFXO << _SMU_PPUSATD0_LFXO_SHIFT) \ - | (BOOTLOADER_PPUSATD0_LFRCO << _SMU_PPUSATD0_LFRCO_SHIFT) \ - | (BOOTLOADER_PPUSATD0_ULFRCO << _SMU_PPUSATD0_ULFRCO_SHIFT) \ - | (BOOTLOADER_PPUSATD0_MSC << _SMU_PPUSATD0_MSC_SHIFT) \ - | (BOOTLOADER_PPUSATD0_ICACHE0 << _SMU_PPUSATD0_ICACHE0_SHIFT) \ - | (BOOTLOADER_PPUSATD0_PRS << _SMU_PPUSATD0_PRS_SHIFT) \ - | (BOOTLOADER_PPUSATD0_GPIO << _SMU_PPUSATD0_GPIO_SHIFT) \ - | (BOOTLOADER_PPUSATD0_LDMA << _SMU_PPUSATD0_LDMA_SHIFT) \ - | (BOOTLOADER_PPUSATD0_LDMAXBAR << _SMU_PPUSATD0_LDMAXBAR_SHIFT) \ - | (BOOTLOADER_PPUSATD0_TIMER0 << _SMU_PPUSATD0_TIMER0_SHIFT) \ - | (BOOTLOADER_PPUSATD0_TIMER1 << _SMU_PPUSATD0_TIMER1_SHIFT) \ - | (BOOTLOADER_PPUSATD0_TIMER2 << _SMU_PPUSATD0_TIMER2_SHIFT) \ - | (BOOTLOADER_PPUSATD0_TIMER3 << _SMU_PPUSATD0_TIMER3_SHIFT) \ - | (BOOTLOADER_PPUSATD0_USART0 << _SMU_PPUSATD0_USART0_SHIFT) \ - | (BOOTLOADER_PPUSATD0_USART1 << _SMU_PPUSATD0_USART1_SHIFT) \ - | (BOOTLOADER_PPUSATD0_USART2 << _SMU_PPUSATD0_USART2_SHIFT) \ - | (BOOTLOADER_PPUSATD0_BURTC << _SMU_PPUSATD0_BURTC_SHIFT) \ - | (BOOTLOADER_PPUSATD0_I2C1 << _SMU_PPUSATD0_I2C1_SHIFT) \ - | (BOOTLOADER_PPUSATD0_CHIPTESTCTRL << _SMU_PPUSATD0_CHIPTESTCTRL_SHIFT) \ - | (BOOTLOADER_PPUSATD0_LVGD << _SMU_PPUSATD0_LVGD_SHIFT) \ - | (BOOTLOADER_PPUSATD0_SYSCFG << _SMU_PPUSATD0_SYSCFG_SHIFT) \ - | (BOOTLOADER_PPUSATD0_BURAM << _SMU_PPUSATD0_BURAM_SHIFT) \ - | (BOOTLOADER_PPUSATD0_IFADCDEBUG << _SMU_PPUSATD0_IFADCDEBUG_SHIFT) \ - | (BOOTLOADER_PPUSATD0_GPCRC << _SMU_PPUSATD0_GPCRC_SHIFT) \ - | (BOOTLOADER_PPUSATD0_RTCC << _SMU_PPUSATD0_RTCC_SHIFT)) -#define BOOTLOADER_PPUSATD1_MASK ((BOOTLOADER_PPUSATD1_LETIMER0 << _SMU_PPUSATD1_LETIMER0_SHIFT) \ - | (BOOTLOADER_PPUSATD1_IADC0 << _SMU_PPUSATD1_IADC0_SHIFT) \ - | (BOOTLOADER_PPUSATD1_ACMP0 << _SMU_PPUSATD1_ACMP0_SHIFT) \ - | (BOOTLOADER_PPUSATD1_ACMP1 << _SMU_PPUSATD1_ACMP1_SHIFT) \ - | (BOOTLOADER_PPUSATD1_I2C0 << _SMU_PPUSATD1_I2C0_SHIFT) \ - | (BOOTLOADER_PPUSATD1_HFRCOEM23 << _SMU_PPUSATD1_HFRCOEM23_SHIFT) \ - | (BOOTLOADER_PPUSATD1_WDOG0 << _SMU_PPUSATD1_WDOG0_SHIFT) \ - | (BOOTLOADER_PPUSATD1_WDOG1 << _SMU_PPUSATD1_WDOG1_SHIFT) \ - | (BOOTLOADER_PPUSATD1_AMUXCP0 << _SMU_PPUSATD1_AMUXCP0_SHIFT) \ - | (BOOTLOADER_PPUSATD1_RADIOAES << _SMU_PPUSATD1_RADIOAES_SHIFT) \ - | (BOOTLOADER_PPUSATD1_BUFC << _SMU_PPUSATD1_BUFC_SHIFT) \ - | (BOOTLOADER_PPUSATD1_SMU << _SMU_PPUSATD1_SMU_SHIFT) \ - | (BOOTLOADER_PPUSATD1_AHBRADIO << _SMU_PPUSATD1_AHBRADIO_SHIFT) \ - | (BOOTLOADER_PPUSATD1_SEMAILBOX << _SMU_PPUSATD1_SEMAILBOX_SHIFT)) -#endif // BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE - -#endif // BTL_INTERFACE_CFG_S2C1_H \ No newline at end of file diff --git a/misc/firmware-eraser/config/emlib_core_debug_config.h b/misc/firmware-eraser/config/emlib_core_debug_config.h deleted file mode 100644 index e4a01682..00000000 --- a/misc/firmware-eraser/config/emlib_core_debug_config.h +++ /dev/null @@ -1,45 +0,0 @@ -/***************************************************************************//** - * @file - * @brief emlib_core Configuration - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * SPDX-License-Identifier: Zlib - * - * The licensor of this software is Silicon Laboratories Inc. - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event will the authors be held liable for any damages - * arising from the use of this software. - * - * Permission is granted to anyone to use this software for any purpose, - * including commercial applications, and to alter it and redistribute it - * freely, subject to the following restrictions: - * - * 1. The origin of this software must not be misrepresented; you must not - * claim that you wrote the original software. If you use this software - * in a product, an acknowledgment in the product documentation would be - * appreciated but is not required. - * 2. Altered source versions must be plainly marked as such, and must not be - * misrepresented as being the original software. - * 3. This notice may not be removed or altered from any source distribution. - * - ******************************************************************************/ - -#ifndef EM_CORE_DEBUG_CONFIG_H -#define EM_CORE_DEBUG_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Core Configuration - -// Enables measuring of interrupt disable time for debugging purposes. -// Default: 0 -#define SL_EMLIB_CORE_ENABLE_INTERRUPT_DISABLED_TIMING 0 - -// - -// <<< end of configuration section >>> -#endif // EM_CORE_CONFIG_H \ No newline at end of file diff --git a/misc/firmware-eraser/config/pin_config.h b/misc/firmware-eraser/config/pin_config.h deleted file mode 100644 index b20910de..00000000 --- a/misc/firmware-eraser/config/pin_config.h +++ /dev/null @@ -1,141 +0,0 @@ -#ifndef PIN_CONFIG_H -#define PIN_CONFIG_H - -// $[CMU] -// [CMU]$ - -// $[LFXO] -// LFXO LFXTAL_I on PD01 -#ifndef LFXO_LFXTAL_I_PORT -#define LFXO_LFXTAL_I_PORT gpioPortD -#endif -#ifndef LFXO_LFXTAL_I_PIN -#define LFXO_LFXTAL_I_PIN 1 -#endif - -// LFXO LFXTAL_O on PD00 -#ifndef LFXO_LFXTAL_O_PORT -#define LFXO_LFXTAL_O_PORT gpioPortD -#endif -#ifndef LFXO_LFXTAL_O_PIN -#define LFXO_LFXTAL_O_PIN 0 -#endif - -// [LFXO]$ - -// $[PRS.ASYNCH0] -// [PRS.ASYNCH0]$ - -// $[PRS.ASYNCH1] -// [PRS.ASYNCH1]$ - -// $[PRS.ASYNCH2] -// [PRS.ASYNCH2]$ - -// $[PRS.ASYNCH3] -// [PRS.ASYNCH3]$ - -// $[PRS.ASYNCH4] -// [PRS.ASYNCH4]$ - -// $[PRS.ASYNCH5] -// [PRS.ASYNCH5]$ - -// $[PRS.ASYNCH6] -// [PRS.ASYNCH6]$ - -// $[PRS.ASYNCH7] -// [PRS.ASYNCH7]$ - -// $[PRS.ASYNCH8] -// [PRS.ASYNCH8]$ - -// $[PRS.ASYNCH9] -// [PRS.ASYNCH9]$ - -// $[PRS.ASYNCH10] -// [PRS.ASYNCH10]$ - -// $[PRS.ASYNCH11] -// [PRS.ASYNCH11]$ - -// $[PRS.SYNCH0] -// [PRS.SYNCH0]$ - -// $[PRS.SYNCH1] -// [PRS.SYNCH1]$ - -// $[PRS.SYNCH2] -// [PRS.SYNCH2]$ - -// $[PRS.SYNCH3] -// [PRS.SYNCH3]$ - -// $[GPIO] -// GPIO SWV on PA03 -#ifndef GPIO_SWV_PORT -#define GPIO_SWV_PORT gpioPortA -#endif -#ifndef GPIO_SWV_PIN -#define GPIO_SWV_PIN 3 -#endif - -// [GPIO]$ - -// $[TIMER0] -// [TIMER0]$ - -// $[TIMER1] -// [TIMER1]$ - -// $[TIMER2] -// [TIMER2]$ - -// $[TIMER3] -// [TIMER3]$ - -// $[USART0] -// [USART0]$ - -// $[USART1] -// [USART1]$ - -// $[USART2] -// [USART2]$ - -// $[I2C1] -// [I2C1]$ - -// $[LETIMER0] -// [LETIMER0]$ - -// $[IADC0] -// [IADC0]$ - -// $[ACMP0] -// [ACMP0]$ - -// $[ACMP1] -// [ACMP1]$ - -// $[I2C0] -// [I2C0]$ - -// $[PTI] -// [PTI]$ - -// $[MODEM] -// [MODEM]$ - -// $[CUSTOM_PIN_NAME] -#ifndef _PORT -#define _PORT gpioPortA -#endif -#ifndef _PIN -#define _PIN 0 -#endif - -// [CUSTOM_PIN_NAME]$ - -#endif // PIN_CONFIG_H - diff --git a/misc/firmware-eraser/config/sl_board_control_config.h b/misc/firmware-eraser/config/sl_board_control_config.h deleted file mode 100644 index b5a16b94..00000000 --- a/misc/firmware-eraser/config/sl_board_control_config.h +++ /dev/null @@ -1,56 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Board Control - ******************************************************************************* - * # License - * Copyright 2022 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * SPDX-License-Identifier: Zlib - * - * The licensor of this software is Silicon Laboratories Inc. - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event will the authors be held liable for any damages - * arising from the use of this software. - * - * Permission is granted to anyone to use this software for any purpose, - * including commercial applications, and to alter it and redistribute it - * freely, subject to the following restrictions: - * - * 1. The origin of this software must not be misrepresented; you must not - * claim that you wrote the original software. If you use this software - * in a product, an acknowledgment in the product documentation would be - * appreciated but is not required. - * 2. Altered source versions must be plainly marked as such, and must not be - * misrepresented as being the original software. - * 3. This notice may not be removed or altered from any source distribution. - * - ******************************************************************************/ - -#ifndef SL_BOARD_CONTROL_CONFIG_H -#define SL_BOARD_CONTROL_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Enable Virtual COM UART -// Default: 0 -#define SL_BOARD_ENABLE_VCOM 0 - -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> - -// SL_BOARD_ENABLE_VCOM -// $[GPIO_SL_BOARD_ENABLE_VCOM] -#ifndef SL_BOARD_ENABLE_VCOM_PORT -#define SL_BOARD_ENABLE_VCOM_PORT gpioPortD -#endif -#ifndef SL_BOARD_ENABLE_VCOM_PIN -#define SL_BOARD_ENABLE_VCOM_PIN 4 -#endif -// [GPIO_SL_BOARD_ENABLE_VCOM]$ - -// <<< sl:end pin_tool >>> - -#endif // SL_BOARD_CONTROL_CONFIG_H diff --git a/misc/firmware-eraser/config/sl_debug_swo_config.h b/misc/firmware-eraser/config/sl_debug_swo_config.h deleted file mode 100644 index fee7e65d..00000000 --- a/misc/firmware-eraser/config/sl_debug_swo_config.h +++ /dev/null @@ -1,106 +0,0 @@ -/***************************************************************************//** - * @file - * @brief SWO configuration - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * SPDX-License-Identifier: Zlib - * - * The licensor of this software is Silicon Laboratories Inc. - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event will the authors be held liable for any damages - * arising from the use of this software. - * - * Permission is granted to anyone to use this software for any purpose, - * including commercial applications, and to alter it and redistribute it - * freely, subject to the following restrictions: - * - * 1. The origin of this software must not be misrepresented; you must not - * claim that you wrote the original software. If you use this software - * in a product, an acknowledgment in the product documentation would be - * appreciated but is not required. - * 2. Altered source versions must be plainly marked as such, and must not be - * misrepresented as being the original software. - * 3. This notice may not be removed or altered from any source distribution. - * - ******************************************************************************/ - -#ifndef SL_DEBUG_SWO_CONFIG_H -#define SL_DEBUG_SWO_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// SWO Configuration - -// SWO Frequency -// Must be 875 kHz for communication with Silicon Labs debuggers -// Default: 875000 -#define SL_DEBUG_SWO_FREQ 875000 - -// Enable interrupt event trace -// Default: 0 -#define SL_DEBUG_SWO_SAMPLE_IRQ 0 - -// Enable Program Counter samples -// Default: 0 -#define SL_DEBUG_SWO_SAMPLE_PC 0 - -// SWO debug sample intervals -// <64=> 64 -// <128=> 128 -// <192=> 192 -// <256=> 256 -// <320=> 320 -// <384=> 384 -// <448=> 448 -// <512=> 512 -// <576=> 576 -// <640=> 640 -// <704=> 704 -// <768=> 768 -// <832=> 832 -// <896=> 896 -// <960=> 960 -// <1024=> 1024 -// <2048=> 2048 -// <3072=> 3072 -// <4096=> 4096 -// <5102=> 5102 -// <6144=> 6144 -// <7168=> 7168 -// <8192=> 8192 -// <9216=> 9216 -// <10240=> 10240 -// <11264=> 11264 -// <12288=> 12288 -// <13312=> 13312 -// <14336=> 14336 -// <15360=> 15360 -// Must be 64, 128, 192, [ n * 64 ], 1024, 2048, 3072, [ n * 1024 ] , 15360 -// Default: 15360 -#define SL_DEBUG_SWO_SAMPLE_INTERVAL 15360 -// - -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> -// SL_DEBUG -// $[GPIO_SL_DEBUG] -#ifndef SL_DEBUG_PERIPHERAL -#define SL_DEBUG_PERIPHERAL GPIO -#endif - -// GPIO SWV on PA03 -#ifndef SL_DEBUG_SWV_PORT -#define SL_DEBUG_SWV_PORT gpioPortA -#endif -#ifndef SL_DEBUG_SWV_PIN -#define SL_DEBUG_SWV_PIN 3 -#endif -// [GPIO_SL_DEBUG]$ -// <<< sl:end pin_tool >>> - -#endif // SL_DEBUG_SWO_CONFIG_H diff --git a/misc/firmware-eraser/config/sl_device_init_emu_config.h b/misc/firmware-eraser/config/sl_device_init_emu_config.h deleted file mode 100644 index f23d055b..00000000 --- a/misc/firmware-eraser/config/sl_device_init_emu_config.h +++ /dev/null @@ -1,53 +0,0 @@ -/***************************************************************************//** - * @file - * @brief DEVICE_INIT_EMU Config - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * SPDX-License-Identifier: Zlib - * - * The licensor of this software is Silicon Laboratories Inc. - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event will the authors be held liable for any damages - * arising from the use of this software. - * - * Permission is granted to anyone to use this software for any purpose, - * including commercial applications, and to alter it and redistribute it - * freely, subject to the following restrictions: - * - * 1. The origin of this software must not be misrepresented; you must not - * claim that you wrote the original software. If you use this software - * in a product, an acknowledgment in the product documentation would be - * appreciated but is not required. - * 2. Altered source versions must be plainly marked as such, and must not be - * misrepresented as being the original software. - * 3. This notice may not be removed or altered from any source distribution. - * - ******************************************************************************/ - -#ifndef SL_DEVICE_INIT_EMU_CONFIG_H -#define SL_DEVICE_INIT_EMU_CONFIG_H - -#include "em_emu.h" - -// <<< Use Configuration Wizard in Context Menu >>> - -// Allow debugger to remain connected in EM2 -// Force PD0B to stay on on EM2 entry. This allows the debugger to remain connected in EM2 and EM3. -// Enabling debug connectivity results in an increased power consumption in EM2/EM3. -// Default: 1 -#define SL_DEVICE_INIT_EMU_EM2_DEBUG_ENABLE 1 - -// EM4 pin retention mode -// No Retention: Pads enter reset state when entering EM4. -// Retention through EM4: Pads enter reset state when exiting EM4. -// Retention through EM4 and wakeup. -// Default: emuPinRetentionDisable -#define SL_DEVICE_INIT_EMU_EM4_PIN_RETENTION_MODE emuPinRetentionDisable - -// <<< end of configuration section >>> - -#endif // SL_DEVICE_INIT_EMU_CONFIG_H \ No newline at end of file diff --git a/misc/firmware-eraser/config/sl_device_init_hfrco_config.h b/misc/firmware-eraser/config/sl_device_init_hfrco_config.h deleted file mode 100644 index 532885ae..00000000 --- a/misc/firmware-eraser/config/sl_device_init_hfrco_config.h +++ /dev/null @@ -1,57 +0,0 @@ -/***************************************************************************//** - * @file - * @brief DEVICE_INIT_HFRCO Config - ******************************************************************************* - * # License - * Copyright 2022 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * SPDX-License-Identifier: Zlib - * - * The licensor of this software is Silicon Laboratories Inc. - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event will the authors be held liable for any damages - * arising from the use of this software. - * - * Permission is granted to anyone to use this software for any purpose, - * including commercial applications, and to alter it and redistribute it - * freely, subject to the following restrictions: - * - * 1. The origin of this software must not be misrepresented; you must not - * claim that you wrote the original software. If you use this software - * in a product, an acknowledgment in the product documentation would be - * appreciated but is not required. - * 2. Altered source versions must be plainly marked as such, and must not be - * misrepresented as being the original software. - * 3. This notice may not be removed or altered from any source distribution. - * - ******************************************************************************/ - -#ifndef SL_DEVICE_INIT_HFRCO_CONFIG_H -#define SL_DEVICE_INIT_HFRCO_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Frequency Band -// RC Oscillator Frequency Band -// 1 MHz -// 2 MHz -// 4 MHz -// 7 MHz -// 13 MHz -// 16 MHz -// 19 MHz -// 26 MHz -// 32 MHz -// 38 MHz -// 48 MHz -// 56 MHz -// 64 MHz -// 80 MHz -// Default: cmuHFRCODPLLFreq_80M0Hz -#define SL_DEVICE_INIT_HFRCO_BAND cmuHFRCODPLLFreq_80M0Hz - -// <<< end of configuration section >>> - -#endif // SL_DEVICE_INIT_HFRCO_CONFIG_H \ No newline at end of file diff --git a/misc/firmware-eraser/config/sl_device_init_hfxo_config.h b/misc/firmware-eraser/config/sl_device_init_hfxo_config.h deleted file mode 100644 index 917e60a6..00000000 --- a/misc/firmware-eraser/config/sl_device_init_hfxo_config.h +++ /dev/null @@ -1,57 +0,0 @@ -/***************************************************************************//** - * @file - * @brief DEVICE_INIT_HFXO Config - ******************************************************************************* - * # License - * Copyright 2022 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * SPDX-License-Identifier: Zlib - * - * The licensor of this software is Silicon Laboratories Inc. - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event will the authors be held liable for any damages - * arising from the use of this software. - * - * Permission is granted to anyone to use this software for any purpose, - * including commercial applications, and to alter it and redistribute it - * freely, subject to the following restrictions: - * - * 1. The origin of this software must not be misrepresented; you must not - * claim that you wrote the original software. If you use this software - * in a product, an acknowledgment in the product documentation would be - * appreciated but is not required. - * 2. Altered source versions must be plainly marked as such, and must not be - * misrepresented as being the original software. - * 3. This notice may not be removed or altered from any source distribution. - * - ******************************************************************************/ - -#ifndef SL_DEVICE_INIT_HFXO_CONFIG_H -#define SL_DEVICE_INIT_HFXO_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Mode -// -// Crystal oscillator -// External sine wave -// Default: cmuHfxoOscMode_Crystal -#define SL_DEVICE_INIT_HFXO_MODE cmuHfxoOscMode_Crystal - -// Frequency <38000000-40000000> -// Default: 38400000 -#define SL_DEVICE_INIT_HFXO_FREQ 38400000 - -// HFXO precision in PPM <0-65535> -// Default: 50 -#define SL_DEVICE_INIT_HFXO_PRECISION 50 - -// CTUNE <0-255> -// Default: 140 -#define SL_DEVICE_INIT_HFXO_CTUNE 133 - -// <<< end of configuration section >>> - -#endif // SL_DEVICE_INIT_HFXO_CONFIG_H \ No newline at end of file diff --git a/misc/firmware-eraser/config/sl_device_init_lfxo_config.h b/misc/firmware-eraser/config/sl_device_init_lfxo_config.h deleted file mode 100644 index d2cd25f5..00000000 --- a/misc/firmware-eraser/config/sl_device_init_lfxo_config.h +++ /dev/null @@ -1,93 +0,0 @@ -/***************************************************************************//** - * @file - * @brief DEVICE_INIT_LFXO Config - ******************************************************************************* - * # License - * Copyright 2022 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * SPDX-License-Identifier: Zlib - * - * The licensor of this software is Silicon Laboratories Inc. - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event will the authors be held liable for any damages - * arising from the use of this software. - * - * Permission is granted to anyone to use this software for any purpose, - * including commercial applications, and to alter it and redistribute it - * freely, subject to the following restrictions: - * - * 1. The origin of this software must not be misrepresented; you must not - * claim that you wrote the original software. If you use this software - * in a product, an acknowledgment in the product documentation would be - * appreciated but is not required. - * 2. Altered source versions must be plainly marked as such, and must not be - * misrepresented as being the original software. - * 3. This notice may not be removed or altered from any source distribution. - * - ******************************************************************************/ - -#ifndef SL_DEVICE_INIT_LFXO_CONFIG_H -#define SL_DEVICE_INIT_LFXO_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Mode -// -// Crystal oscillator -// AC-coupled buffer -// External digital clock -// Default: cmuLfxoOscMode_Crystal -#define SL_DEVICE_INIT_LFXO_MODE cmuLfxoOscMode_Crystal - -// CTUNE <0-127> -// Default: 63 -#define SL_DEVICE_INIT_LFXO_CTUNE 79 - -// LFXO precision in PPM <0-65535> -// Default: 50 -#define SL_DEVICE_INIT_LFXO_PRECISION 50 - -// Startup Timeout Delay -// -// 2 cycles -// 256 cycles -// 1K cycles -// 2K cycles -// 4K cycles -// 8K cycles -// 16K cycles -// 32K cycles -// Default: cmuLfxoStartupDelay_4KCycles -#define SL_DEVICE_INIT_LFXO_TIMEOUT cmuLfxoStartupDelay_4KCycles -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> -// SL_DEVICE_INIT_LFXO -// $[LFXO_SL_DEVICE_INIT_LFXO] -#ifndef SL_DEVICE_INIT_LFXO_PERIPHERAL -#define SL_DEVICE_INIT_LFXO_PERIPHERAL LFXO -#endif - -// LFXO LFXTAL_O on PD00 -#ifndef SL_DEVICE_INIT_LFXO_LFXTAL_O_PORT -#define SL_DEVICE_INIT_LFXO_LFXTAL_O_PORT gpioPortD -#endif -#ifndef SL_DEVICE_INIT_LFXO_LFXTAL_O_PIN -#define SL_DEVICE_INIT_LFXO_LFXTAL_O_PIN 0 -#endif - -// LFXO LFXTAL_I on PD01 -#ifndef SL_DEVICE_INIT_LFXO_LFXTAL_I_PORT -#define SL_DEVICE_INIT_LFXO_LFXTAL_I_PORT gpioPortD -#endif -#ifndef SL_DEVICE_INIT_LFXO_LFXTAL_I_PIN -#define SL_DEVICE_INIT_LFXO_LFXTAL_I_PIN 1 -#endif - -// [LFXO_SL_DEVICE_INIT_LFXO]$ - -// <<< sl:end pin_tool >>> - -#endif // SL_DEVICE_INIT_LFXO_CONFIG_H diff --git a/misc/firmware-eraser/config/sl_memory_config.h b/misc/firmware-eraser/config/sl_memory_config.h deleted file mode 100644 index b43ebcba..00000000 --- a/misc/firmware-eraser/config/sl_memory_config.h +++ /dev/null @@ -1,28 +0,0 @@ -#ifndef SL_MEMORY_CONFIG_H -#define SL_MEMORY_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> -// Memory configuration - -// Stack size for the application. -// Default: 4096 -// The stack size configured here will be used by the stack that the -// application uses when coming out of a reset. -#ifndef SL_STACK_SIZE - #define SL_STACK_SIZE 4096 -#endif - -// Minimum heap size for the application. -// Default: 2048 -// Note that this value will configure the c heap which is normally used by -// malloc() and free() from the c library. The value defines a minimum heap -// size that is guaranteed to be available. The available heap may be larger -// to make use of any memory that would otherwise remain unused. -#ifndef SL_HEAP_SIZE - #define SL_HEAP_SIZE 2048 -#endif - -// -// <<< end of configuration section >>> - -#endif diff --git a/misc/firmware-eraser/firmware-eraser.pintool b/misc/firmware-eraser/firmware-eraser.pintool deleted file mode 100644 index 734fdd07..00000000 --- a/misc/firmware-eraser/firmware-eraser.pintool +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/misc/firmware-eraser/firmware-eraser.slcp b/misc/firmware-eraser/firmware-eraser.slcp deleted file mode 100644 index f6d7ae34..00000000 --- a/misc/firmware-eraser/firmware-eraser.slcp +++ /dev/null @@ -1,41 +0,0 @@ -# Silicon Labs Project Configuration Tools: slcp, v0, Component selection file. -project_name: firmware-eraser -label: firmware-eraser -description: | - This example project shows an empty configuration that can be used as a starting point to add components and functionality. -category: Example|Platform -filter: -- name: Device Type - value: [SoC] -- name: MCU - value: [32-bit MCU] -- name: Project Difficulty - value: [Beginner] -package: platform -quality: production -readme: -- {path: readme.md} -source: -- {path: app.cpp} -- {path: main.cpp} -include: -- path: . - file_list: - - {path: app.h} -sdk: {id: gecko_sdk, version: 4.4.4} -toolchain_settings: [] -component: -- {id: EFR32MG21A010F1024IM32} -- {id: bootloader_app_properties} -- {id: bootloader_interface} -- {id: brd4001a} -- {id: brd4179b} -- {id: cpp_support} -- {id: device_init} -- {id: sl_system} -define: -- {name: DEBUG_EFM} -ui_hints: - highlight: - - {path: readme.md, focus: true} - diff --git a/misc/firmware-eraser/firmware-eraser.slps b/misc/firmware-eraser/firmware-eraser.slps deleted file mode 100644 index 953adc57..00000000 --- a/misc/firmware-eraser/firmware-eraser.slps +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/misc/firmware-eraser/gbl_metadata.yaml b/misc/firmware-eraser/gbl_metadata.yaml deleted file mode 100644 index 9e26dfee..00000000 --- a/misc/firmware-eraser/gbl_metadata.yaml +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/misc/firmware-eraser/main.cpp b/misc/firmware-eraser/main.cpp deleted file mode 100644 index 3e095007..00000000 --- a/misc/firmware-eraser/main.cpp +++ /dev/null @@ -1,58 +0,0 @@ -/***************************************************************************//** - * @file main.cpp - * @brief main() function. - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * The licensor of this software is Silicon Laboratories Inc. Your use of this - * software is governed by the terms of Silicon Labs Master Software License - * Agreement (MSLA) available at - * www.silabs.com/about-us/legal/master-software-license-agreement. This - * software is distributed to you in Source Code format and is governed by the - * sections of the MSLA applicable to Source Code. - * - ******************************************************************************/ -#include "sl_component_catalog.h" -#include "sl_system_init.h" -#include "app.h" -#if defined(SL_CATALOG_POWER_MANAGER_PRESENT) -#include "sl_power_manager.h" -#endif -#if defined(SL_CATALOG_KERNEL_PRESENT) -#include "sl_system_kernel.h" -#else // SL_CATALOG_KERNEL_PRESENT -#include "sl_system_process_action.h" -#endif // SL_CATALOG_KERNEL_PRESENT - -int main(void) -{ - // Initialize Silicon Labs device, system, service(s) and protocol stack(s). - // Note that if the kernel is present, processing task(s) will be created by - // this call. - sl_system_init(); - - // Initialize the application. For example, create periodic timer(s) or - // task(s) if the kernel is present. - app_init(); - -#if defined(SL_CATALOG_KERNEL_PRESENT) - // Start the kernel. Task(s) created in app_init() will start running. - sl_system_kernel_start(); -#else // SL_CATALOG_KERNEL_PRESENT - while (1) { - // Do not remove this call: Silicon Labs components process action routine - // must be called from the super loop. - sl_system_process_action(); - - // Application process. - app_process_action(); - -#if defined(SL_CATALOG_POWER_MANAGER_PRESENT) - // Let the CPU go to sleep if the system allows it. - sl_power_manager_sleep(); -#endif - } -#endif // SL_CATALOG_KERNEL_PRESENT -}