won't compile

Committer:
richardv
Date:
Wed Nov 02 23:50:52 2016 +0000
Revision:
0:b079fa4ed182
DMA RAM DAC

Who changed what in which revision?

UserRevisionLine numberNew contents of line
richardv 0:b079fa4ed182 1 /**
richardv 0:b079fa4ed182 2 @page DMA_RAM_DAC DMA RAM to DAC example
richardv 0:b079fa4ed182 3
richardv 0:b079fa4ed182 4 @verbatim
richardv 0:b079fa4ed182 5 ******************** (C) COPYRIGHT 2014 STMicroelectronics *******************
richardv 0:b079fa4ed182 6 * @file DMA_RAM_DAC/readme.txt
richardv 0:b079fa4ed182 7 * @author MCD Application Team
richardv 0:b079fa4ed182 8 * @version V1.0.0
richardv 0:b079fa4ed182 9 * @date 20-June-2014
richardv 0:b079fa4ed182 10 * @brief Description of the DMA RAM to DAC example.
richardv 0:b079fa4ed182 11 ******************************************************************************
richardv 0:b079fa4ed182 12 * @attention
richardv 0:b079fa4ed182 13 *
richardv 0:b079fa4ed182 14 * <h2><center>&copy; COPYRIGHT 2014 STMicroelectronics</center></h2>
richardv 0:b079fa4ed182 15 *
richardv 0:b079fa4ed182 16 *
richardv 0:b079fa4ed182 17 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
richardv 0:b079fa4ed182 18 * You may not use this file except in compliance with the License.
richardv 0:b079fa4ed182 19 * You may obtain a copy of the License at:
richardv 0:b079fa4ed182 20 *
richardv 0:b079fa4ed182 21 * http://www.st.com/software_license_agreement_liberty_v2
richardv 0:b079fa4ed182 22 *
richardv 0:b079fa4ed182 23 * Unless required by applicable law or agreed to in writing, software
richardv 0:b079fa4ed182 24 * distributed under the License is distributed on an "AS IS" BASIS,
richardv 0:b079fa4ed182 25 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
richardv 0:b079fa4ed182 26 * See the License for the specific language governing permissions and
richardv 0:b079fa4ed182 27 * limitations under the License.
richardv 0:b079fa4ed182 28 *
richardv 0:b079fa4ed182 29 ******************************************************************************
richardv 0:b079fa4ed182 30 @endverbatim
richardv 0:b079fa4ed182 31
richardv 0:b079fa4ed182 32 @par Example Description
richardv 0:b079fa4ed182 33
richardv 0:b079fa4ed182 34 This example provides a description of how to use a DMA channel to transfer
richardv 0:b079fa4ed182 35 data buffer from RAM memory to DAC.
richardv 0:b079fa4ed182 36
richardv 0:b079fa4ed182 37 DMA1 channel3 is configured to transfer continuously, word by word, a 32-word buffer
richardv 0:b079fa4ed182 38 to the dual DAC register DAC_DHR12RD. Both DAC channels conversions are configured
richardv 0:b079fa4ed182 39 to be triggered by TIM2 TRGO triggers and without noise/triangle wave generation.
richardv 0:b079fa4ed182 40 12bit right data alignment is selected since we choose to access DAC_DHR12RD register.
richardv 0:b079fa4ed182 41
richardv 0:b079fa4ed182 42 @par Directory contents
richardv 0:b079fa4ed182 43
richardv 0:b079fa4ed182 44 - DMA_RAM_DAC/stm32f30x_conf.h Library Configuration file
richardv 0:b079fa4ed182 45 - DMA_RAM_DAC/stm32f3xx_it.c Interrupt handlers
richardv 0:b079fa4ed182 46 - DMA_RAM_DAC/stm32f3xx_it.h Header for stm32f3xx_it.c
richardv 0:b079fa4ed182 47 - DMA_RAM_DAC/main.c Main program
richardv 0:b079fa4ed182 48 - DMA_RAM_DAC/main.h Header for main.c
richardv 0:b079fa4ed182 49 - DMA_RAM_DAC/system_stm32f30x.c STM32F33xx system source file
richardv 0:b079fa4ed182 50
richardv 0:b079fa4ed182 51 @par Hardware and Software environment
richardv 0:b079fa4ed182 52
richardv 0:b079fa4ed182 53 - This example has been tested with STMicroelectronics STM32F3348-DISCO board (MB1142A)
richardv 0:b079fa4ed182 54 and can be easily tailored to any other supported device and development board.
richardv 0:b079fa4ed182 55 - This example runs on STM32F334xx Devices.
richardv 0:b079fa4ed182 56
richardv 0:b079fa4ed182 57 - STM32F3348-DISCO Set-up
richardv 0:b079fa4ed182 58 - Connect the oscilloscope to PA.04 and PA.05.
richardv 0:b079fa4ed182 59
richardv 0:b079fa4ed182 60 @par How to use it?
richardv 0:b079fa4ed182 61
richardv 0:b079fa4ed182 62 In order to make the program work, you must do the following :
richardv 0:b079fa4ed182 63 + EWARM
richardv 0:b079fa4ed182 64 - Open the DMA_RAM_DAC.eww workspace
richardv 0:b079fa4ed182 65 - Rebuild all files: Project->Rebuild all
richardv 0:b079fa4ed182 66 - Load project image: Project->Debug
richardv 0:b079fa4ed182 67 - Run program: Debug->Go(F5)
richardv 0:b079fa4ed182 68
richardv 0:b079fa4ed182 69 + MDK-ARM
richardv 0:b079fa4ed182 70 - Open the Project.uvproj project
richardv 0:b079fa4ed182 71 - Rebuild all files: Project->Rebuild all target files
richardv 0:b079fa4ed182 72 - Load project image: Debug->Start/Stop Debug Session
richardv 0:b079fa4ed182 73 - Run program: Debug->Run (F5)
richardv 0:b079fa4ed182 74
richardv 0:b079fa4ed182 75 + TrueSTUDIO
richardv 0:b079fa4ed182 76 - Open the TrueSTUDIO toolchain.
richardv 0:b079fa4ed182 77 - Click on File->Switch Workspace->Other and browse to TrueSTUDIO workspace
richardv 0:b079fa4ed182 78 directory.
richardv 0:b079fa4ed182 79 - Click on File->Import, select General->'Existing Projects into Workspace'
richardv 0:b079fa4ed182 80 and then click "Next".
richardv 0:b079fa4ed182 81 - Browse to the TrueSTUDIO workspace directory and select the project "DMA_RAM_DAC"
richardv 0:b079fa4ed182 82 - Rebuild all project files: Select the project in the "Project explorer"
richardv 0:b079fa4ed182 83 window then click on Project->build project menu.
richardv 0:b079fa4ed182 84 - Run program: Select the project in the "Project explorer" window then click
richardv 0:b079fa4ed182 85 Run->Debug (F11)
richardv 0:b079fa4ed182 86
richardv 0:b079fa4ed182 87 * <h3><center>&copy; COPYRIGHT STMicroelectronics</center></h3>
richardv 0:b079fa4ed182 88 */