This is the mail archive of the
ecos-bugs@sourceware.org
mailing list for the eCos project.
[Bug 1001137] New: PCLK2 divisors incorrect
- From: bugzilla-daemon at bugs dot ecos dot sourceware dot org
- To: ecos-bugs at ecos dot sourceware dot org
- Date: Tue, 1 Feb 2011 15:16:33 +0000
- Subject: [Bug 1001137] New: PCLK2 divisors incorrect
- Auto-submitted: auto-generated
Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001137
Summary: PCLK2 divisors incorrect
Product: eCos
Version: unknown
Platform: stm32e_eval (ST STM3210E EVAL board)
OS/Version: Cortex-M
Status: UNCONFIRMED
Severity: normal
Priority: low
Component: HAL
AssignedTo: unassigned@bugs.ecos.sourceware.org
ReportedBy: alan.bowman@datong.co.uk
CC: ecos-bugs@ecos.sourceware.org
Class: Advice Request
It looks like the #define values for setting up the STM32 PCLK2 have suffered
from copy-n-paste error. I think this patch should fix things:
diff --git a/packages/hal/cortexm/stm32/var/current/include/var_io.h
b/packages/hal/cortexm/stm32/var/current/include/var_io.h
--- a/packages/hal/cortexm/stm32/var/current/include/var_io.h
+++ b/packages/hal/cortexm/stm32/var/current/include/var_io.h
@@ -169,10 +169,10 @@
#define CYGHWR_HAL_STM32_RCC_CFGR_PPRE1_8 VALUE_(8,6)
#define CYGHWR_HAL_STM32_RCC_CFGR_PPRE1_16 VALUE_(8,7)
#define CYGHWR_HAL_STM32_RCC_CFGR_PPRE2_1 VALUE_(11,0)
-#define CYGHWR_HAL_STM32_RCC_CFGR_PPRE2_2 VALUE_(11,0)
-#define CYGHWR_HAL_STM32_RCC_CFGR_PPRE2_4 VALUE_(11,0)
-#define CYGHWR_HAL_STM32_RCC_CFGR_PPRE2_8 VALUE_(11,0)
-#define CYGHWR_HAL_STM32_RCC_CFGR_PPRE2_16 VALUE_(11,0)
+#define CYGHWR_HAL_STM32_RCC_CFGR_PPRE2_2 VALUE_(11,4)
+#define CYGHWR_HAL_STM32_RCC_CFGR_PPRE2_4 VALUE_(11,5)
+#define CYGHWR_HAL_STM32_RCC_CFGR_PPRE2_8 VALUE_(11,6)
+#define CYGHWR_HAL_STM32_RCC_CFGR_PPRE2_16 VALUE_(11,7)
#define CYGHWR_HAL_STM32_RCC_CFGR_ADCPRE_2 VALUE_(14,0)
#define CYGHWR_HAL_STM32_RCC_CFGR_ADCPRE_4 VALUE_(14,1)
#define CYGHWR_HAL_STM32_RCC_CFGR_ADCPRE_6 VALUE_(14,2)
--
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.