manualshive.com logo in svg
background image

September 2014

DocID026524 Rev 2

1/18

UM1784

User manual

STM32CubeF3 Nucleo demonstration firmware

Introduction

STMCube

TM

 initiative was originated by STMicroelectronics to ease developers’ life by 

reducing development efforts, time and cost. STM32Cube covers STM32 portfolio.

STM32Cube Version 1.x includes:

The STM32CubeMX, a graphical software configuration tool that allows to generate C 
initialization code using graphical wizards.

A comprehensive embedded software platform, delivered per series (such as 
STM32CubeF3 for STM32F3 series)
– The STM32CubeF3 HAL, an STM32 abstraction layer embedded software, ensuring 

maximized portability across STM32 portfolio

– A consistent set of middleware components such as RTOS, USB, STMTouch and 

FatFs

– All embedded software utilities coming with a full set of examples.

The STM32CubeF3 Nucleo Demonstration platform is built around the STM32Cube HAL, 
BSP and FatFs middleware component and uses almost the whole STM32 capability to load 
and display full color bitmaps from a microSD card.

www.st.com

Содержание Nucleo STM32F302R8

Страница 1: ... graphical wizards A comprehensive embedded software platform delivered per series such as STM32CubeF3 for STM32F3 series The STM32CubeF3 HAL an STM32 abstraction layer embedded software ensuring maximized portability across STM32 portfolio A consistent set of middleware components such as RTOS USB STMTouch and FatFs All embedded software utilities coming with a full set of examples The STM32CubeF...

Страница 2: ...Nucleo boards 6 2 1 2 Adafruit TFT shield 7 2 2 Hardware configuration 7 2 2 1 STM32 Nucleo board configuration 7 2 2 2 Assembling the Adafruit shield 8 3 Demonstration firmware package 9 3 1 Demonstration repository 9 3 2 Nucleo board BSP 10 3 2 1 Joystick 10 3 2 2 LCD 11 3 2 3 MicroSD 11 4 Demo functional description 12 4 1 Programming firmware application 15 5 FAQs 16 6 Revision history 17 ...

Страница 3: ...DocID026524 Rev 2 3 18 UM1784 List of tables 3 List of tables Table 1 Bitmap image properties 12 Table 2 Document revision history 17 ...

Страница 4: ...6 Figure 3 Adafruit 1 8 TFT shield 7 Figure 4 Assembling the Adafruit 1 8 TFT shield 8 Figure 5 Folder structure 9 Figure 6 Nucleo BSP architecture 10 Figure 7 Demonstration application menu 13 Figure 8 Reading the Adafruit shield Joystick 13 Figure 9 Demonstration application error messages 14 Figure 10 Demonstration running 14 ...

Страница 5: ...L is available in an open source BSD license for user convenience STM32CubeF3 package features a set of middleware components with the corresponding examples They come with very permissive license terms Full USB Device stack supporting many classes HID MSC CDC Audio DFU CMSIS RTOS implementation with FreeRTOS open source solution FAT File system based on open source FatFs solution STMTouch touch s...

Страница 6: ...SB ST LINK USB connector CN1 a Standard Capacity SD card SDSC with a capacity up to 4GBytes 2 1 1 STM32F302R8 STM32F303RE or STM32F334R8 Nucleo boards The STM32 Nucleo board is a low cost and easy to use development kit to quickly evaluate and start some development with ARM 32 bit Cortex M microcontrollers of the STM32 series STM32F103 STM32F030 STM32F072 STM32L152 and STM32L053 Before installing...

Страница 7: ...erface slot one 5 way joystick navigation switch left right up down select Figure 3 Adafruit 1 8 TFT shield Note This shield is just an example of Arduino shield usage you can get more details on Adafruit website 2 2 Hardware configuration In addition to gathering the hardware please follow the recommendations below to start using the Adafruit 1 8 TFT shield with the STM32 Nucleo board 2 2 1 STM32...

Страница 8: ...he edge of the shield two sections of 6 pins and two other sections of 8 pins are needed To align the header strips for soldering insert them long pins down into the headers of the STM32 Nucleo board using the connectors CN5 CN6 CN8 and CN9 Place the shield over the header strips so that the short pins stick up through the holes Solder on each pin of the header onto the shield PCB to ensure good e...

Страница 9: ...vided within the STM32CubeF3 firmware package as shown in Figure 5 Figure 5 Folder structure The demonstration sources are located in the projects folder of the STM32Cube package for all of the STM32F302R8 STM32F303RE and STM32F334R8 Nucleo boards The sources are divided into five groups described as follows 1 Binary demonstration binary file in Hex format ...

Страница 10: ...2f3xx_nucleo c h files implementing the board capabilities and the bus link mechanism Figure 6 Nucleo BSP architecture 3 2 1 Joystick The 5 way joystick on the shield is based on a resistor trick to permit all the switches to share one analog pin Each movement of the joystick control connects a different resistor and results in a different voltage reading The ADC peripheral is configured within th...

Страница 11: ...ons The LCD is controlled by a dedicated BSP LCD driver stm32_adafruit_lcd c h which uses the st7735 component that exports in a generic way the LCD IO operations needed for its process 3 2 3 MicroSD The microSD slot available on the Adafruit 1 8 TFT shield uses 4 wire SPI to communicate with the STM32F3 chip Digital I O pins 13 12 11 and 4 The SPI peripheral is configured within the stm32f3xx_nuc...

Страница 12: ...bitmap images must have the properties detailed in Table 1 Once started the application checks the availability of Adafruit 1 8 TFT shield on top of STM32 Nucleo board This is done by reading the state of IO PB 00 pin mapped to Joystick available on the shield If the state of PB 00 is high then the shield is available If the Adafruit 1 8 TFT shield is not available the LED2 is toggling with a freq...

Страница 13: ...g the Joystick button Automatic mode by pressing Joystick DOWN The bitmap images available on the microSD card are displayed sequentially in a forever loop Manual mode by pressing Joystick UP The bitmap images available on the microSD card are displayed by pressing Joystick RIGHT to display next images or Joystick LEFT to display previous one Pressing long 1s the Joystick SEL switches the display ...

Страница 14: ...s case format the microSD card and put into its root directory the bmp files available within the FW package under Utilities Media Images folder If the content of the microSD card is other than a bitmap file a message will be displayed on TFT mentioning that it is not supported User has to ensure that the files available under the microSD card root directory are respecting the above described bitm...

Страница 15: ...nstrations Binary using your preferred in system programming tool Method2 Choose one of two supported tool chains IAR Keil and follow the steps below Open one of the application folders Projects STM32F302R8 Nucleo Demonstrations Binary or Projects STM32F303RE Nucleo Demonstrations Adafruit_LCD_1_8_SD_Joystick Binary or Projects STM32F334R8 Nucleo Demonstrations Binary Chose the desired IDE project...

Страница 16: ...nstant to the desired number of files In this case you must fine tune the _FS_LOCK value defining the number of files that can be opened simultaneously under ffconf h the FatFs configuration file What about putting the bitmap files not under the root directory of the microSD Once put under another folder different from the root directory the bitmap files cannot the accessed by the demonstration ap...

Страница 17: ...1 Initial release 16 Sep 2014 2 Demonstration available for STM32F303RE NUCLEO hence updated Section 2 1 Hardware requirements Section 2 1 1 STM32F302R8 STM32F303RE or STM32F334R8 Nucleo boards Section 3 1 Demonstration repository Section 4 Demo functional description Section 4 1 Programming firmware application Figure 5 Folder structure ...

Страница 18: ...asers are solely responsible for the choice selection and use of ST products and ST assumes no liability for application assistance or the design of Purchasers products No license express or implied to any intellectual property right is granted by ST herein Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product S...

Отзывы: