This is an automated email from Gerrit. Nemui Trinomius (nemuisan_kawausogas...@live.jp) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/1994
-- gerrit commit 4ff073bbf5ce2b0818d36ac442b2791ea8025dd3 Author: Nemui Trinomius <nemuisan_kawausogas...@live.jp> Date: Thu Feb 27 23:57:09 2014 +0900 efm32 : Added ZeroGecko family support. Added Cortex-M0plus "ZeroGecko" Family to flash driver. Tested on EFM32ZG222F32. Change-Id: I1660b34ef6ee04837e97581504fff0faf84d1c6d Signed-off-by: Nemui Trinomius <nemuisan_kawausogas...@live.jp> diff --git a/src/flash/nor/efm32.c b/src/flash/nor/efm32.c index 858bb0a..1883d11 100644 --- a/src/flash/nor/efm32.c +++ b/src/flash/nor/efm32.c @@ -43,6 +43,7 @@ #define EFM_FAMILY_ID_TINY_GECKO 73 #define EFM_FAMILY_ID_LEOPARD_GECKO 74 #define EFM_FAMILY_ID_WONDER_GECKO 75 +#define EFM_FAMILY_ID_ZERO_GECKO 76 #define EFM32_FLASH_ERASE_TMO 100 #define EFM32_FLASH_WDATAREADY_TMO 100 @@ -141,9 +142,11 @@ static int efm32x_read_info(struct flash_bank *bank, if (((cpuid >> 4) & 0xfff) == 0xc23) { /* Cortex M3 device */ } else if (((cpuid >> 4) & 0xfff) == 0xc24) { - /* Cortex M4 device */ + /* Cortex M4 device(WONDER GECKO) */ + } else if (((cpuid >> 4) & 0xfff) == 0xc60) { + /* Cortex M0plus device(ZERO GECKO) */ } else { - LOG_ERROR("Target is not CortexM3 or M4"); + LOG_ERROR("Target is not Cortex-M Device"); return ERROR_FAIL; } @@ -170,6 +173,8 @@ static int efm32x_read_info(struct flash_bank *bank, if (EFM_FAMILY_ID_GECKO == efm32_info->part_family || EFM_FAMILY_ID_TINY_GECKO == efm32_info->part_family) efm32_info->page_size = 512; + else if (EFM_FAMILY_ID_ZERO_GECKO == efm32_info->part_family) + efm32_info->page_size = 1024; else if (EFM_FAMILY_ID_GIANT_GECKO == efm32_info->part_family || EFM_FAMILY_ID_LEOPARD_GECKO == efm32_info->part_family) { if (efm32_info->prod_rev >= 18) { @@ -843,6 +848,9 @@ static int efm32x_probe(struct flash_bank *bank) case EFM_FAMILY_ID_WONDER_GECKO: LOG_INFO("Wonder Gecko MCU detected"); break; + case EFM_FAMILY_ID_ZERO_GECKO: + LOG_INFO("Zero Gecko MCU detected"); + break; default: LOG_ERROR("Unsupported MCU family %d", efm32_mcu_info.part_family); @@ -956,6 +964,9 @@ static int get_efm32x_info(struct flash_bank *bank, char *buf, int buf_size) case EFM_FAMILY_ID_WONDER_GECKO: printed = snprintf(buf, buf_size, "Wonder Gecko"); break; + case EFM_FAMILY_ID_ZERO_GECKO: + printed = snprintf(buf, buf_size, "Zero Gecko"); + break; } buf += printed; -- ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel