This is an automated email from Gerrit. Jonathan Dumaresq (jdumar...@cimeq.qc.ca) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/435
-- gerrit commit 4ef1c6a383207700e306a91f81a2a1c6a479661d Author: Jonathan Dumaresq <jdumar...@cimeq.qc.ca> Date: Mon Feb 6 10:53:20 2012 -0500 Add the stm32f0x device in the flash info command Change-Id: I259073e9a3b5b5da92d36243fbfeeabc803a15da Signed-off-by: Jonathan Dumaresq <jdumar...@cimeq.qc.ca> diff --git a/src/flash/nor/stm32f1x.c b/src/flash/nor/stm32f1x.c index 118255b..5031c9a 100644 --- a/src/flash/nor/stm32f1x.c +++ b/src/flash/nor/stm32f1x.c @@ -921,9 +921,10 @@ static int stm32x_probe(struct flash_bank *bank) int retval = target_read_u32(target, 0xE0042000, &device_id); if (retval != ERROR_OK) return retval; + if(device_id == 0x00000000) { // device_id is 0, then we can try the stm32f0x address LOG_INFO("device id is 0x00000000 try stm32f0x address"); - int retval = target_read_u32(target, 0x40015800, &device_id); + retval = target_read_u32(target, 0x40015800, &device_id); if (retval != ERROR_OK) return retval; } @@ -1110,6 +1111,13 @@ static int get_stm32x_info(struct flash_bank *bank, char *buf, int buf_size) if (retval != ERROR_OK) return retval; + if(device_id == 0x00000000) { // device_id is 0, then we can try the stm32f0x address + LOG_INFO("device id is 0x00000000 try stm32f0x address"); + retval = target_read_u32(target, 0x40015800, &device_id); + if (retval != ERROR_OK) + return retval; + } + if ((device_id & 0xfff) == 0x410) { printed = snprintf(buf, buf_size, "stm32x (Medium Density) - Rev: "); buf += printed; -- ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel