background preloader

STM32 Discovery

Facebook Twitter

STM32F10x Standard Peripherals Firmware Library: File Index. STM32 Discovery. – Built-in POR, PDR, LVD, watchdog timer.– Factory trimmed 8 MHz RC oscillator and 40 kHz for RTC and watchdog.– On-chip 12-bit dual channel DAC with DMA support and output buffers. ■ Perfect fit for control applications: Up to seven PWM 16-bit timers including advanced control timer for a total of 26 channels.■ Ideal for appliance control applications including induction cooking: Three independent PWM 16-bit timers with complementary output and dead-time generation (Motor Control). ■ Reduced design complexity and minimized CPU, peripheral and memory use: Consumer electronics control (CEC) peripheral. ■ Extensive connectivity capability: CEC, 400 kHz I2C, up to12 Mbit/s master and slave SPI, up to 3 Mbit/s USART. ■ Achieves superior performance with 16-bit code density: ARM Cortex-M3 Thumb-2 32-bit instruction set and 7-channel DMA. ■ Eases Flash memory integrity check: CRC (cyclic redundancy check) with DMA support.

How to use the Examples enclosed in AN3268 on ATOLLIC TrueSTUDIO Lit. How to use STM32 examples in ATOLLIC TrueSTUDIO Lite. Go to library directory: …\Librerie_3.3.0 and copy all, files and directory, into the directory: ... \Lib_3.3.0_IOtoggling_STM32Discovery_Atollic See the fig.1 fig.1 STEP n.2 Select the directory: And press on it with the right mouse keyand select Properties (fig.2) fig.2 Next deselect the Read-only and click Apply (fig.3) fig.3 A new windows will appear, press OK (fig.4) fig.4 And then you are back to fig.3, press OK again. STEP n.3 Go to directory: …\Lib_3.3.0_IOtoggling_STM32Discovery_Atollic\Project\STM32F10x_StdPeriph_Examples\GPIO\IOToggle And copy all files into the directory: …\Lib_3.3.0_IOtoggling_STM32Discovery_Atollic\Project\STM32F10x_StdPeriph_Template See fig.5 fig.5 STEP n.4 Run the ATOLLIC TrueSTUDIO Lite.From the window that appear press on BROWSE button and select: …\Lib_3.3.0_IOtoggling_STM32Discovery_Atollic\Project\STM32F10x_StdPeriph_Template\TrueSTUDIO Next press OK (fig.6) fig.6 From the new window that appear press: Start using TrueSTUDIO (fig.7) fig.7 fig.8 and browse to: fig.9 STEP n.6 fig.10.

Start new project using Atollic. Now the TrueSTUDIO Misc Settings page is displayed (fig.4).Now verify that is selected ST-LINK because ATOLLIC Lite supports only it.Click on the Next button. Now the TrueSTUDIO Select Configuration page is displayed (fig.5).Click on the Finish button to generate a new C project. stm32f10x_it.h files (fig.6). By default, Atollic TrueSTUDIO® builds the project automatically whenever any file in the build dependency is updated. This feature can be toggled using the Project, Build Automatically menu command. As automatic building is switched on by default, new projects created by the project wizard are built automatically when the projects are created.

To build all click on the icon circled in red below (fig.6). Open the Console view by clicking on its tab title (blue arrow on fig.6). Fig.6 Click here to go on the top Debugging Atollic TrueSTUDIO includes a very powerful graphical debugger based on the gdb command line debugger. ) or the F11 key to start the debug session. fig.7 fig.8 fig.9. M32VLDISCOVERY.