File tree Expand file tree Collapse file tree 5 files changed +13
-12
lines changed
targets/TARGET_Silicon_Labs/TARGET_EFM32
TARGET_EFM32PG/device/TARGET_256K/TOOLCHAIN_GCC_ARM
TARGET_EFM32PG12/device/TOOLCHAIN_GCC_ARM
TARGET_EFR32MG1/device/TOOLCHAIN_GCC_ARM
TARGET_EFR32MG12/device/TOOLCHAIN_GCC_ARM Expand file tree Collapse file tree 5 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -219,5 +219,5 @@ SECTIONS
219
219
ASSERT (__StackLimit >= __HeapLimit, "region RAM overflowed with stack")
220
220
221
221
/* Check if FLASH usage exceeds FLASH size */
222
- ASSERT ( LENGTH (FLASH) >= (__etext + SIZEOF (.data)), "FLASH memory overflowed !")
222
+ ASSERT (ORIGIN (FLASH) + LENGTH (FLASH) >= (__etext + SIZEOF (.data)), "FLASH memory overflowed !")
223
223
}
Original file line number Diff line number Diff line change @@ -219,5 +219,5 @@ SECTIONS
219
219
ASSERT (__StackLimit >= __HeapLimit, "region RAM overflowed with stack")
220
220
221
221
/* Check if FLASH usage exceeds FLASH size */
222
- ASSERT ( LENGTH (FLASH) >= (__etext + SIZEOF (.data)), "FLASH memory overflowed !")
222
+ ASSERT (ORIGIN (FLASH) + LENGTH (FLASH) >= (__etext + SIZEOF (.data)), "FLASH memory overflowed !")
223
223
}
Original file line number Diff line number Diff line change @@ -219,5 +219,5 @@ SECTIONS
219
219
ASSERT (__StackLimit >= __HeapLimit, "region RAM overflowed with stack")
220
220
221
221
/* Check if FLASH usage exceeds FLASH size */
222
- ASSERT ( LENGTH (FLASH) >= (__etext + SIZEOF (.data)), "FLASH memory overflowed !")
222
+ ASSERT ( ORIGIN (FLASH) + LENGTH (FLASH) >= (__etext + SIZEOF (.data)), "FLASH memory overflowed !")
223
223
}
Original file line number Diff line number Diff line change @@ -219,5 +219,5 @@ SECTIONS
219
219
ASSERT (__StackLimit >= __HeapLimit, "region RAM overflowed with stack")
220
220
221
221
/* Check if FLASH usage exceeds FLASH size */
222
- ASSERT ( LENGTH (FLASH) >= (__etext + SIZEOF (.data)), "FLASH memory overflowed !")
222
+ ASSERT (ORIGIN (FLASH) + LENGTH (FLASH) >= (__etext + SIZEOF (.data)), "FLASH memory overflowed !")
223
223
}
Original file line number Diff line number Diff line change @@ -38,19 +38,20 @@ void mbed_sdk_init()
38
38
{
39
39
CHIP_Init ();
40
40
41
- #if defined(_SILICON_LABS_32B_PLATFORM_2 )
41
+ #if defined(_SILICON_LABS_32B_SERIES_1 )
42
42
EMU_DCDCInit_TypeDef dcdcInit = EMU_DCDCINIT_DEFAULT ;
43
43
EMU_DCDCInit (& dcdcInit );
44
44
45
+ #if (CORE_CLOCK_SOURCE == HFXO )
46
+ // Only init HFXO if not already done (e.g. by bootloader)
47
+ if (CMU_ClockSelectGet (cmuClock_HF ) != cmuSelect_HFXO ) {
45
48
#if defined(_EFR_DEVICE )
46
- CMU_HFXOInit_TypeDef hfxoInit = CMU_HFXOINIT_WSTK_DEFAULT ;
47
- // Initialize the HFXO using the settings from the WSTK bspconfig.h
48
- // Note: This configures things like the capacitive tuning CTUNE variable
49
- // which can vary based on your hardware design.
50
- CMU_HFXOInit (& hfxoInit );
49
+ CMU_HFXOInit_TypeDef hfxoInit = CMU_HFXOINIT_WSTK_DEFAULT ;
51
50
#else
52
- CMU_HFXOInit_TypeDef hfxoInit = CMU_HFXOINIT_STK_DEFAULT ;
53
- CMU_HFXOInit (& hfxoInit );
51
+ CMU_HFXOInit_TypeDef hfxoInit = CMU_HFXOINIT_STK_DEFAULT ;
52
+ #endif
53
+ CMU_HFXOInit (& hfxoInit );
54
+ }
54
55
#endif
55
56
#endif
56
57
You can’t perform that action at this time.
0 commit comments