EasyManuals Logo

ST STM32F103 series Application Note

ST STM32F103 series
26 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #21 background imageLoading...
Page #21 background image
AN2739 Implementation example
21/26
Figure 8. Demo’s functional flowchart 2
Error messages
If an error occurs during the initialization phase, the LCD_DisplayError function is called
(instantiate in main.c file). A message may be displayed on the LCD to determine the error
source:
Memory error: the ERROR: Memory ->RST" message is displayed, meaning that the
memory initialization failed and a system reset is needed to recover.
Audio file error: the “ERROR: File ->RST" message is displayed, meaning that the
audio file initialization failed or the audio file format is not supported. A system reset is
needed to recover.
I
2
C communication error: the "ERROR:I2C com. ->RST" message is displayed,
meaning that communication with the codec through the I
2
C interface failed. A system
reset is needed to recover.
Audio file loading
In order to use the application note firmware, an audio file with the allowed specifications
(refer to Section 2.4), has to be loaded into the used memory medium (the default memory
medium is the NOR Flash memory interfaced through the FSMC peripheral).
For this purpose, one of the three following procedures may be performed:
Use the audio file from the demo delivered with the STM3210E-EVAL
STMicroelectronics evaluation board. The audio file is included in the DFU image of the
demonstration firmware and the file address to be used is the default address
(AUDIO_FILE_ADDRESS = 0x6406 0000 constant in main.h file, corresponding to
the NOR memory).
Up/Down
push-button
pressed
LCD_Update
(ALL)
Current status =
Playing
End
Set Speaker/
Headphone
I2S_CODEC_Int
Play
LCD_Update
(VOL)
Increase/
Decrease volume
Ye s
No
Key push-button
pressed
LCD_Update
(PAUSE)
Current status =
Playing
End
Set current status =
Paused
LCD_Update
(PLAY)
Play
No
Ye s
SEL push-button
pressed
LCD_Update
(STOP)
End
Stop
Set current status =
Stopped
SystemTick
event
LCD_Update
(Progress)
End
ai15121
Right/Left push-button
pressed
Forward/rewind
End
LCD_Update
(FRWRWD)
Set current status
= Playing

Other manuals for ST STM32F103 series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F103 series and is the answer not in the manual?

ST STM32F103 series Specifications

General IconGeneral
BrandST
ModelSTM32F103 series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals