2016-01-11 03:08 AM
I am trying to configure the clock source in a STM32L Nucleo Board (that mounts the STM32L152RE microcontroller). I use EmBitz as IDE.
I have downloaded the Excel file STM32L1xx Clock configuration tool from ST that generates the system_stm32l1xx.c file to configure the microcontroller.However the configuration tool does not allow to select the microcontroller I use (STM32L15xxE is not present).Any idea how to create the configuration file?2016-01-11 03:15 AM
2016-01-11 05:50 AM
Yes, but when you start the tool (see the image below) you are asked to choose the microcontroller and there is not STM32L15xxE option.
________________ Attachments : tool_config.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzck&d=%2Fa%2F0X0000000bOZ%2FpEqQDkRYCU0FpWhHmSsO4Oq8eSen01EmnXuetlNVNTA&asPdf=false2016-01-11 06:30 AM
Use C optioc. E option is only different flash size. RCC peripheral is the same. Generate file will be valid.
2016-01-11 09:08 AM
OK. The tool works for low frequencies. However I think there is something wrong.
In fact the default clock configuration is HSI with PLL SysClk 32MHz*=============================================================================
* System Clock source | PLL(HSI)
*-----------------------------------------------------------------------------
* SYSCLK | 32000000 Hz
*-----------------------------------------------------------------------------
* HCLK | 32000000 Hz
*-----------------------------------------------------------------------------
* AHB Prescaler | 1
*-----------------------------------------------------------------------------
* APB1 Prescaler | 1
*-----------------------------------------------------------------------------
* APB2 Prescaler | 1
*-----------------------------------------------------------------------------
* HSE Frequency | 8000000 Hz
*-----------------------------------------------------------------------------
* PLL DIV | 3
*-----------------------------------------------------------------------------
* PLL MUL | 6
*-----------------------------------------------------------------------------
* VDD | 3 V
*-----------------------------------------------------------------------------
* Vcore | 1.8 V (Range 1)
*-----------------------------------------------------------------------------
* Flash Latency | 1 WS
*-----------------------------------------------------------------------------
* Require 48MHz for USB clock | Disabled
*-----------------------------------------------------------------------------
However if I set (Expert mode) PLL and HSI with PLLMUL 6 and PLLDIV 3 I get an error (exceeded PLLVCO range).