diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/PeripheralNames.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/PeripheralNames.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/PeripheralNames.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/PeripheralNames.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/PeripheralPins.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/PeripheralPins.c similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/PeripheralPins.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/PeripheralPins.c diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/PeripheralPins.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/PeripheralPins.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/PeripheralPins.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/PeripheralPins.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/TARGET_EFM32PG12_STK3402/PinNames.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/TARGET_EFM32PG12_STK3402/PinNames.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/TARGET_EFM32PG12_STK3402/PinNames.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/TARGET_EFM32PG12_STK3402/PinNames.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/TARGET_EFM32PG12_STK3402/device_peripherals.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/TARGET_EFM32PG12_STK3402/device_peripherals.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/TARGET_EFM32PG12_STK3402/device_peripherals.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/TARGET_EFM32PG12_STK3402/device_peripherals.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/TOOLCHAIN_ARM_STD/efr32pg12b.sct b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/TOOLCHAIN_ARM_STD/efr32pg12b.sct similarity index 89% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/TOOLCHAIN_ARM_STD/efr32pg12b.sct rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/TOOLCHAIN_ARM_STD/efr32pg12b.sct index 974cbb0c37..19a1e79085 100644 --- a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/TOOLCHAIN_ARM_STD/efr32pg12b.sct +++ b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/TOOLCHAIN_ARM_STD/efr32pg12b.sct @@ -8,7 +8,7 @@ LR_IROM1 0x00000000 0x00100000 { ; load region size_region *(InRoot$$Sections) .ANY (+RO) } - RW_IRAM1 0x20000108 0x0003FEF8 { ; RW data + RW_IRAM1 0x2000010C 0x0003FEF4 { ; RW data .ANY (+RW +ZI) } } diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/TOOLCHAIN_ARM_STD/startup_efm32pg12b.s b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/TOOLCHAIN_ARM_STD/startup_efm32pg12b.s similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/TOOLCHAIN_ARM_STD/startup_efm32pg12b.s rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/TOOLCHAIN_ARM_STD/startup_efm32pg12b.s diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/TOOLCHAIN_GCC_ARM/efm32pg12b.ld b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/TOOLCHAIN_GCC_ARM/efm32pg12b.ld similarity index 98% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/TOOLCHAIN_GCC_ARM/efm32pg12b.ld rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/TOOLCHAIN_GCC_ARM/efm32pg12b.ld index 492a76f10f..43cea81279 100644 --- a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/TOOLCHAIN_GCC_ARM/efm32pg12b.ld +++ b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/TOOLCHAIN_GCC_ARM/efm32pg12b.ld @@ -17,8 +17,8 @@ MEMORY /* MBED: mbed needs to be able to dynamically set the interrupt vector table. * We make room for the table at the very beginning of RAM, i.e. at - * 0x20000000. We need (16+50 * sizeof(uint32_t) = 264 bytes for EFM32PG */ -__vector_size = 0x108; + * 0x20000000. We need (16+51 * sizeof(uint32_t) = 268 bytes for EFM32PG */ +__vector_size = 0x10C; /* Linker script to place sections and symbol values. Should be used together * with other linker script that defines memory regions FLASH and RAM. diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/TOOLCHAIN_GCC_ARM/startup_efm32pg12b.S b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/TOOLCHAIN_GCC_ARM/startup_efm32pg12b.S similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/TOOLCHAIN_GCC_ARM/startup_efm32pg12b.S rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/TOOLCHAIN_GCC_ARM/startup_efm32pg12b.S diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/TOOLCHAIN_IAR/EFM32PG12B500F1024GL125.icf b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/TOOLCHAIN_IAR/EFM32PG12B500F1024GL125.icf similarity index 92% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/TOOLCHAIN_IAR/EFM32PG12B500F1024GL125.icf rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/TOOLCHAIN_IAR/EFM32PG12B500F1024GL125.icf index f90304bbbb..ed9fa118f6 100644 --- a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/TOOLCHAIN_IAR/EFM32PG12B500F1024GL125.icf +++ b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/TOOLCHAIN_IAR/EFM32PG12B500F1024GL125.icf @@ -10,8 +10,8 @@ define symbol __ICFEDIT_intvec_start__ = 0x00000000; define symbol __ICFEDIT_region_ROM_start__ = 0x00000000; define symbol __ICFEDIT_region_ROM_end__ = (0x00000000+0x00100000-1); define symbol __NVIC_start__ = 0x20000000; -define symbol __NVIC_end__ = 0x20000107; -define symbol __ICFEDIT_region_RAM_start__ = 0x20000108; +define symbol __NVIC_end__ = 0x2000010B; +define symbol __ICFEDIT_region_RAM_start__ = 0x2000010C; define symbol __ICFEDIT_region_RAM_end__ = (0x20000000+0x00040000-1); /*-Sizes-*/ diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/TOOLCHAIN_IAR/startup_efm32pg12b.s b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/TOOLCHAIN_IAR/startup_efm32pg12b.s similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/TOOLCHAIN_IAR/startup_efm32pg12b.s rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/TOOLCHAIN_IAR/startup_efm32pg12b.s diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b500f1024gl125.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b500f1024gl125.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b500f1024gl125.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b500f1024gl125.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b500f1024gm48.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b500f1024gm48.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b500f1024gm48.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b500f1024gm48.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b500f1024il125.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b500f1024il125.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b500f1024il125.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b500f1024il125.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b500f1024im48.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b500f1024im48.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b500f1024im48.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b500f1024im48.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b500f512gl125.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b500f512gl125.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b500f512gl125.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b500f512gl125.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b500f512gm48.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b500f512gm48.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b500f512gm48.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b500f512gm48.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_acmp.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_acmp.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_acmp.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_acmp.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_adc.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_adc.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_adc.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_adc.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_af_pins.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_af_pins.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_af_pins.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_af_pins.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_af_ports.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_af_ports.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_af_ports.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_af_ports.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_cmu.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_cmu.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_cmu.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_cmu.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_cryotimer.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_cryotimer.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_cryotimer.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_cryotimer.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_crypto.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_crypto.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_crypto.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_crypto.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_csen.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_csen.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_csen.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_csen.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_devinfo.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_devinfo.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_devinfo.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_devinfo.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_dma_descriptor.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_dma_descriptor.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_dma_descriptor.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_dma_descriptor.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_dmareq.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_dmareq.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_dmareq.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_dmareq.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_emu.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_emu.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_emu.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_emu.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_etm.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_etm.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_etm.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_etm.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_fpueh.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_fpueh.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_fpueh.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_fpueh.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_gpcrc.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_gpcrc.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_gpcrc.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_gpcrc.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_gpio.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_gpio.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_gpio.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_gpio.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_gpio_p.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_gpio_p.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_gpio_p.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_gpio_p.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_i2c.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_i2c.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_i2c.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_i2c.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_idac.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_idac.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_idac.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_idac.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_ldma.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_ldma.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_ldma.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_ldma.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_ldma_ch.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_ldma_ch.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_ldma_ch.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_ldma_ch.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_lesense.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_lesense.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_lesense.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_lesense.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_lesense_buf.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_lesense_buf.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_lesense_buf.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_lesense_buf.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_lesense_ch.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_lesense_ch.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_lesense_ch.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_lesense_ch.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_lesense_st.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_lesense_st.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_lesense_st.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_lesense_st.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_letimer.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_letimer.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_letimer.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_letimer.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_leuart.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_leuart.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_leuart.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_leuart.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_msc.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_msc.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_msc.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_msc.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_pcnt.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_pcnt.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_pcnt.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_pcnt.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_prs.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_prs.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_prs.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_prs.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_prs_ch.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_prs_ch.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_prs_ch.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_prs_ch.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_prs_signals.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_prs_signals.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_prs_signals.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_prs_signals.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_rmu.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_rmu.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_rmu.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_rmu.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_romtable.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_romtable.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_romtable.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_romtable.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_rtcc.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_rtcc.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_rtcc.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_rtcc.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_rtcc_cc.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_rtcc_cc.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_rtcc_cc.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_rtcc_cc.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_rtcc_ret.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_rtcc_ret.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_rtcc_ret.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_rtcc_ret.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_smu.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_smu.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_smu.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_smu.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_timer.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_timer.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_timer.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_timer.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_timer_cc.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_timer_cc.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_timer_cc.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_timer_cc.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_trng.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_trng.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_trng.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_trng.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_usart.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_usart.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_usart.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_usart.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_vdac.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_vdac.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_vdac.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_vdac.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_vdac_opa.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_vdac_opa.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_vdac_opa.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_vdac_opa.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_wdog.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_wdog.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_wdog.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_wdog.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_wdog_pch.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_wdog_pch.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/efm32pg12b_wdog_pch.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/efm32pg12b_wdog_pch.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/em_device.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/em_device.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/em_device.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/em_device.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/system_efm32pg12b.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/system_efm32pg12b.c similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/system_efm32pg12b.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/system_efm32pg12b.c diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/system_efm32pg12b.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/system_efm32pg12b.h similarity index 100% rename from targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32PG12/device/system_efm32pg12b.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/system_efm32pg12b.h diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32MG12/device/TOOLCHAIN_ARM_STD/efr32mg12p.sct b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32MG12/device/TOOLCHAIN_ARM_STD/efr32mg12p.sct index 974cbb0c37..19a1e79085 100644 --- a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32MG12/device/TOOLCHAIN_ARM_STD/efr32mg12p.sct +++ b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32MG12/device/TOOLCHAIN_ARM_STD/efr32mg12p.sct @@ -8,7 +8,7 @@ LR_IROM1 0x00000000 0x00100000 { ; load region size_region *(InRoot$$Sections) .ANY (+RO) } - RW_IRAM1 0x20000108 0x0003FEF8 { ; RW data + RW_IRAM1 0x2000010C 0x0003FEF4 { ; RW data .ANY (+RW +ZI) } } diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32MG12/device/TOOLCHAIN_GCC_ARM/efr32mg12p.ld b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32MG12/device/TOOLCHAIN_GCC_ARM/efr32mg12p.ld index 2d17d8743e..cf05746430 100644 --- a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32MG12/device/TOOLCHAIN_GCC_ARM/efr32mg12p.ld +++ b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32MG12/device/TOOLCHAIN_GCC_ARM/efr32mg12p.ld @@ -17,8 +17,8 @@ MEMORY /* MBED: mbed needs to be able to dynamically set the interrupt vector table. * We make room for the table at the very beginning of RAM, i.e. at - * 0x20000000. We need (16+50 * sizeof(uint32_t) = 264 bytes for EFM32PG */ -__vector_size = 0x108; + * 0x20000000. We need (16+51 * sizeof(uint32_t) = 268 bytes for EFM32PG */ +__vector_size = 0x10C; /* Linker script to place sections and symbol values. Should be used together * with other linker script that defines memory regions FLASH and RAM. diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32MG12/device/TOOLCHAIN_IAR/efr32mg12p332f1024gl125.icf b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32MG12/device/TOOLCHAIN_IAR/efr32mg12p332f1024gl125.icf index 8d652ba1e0..a40090df01 100644 --- a/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32MG12/device/TOOLCHAIN_IAR/efr32mg12p332f1024gl125.icf +++ b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32MG12/device/TOOLCHAIN_IAR/efr32mg12p332f1024gl125.icf @@ -7,8 +7,8 @@ define symbol __ICFEDIT_intvec_start__ = 0x00000000; define symbol __ICFEDIT_region_ROM_start__ = 0x00000000; define symbol __ICFEDIT_region_ROM_end__ = 0x000FFFFF; define symbol __NVIC_start__ = 0x20000000; -define symbol __NVIC_end__ = 0x20000107; -define symbol __ICFEDIT_region_RAM_start__ = 0x20000108; +define symbol __NVIC_end__ = 0x2000010B; +define symbol __ICFEDIT_region_RAM_start__ = 0x2000010C; define symbol __ICFEDIT_region_RAM_end__ = 0x2003FFFF; /*-Sizes-*/ /*Heap 1/4 of ram and stack 1/8*/ diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/common/CommonPinNames.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/common/CommonPinNames.h index e03eac196b..47bc0c03fb 100644 --- a/targets/TARGET_Silicon_Labs/TARGET_EFM32/common/CommonPinNames.h +++ b/targets/TARGET_Silicon_Labs/TARGET_EFM32/common/CommonPinNames.h @@ -30,17 +30,17 @@ * bits represent port number (A = 0, B = 1, ...) */ #define EFM32_STANDARD_PIN_DEFINITIONS \ - PA0 = 0 << 4, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, \ - PB0 = 1 << 4, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, \ - PC0 = 2 << 4, PC1, PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, \ - PD0 = 3 << 4, PD1, PD2, PD3, PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, \ - PE0 = 4 << 4, PE1, PE2, PE3, PE4, PE5, PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, \ - PF0 = 5 << 4, PF1, PF2, PF3, PF4, PF5, PF6, PF7, PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, \ - PG0 = 6 << 4, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, \ - PH0 = 7 << 4, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, \ - PI0 = 7 << 4, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, PI13, PI14, PI15, \ - PJ0 = 7 << 4, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13, PJ14, PJ15, \ - PK0 = 7 << 4, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PK15, \ + PA0 = 0 << 4, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, \ + PB0 = 1 << 4, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, \ + PC0 = 2 << 4, PC1, PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, \ + PD0 = 3 << 4, PD1, PD2, PD3, PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, \ + PE0 = 4 << 4, PE1, PE2, PE3, PE4, PE5, PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, \ + PF0 = 5 << 4, PF1, PF2, PF3, PF4, PF5, PF6, PF7, PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, \ + PG0 = 6 << 4, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, \ + PH0 = 7 << 4, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, \ + PI0 = 8 << 4, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, PI13, PI14, PI15, \ + PJ0 = 9 << 4, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13, PJ14, PJ15, \ + PK0 = 10 << 4, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PK15, \ NC = (int) 0xFFFFFFFF #ifdef __cplusplus diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/common/PortNames.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/common/PortNames.h index ebece26ee9..65c44da139 100644 --- a/targets/TARGET_Silicon_Labs/TARGET_EFM32/common/PortNames.h +++ b/targets/TARGET_Silicon_Labs/TARGET_EFM32/common/PortNames.h @@ -46,13 +46,22 @@ typedef enum { PortE = gpioPortE, /**< Port E */ #endif #if ( _GPIO_PORT_F_PIN_COUNT > 0 ) - PortF = gpioPortF /**< Port F */ + PortF = gpioPortF, /**< Port F */ #endif #if defined( _GPIO_PORT_G_PIN_COUNT ) && ( _GPIO_PORT_G_PIN_COUNT > 0 ) - PortG = gpioPortG /**< Port F */ + PortG = gpioPortG, /**< Port G */ #endif #if defined( _GPIO_PORT_H_PIN_COUNT ) && ( _GPIO_PORT_H_PIN_COUNT > 0 ) - PortH = gpioPortH /**< Port F */ + PortH = gpioPortH, /**< Port H */ +#endif +#if defined( _GPIO_PORT_I_PIN_COUNT ) && ( _GPIO_PORT_I_PIN_COUNT > 0 ) + PortI = gpioPortI, /**< Port I */ +#endif +#if defined( _GPIO_PORT_J_PIN_COUNT ) && ( _GPIO_PORT_J_PIN_COUNT > 0 ) + PortJ = gpioPortJ, /**< Port J */ +#endif +#if defined( _GPIO_PORT_K_PIN_COUNT ) && ( _GPIO_PORT_K_PIN_COUNT > 0 ) + PortK = gpioPortK, /**< Port K */ #endif } PortName; diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_system.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_system.c index cac903b062..4476b7f57f 100644 --- a/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_system.c +++ b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_system.c @@ -33,6 +33,7 @@ #include "em_system.h" #include "em_assert.h" #include +#include "core_cmSecureAccess.h" /***************************************************************************//** * @addtogroup emlib @@ -60,20 +61,25 @@ void SYSTEM_ChipRevisionGet(SYSTEM_ChipRevision_TypeDef *rev) uint8_t tmp; EFM_ASSERT(rev); + + uint32_t pid0 = SECURE_READ(&(ROMTABLE->PID0)); + uint32_t pid1 = SECURE_READ(&(ROMTABLE->PID1)); + uint32_t pid2 = SECURE_READ(&(ROMTABLE->PID2)); + uint32_t pid3 = SECURE_READ(&(ROMTABLE->PID3)); /* CHIP FAMILY bit [5:2] */ - tmp = (((ROMTABLE->PID1 & _ROMTABLE_PID1_FAMILYMSB_MASK) >> _ROMTABLE_PID1_FAMILYMSB_SHIFT) << 2); + tmp = (((pid1 & _ROMTABLE_PID1_FAMILYMSB_MASK) >> _ROMTABLE_PID1_FAMILYMSB_SHIFT) << 2); /* CHIP FAMILY bit [1:0] */ - tmp |= ((ROMTABLE->PID0 & _ROMTABLE_PID0_FAMILYLSB_MASK) >> _ROMTABLE_PID0_FAMILYLSB_SHIFT); + tmp |= ((pid0 & _ROMTABLE_PID0_FAMILYLSB_MASK) >> _ROMTABLE_PID0_FAMILYLSB_SHIFT); rev->family = tmp; /* CHIP MAJOR bit [3:0] */ - rev->major = (ROMTABLE->PID0 & _ROMTABLE_PID0_REVMAJOR_MASK) >> _ROMTABLE_PID0_REVMAJOR_SHIFT; + rev->major = (pid0 & _ROMTABLE_PID0_REVMAJOR_MASK) >> _ROMTABLE_PID0_REVMAJOR_SHIFT; /* CHIP MINOR bit [7:4] */ - tmp = (((ROMTABLE->PID2 & _ROMTABLE_PID2_REVMINORMSB_MASK) >> _ROMTABLE_PID2_REVMINORMSB_SHIFT) << 4); + tmp = (((pid2 & _ROMTABLE_PID2_REVMINORMSB_MASK) >> _ROMTABLE_PID2_REVMINORMSB_SHIFT) << 4); /* CHIP MINOR bit [3:0] */ - tmp |= ((ROMTABLE->PID3 & _ROMTABLE_PID3_REVMINORLSB_MASK) >> _ROMTABLE_PID3_REVMINORLSB_SHIFT); + tmp |= ((pid3 & _ROMTABLE_PID3_REVMINORLSB_MASK) >> _ROMTABLE_PID3_REVMINORLSB_SHIFT); rev->minor = tmp; } diff --git a/targets/targets.json b/targets/targets.json index caebe3d835..ff8680fc42 100644 --- a/targets/targets.json +++ b/targets/targets.json @@ -2336,18 +2336,18 @@ } } }, - "EFM32PG12B500F1024": { + "EFM32PG12B500F1024GL125": { "inherits": ["EFM32"], "extra_labels_add": ["EFM32PG12", "1024K"], "core": "Cortex-M4F", - "macros": ["EFM32PG12B500F1024", "TRANSACTION_QUEUE_SIZE_SPI=4"], + "macros": ["EFM32PG12B500F1024GL125", "TRANSACTION_QUEUE_SIZE_SPI=4"], "supported_toolchains": ["GCC_ARM", "ARM", "uARM", "IAR"], "release_versions": ["2", "5"], - "device_name": "EFM32PG12B500F1024", + "device_name": "EFM32PG12B500F1024GL125", "public": false }, "EFM32PG12_STK3402": { - "inherits": ["EFM32PG12B500F1024"], + "inherits": ["EFM32PG12B500F1024GL125"], "device_has": ["AES", "SHA", "ECC", "ANALOGIN", "ERROR_PATTERN", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH", "STDIO_MESSAGES"], "forced_reset_timeout": 2, "config": {