Fixed bug 3586425.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_2.4.x@4825 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
66b4eaaecb
commit
3daf4b9720
|
@ -202,9 +202,14 @@ void stm32_clock_init(void) {
|
||||||
RCC->CFGR |= STM32_MCO2PRE | STM32_MCO2SEL | STM32_MCO1PRE | STM32_MCO1SEL |
|
RCC->CFGR |= STM32_MCO2PRE | STM32_MCO2SEL | STM32_MCO1PRE | STM32_MCO1SEL |
|
||||||
STM32_RTCPRE | STM32_PPRE2 | STM32_PPRE1 | STM32_HPRE;
|
STM32_RTCPRE | STM32_PPRE2 | STM32_PPRE1 | STM32_HPRE;
|
||||||
|
|
||||||
/* Flash setup.*/
|
/* Flash setup.
|
||||||
FLASH->ACR = FLASH_ACR_PRFTEN | FLASH_ACR_ICEN | FLASH_ACR_DCEN |
|
Some old revisions of F4x MCUs randomly crashes with compiler
|
||||||
STM32_FLASHBITS;
|
optimizations enabled AND flash caches enabled. */
|
||||||
|
if ((DBGMCU->IDCODE == 0x20006411) && (SCB->CPUID == 0x410FC241))
|
||||||
|
FLASH->ACR = FLASH_ACR_PRFTEN | STM32_FLASHBITS;
|
||||||
|
else
|
||||||
|
FLASH->ACR = FLASH_ACR_PRFTEN | FLASH_ACR_ICEN |
|
||||||
|
FLASH_ACR_DCEN | STM32_FLASHBITS;
|
||||||
|
|
||||||
/* Switching to the configured clock source if it is different from MSI.*/
|
/* Switching to the configured clock source if it is different from MSI.*/
|
||||||
#if (STM32_SW != STM32_SW_HSI)
|
#if (STM32_SW != STM32_SW_HSI)
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
|
|
||||||
*** 2.4.3 ***
|
*** 2.4.3 ***
|
||||||
|
- FIX: Fixed workaround for errata in STM32F4-A devices (bug 3586425).
|
||||||
- FIX: Fixed error in palWritePad() macro (bug 3586230).
|
- FIX: Fixed error in palWritePad() macro (bug 3586230).
|
||||||
- FIX: Fixed missing ; in testmbox.c (bug 3585979).
|
- FIX: Fixed missing ; in testmbox.c (bug 3585979).
|
||||||
- FIX: Fixed STM32_P407: implement mmc_lld_is_card_inserted (bug 3581929).
|
- FIX: Fixed STM32_P407: implement mmc_lld_is_card_inserted (bug 3581929).
|
||||||
|
|
Loading…
Reference in New Issue