切换到宽版
  • 10514阅读
  • 45回复

[ARM]GD32F103RET6  DAC 功能测试 [复制链接]

上一主题 下一主题
离线huaweiwx

发帖
1325
M币
101
专家
57
粉丝
251
只看该作者 40楼 发表于: 11-20
回 yulijie 的帖子
yulijie:翻山越岭找到这个DAC实例,进行DACout 编译时出现错误
Arduino:1.8.5 (Windows 7), 开发板:"F103C8/B, BluePill F103C8/B[LED PC13], flash(128k+20k), 8M(HSE)_72M, JLink, Serial [Virtual COM port, PA11/PA12 pins], SerialUART1[PA9/PA10], JTAG [reserved: PA13, P .. (2018-11-20 00:26) 回 yulijie 的帖子

是啊,连nucleo F401RE官方板子,芯片也不支持DAC。
离线ynymwtb

发帖
681
M币
3859
专家
10
粉丝
34
只看该作者 41楼 发表于: 11-20
gd32f103才有dac,我手里才有一个POS是GD32,被我改JLink,在arduino环境下编译dac例程通过了
离线huaweiwx

发帖
1325
M币
101
专家
57
粉丝
251
只看该作者 42楼 发表于: 11-20
ST 的 F103系列要高密度(HD )的产品线(line)才有,具体的就是 xC 及以上芯片 即xC/xD/xE;而 f103C8/B 属于中密度(MD),就阉割了DAC模块;
离线yulijie

发帖
398
M币
273
专家
1
粉丝
22
只看该作者 43楼 发表于: 12-06
dac 编译失败
用的示例 DACOUT

结果如下

Arduino:1.8.5 (Windows 7), 开发板:"GD32F103RE, ALIENTEK_MINI[F103RE], flash(512k+64k), NONE, 12M (HSE), 120M(overdrive), JLink, Disabled USB, SerialUSB, JTAG [debug pins reserved: PB4,PB3,PA15,PA14,PA13], Release(no-exceptions)"

C:\arduino1805\arduino1805\arduino-builder -dump-prefs -logger=machine -hardware C:\arduino1805\arduino1805\hardware -hardware C:\Users\Administrator\AppData\Local\Arduino15\packages -tools C:\arduino1805\arduino1805\tools-builder -tools C:\arduino1805\arduino1805\hardware\tools\avr -tools C:\Users\Administrator\AppData\Local\Arduino15\packages -built-in-libraries C:\arduino1805\arduino1805\libraries -libraries C:\Users\Administrator\Documents\Arduino\libraries -fqbn=arm:HALMX:GD103RE:cpu=F103RE,startadr=default,extern_lib=NONE,osc_speed=speed_12m,cpu_speed=F120,upload_method=jLinkMethod,usb=Disabled,serial=SerialUSB,jtag_swd=JTAG,log=default -ide-version=10805 -build-path c:\tmp\arduino_build_528046 -warnings=default -build-cache c:\tmp\arduino_cache_842694 -prefs=build.warn_data_percentage=75 -verbose C:\arduino1805\arduino1805\hardware\arm\HALMX\libraries\STM32DAC\examples\DACout\DACout.ino
C:\arduino1805\arduino1805\arduino-builder -compile -logger=machine -hardware C:\arduino1805\arduino1805\hardware -hardware C:\Users\Administrator\AppData\Local\Arduino15\packages -tools C:\arduino1805\arduino1805\tools-builder -tools C:\arduino1805\arduino1805\hardware\tools\avr -tools C:\Users\Administrator\AppData\Local\Arduino15\packages -built-in-libraries C:\arduino1805\arduino1805\libraries -libraries C:\Users\Administrator\Documents\Arduino\libraries -fqbn=arm:HALMX:GD103RE:cpu=F103RE,startadr=default,extern_lib=NONE,osc_speed=speed_12m,cpu_speed=F120,upload_method=jLinkMethod,usb=Disabled,serial=SerialUSB,jtag_swd=JTAG,log=default -ide-version=10805 -build-path c:\tmp\arduino_build_528046 -warnings=default -build-cache c:\tmp\arduino_cache_842694 -prefs=build.warn_data_percentage=75 -verbose C:\arduino1805\arduino1805\hardware\arm\HALMX\libraries\STM32DAC\examples\DACout\DACout.ino
Using board 'GD103RE' from platform in folder: C:\arduino1805\arduino1805\hardware\arm\HALMX
Using core 'arduino' from platform in folder: C:\arduino1805\arduino1805\hardware\arm\HALMX
构建选项已变更,全部重新构建
Detecting libraries used...
"C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\gcc-arm-none-eabi-6-2017-q2-update-win32/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++14 -fpermissive -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -Dprintf=iprintf  -w -x c++ -E -CC -DARDUINO=10805 -DARDUINO_ATKMINI_F103RE -DARDUINO_ARCH_HALMX  -DSTM32F103RE -mcpu=cortex-m3 -mthumb -DF_CPU=120000000L -DGD32F10X -DHSE_VALUE=12000000 -DOSC=12 -DHSE_STARTUP_TIMEOUT=((uint32_t)0xFFFF) -DSTM32F1 -DSTM32GENERIC -DRAM_LENGTH=65536 -DFLASH_LENGTH=524288  -DMENU_SERIAL=SerialUSB -DMENU_SERIAL_AUTO=SerialUART1 -DMENU_DEBUG_JTAG  "-Ic:\tmp\arduino_build_528046/sketch" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\cores\arduino" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\variants\ATKMINI_F103R"  "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\cores\arduino/usb" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/CMSIS" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/CMSIS" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/CMSIS_Inc" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/CMSIS_Src" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\cores\arduino/stm32"  "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/HAL_Inc" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/HAL_Src" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/stm32_chip" "c:\tmp\arduino_build_528046\sketch\DACout.ino.cpp" -o "nul"
"C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\gcc-arm-none-eabi-6-2017-q2-update-win32/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++14 -fpermissive -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -Dprintf=iprintf  -w -x c++ -E -CC -DARDUINO=10805 -DARDUINO_ATKMINI_F103RE -DARDUINO_ARCH_HALMX  -DSTM32F103RE -mcpu=cortex-m3 -mthumb -DF_CPU=120000000L -DGD32F10X -DHSE_VALUE=12000000 -DOSC=12 -DHSE_STARTUP_TIMEOUT=((uint32_t)0xFFFF) -DSTM32F1 -DSTM32GENERIC -DRAM_LENGTH=65536 -DFLASH_LENGTH=524288  -DMENU_SERIAL=SerialUSB -DMENU_SERIAL_AUTO=SerialUART1 -DMENU_DEBUG_JTAG  "-Ic:\tmp\arduino_build_528046/sketch" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\cores\arduino" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\variants\ATKMINI_F103R" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\libraries\STM32DAC\src"  "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\cores\arduino/usb" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/CMSIS" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/CMSIS" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/CMSIS_Inc" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/CMSIS_Src" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\cores\arduino/stm32"  "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/HAL_Inc" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/HAL_Src" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/stm32_chip" "c:\tmp\arduino_build_528046\sketch\DACout.ino.cpp" -o "nul"
"C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\gcc-arm-none-eabi-6-2017-q2-update-win32/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++14 -fpermissive -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -Dprintf=iprintf  -w -x c++ -E -CC -DARDUINO=10805 -DARDUINO_ATKMINI_F103RE -DARDUINO_ARCH_HALMX  -DSTM32F103RE -mcpu=cortex-m3 -mthumb -DF_CPU=120000000L -DGD32F10X -DHSE_VALUE=12000000 -DOSC=12 -DHSE_STARTUP_TIMEOUT=((uint32_t)0xFFFF) -DSTM32F1 -DSTM32GENERIC -DRAM_LENGTH=65536 -DFLASH_LENGTH=524288  -DMENU_SERIAL=SerialUSB -DMENU_SERIAL_AUTO=SerialUART1 -DMENU_DEBUG_JTAG  "-Ic:\tmp\arduino_build_528046/sketch" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\cores\arduino" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\variants\ATKMINI_F103R" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\libraries\STM32DAC\src"  "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\cores\arduino/usb" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/CMSIS" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/CMSIS" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/CMSIS_Inc" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/CMSIS_Src" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\cores\arduino/stm32"  "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/HAL_Inc" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/HAL_Src" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/stm32_chip" "C:\arduino1805\arduino1805\hardware\arm\HALMX\libraries\STM32DAC\src\STM32DAC.cpp" -o "nul"
"C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\gcc-arm-none-eabi-6-2017-q2-update-win32/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++14 -fpermissive -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -Dprintf=iprintf  -w -x c++ -E -CC -DARDUINO=10805 -DARDUINO_ATKMINI_F103RE -DARDUINO_ARCH_HALMX  -DSTM32F103RE -mcpu=cortex-m3 -mthumb -DF_CPU=120000000L -DGD32F10X -DHSE_VALUE=12000000 -DOSC=12 -DHSE_STARTUP_TIMEOUT=((uint32_t)0xFFFF) -DSTM32F1 -DSTM32GENERIC -DRAM_LENGTH=65536 -DFLASH_LENGTH=524288  -DMENU_SERIAL=SerialUSB -DMENU_SERIAL_AUTO=SerialUART1 -DMENU_DEBUG_JTAG  "-Ic:\tmp\arduino_build_528046/sketch" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\cores\arduino" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\variants\ATKMINI_F103R" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\libraries\STM32DAC\src" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\libraries\stm32_dma\src"  "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\cores\arduino/usb" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/CMSIS" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/CMSIS" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/CMSIS_Inc" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/CMSIS_Src" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\cores\arduino/stm32"  "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/HAL_Inc" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/HAL_Src" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/stm32_chip" "C:\arduino1805\arduino1805\hardware\arm\HALMX\libraries\STM32DAC\src\STM32DAC.cpp" -o "nul"
"C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\gcc-arm-none-eabi-6-2017-q2-update-win32/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++14 -fpermissive -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -Dprintf=iprintf  -w -x c++ -E -CC -DARDUINO=10805 -DARDUINO_ATKMINI_F103RE -DARDUINO_ARCH_HALMX  -DSTM32F103RE -mcpu=cortex-m3 -mthumb -DF_CPU=120000000L -DGD32F10X -DHSE_VALUE=12000000 -DOSC=12 -DHSE_STARTUP_TIMEOUT=((uint32_t)0xFFFF) -DSTM32F1 -DSTM32GENERIC -DRAM_LENGTH=65536 -DFLASH_LENGTH=524288  -DMENU_SERIAL=SerialUSB -DMENU_SERIAL_AUTO=SerialUART1 -DMENU_DEBUG_JTAG  "-Ic:\tmp\arduino_build_528046/sketch" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\cores\arduino" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\variants\ATKMINI_F103R" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\libraries\STM32DAC\src" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\libraries\stm32_dma\src"  "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\cores\arduino/usb" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/CMSIS" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/CMSIS" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/CMSIS_Inc" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/CMSIS_Src" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\cores\arduino/stm32"  "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/HAL_Inc" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/HAL_Src" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/stm32_chip" "C:\arduino1805\arduino1805\hardware\arm\HALMX\libraries\stm32_dma\src\stm32_dma.c" -o "nul"
Generating function prototypes...
"C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\gcc-arm-none-eabi-6-2017-q2-update-win32/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++14 -fpermissive -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -Dprintf=iprintf  -w -x c++ -E -CC -DARDUINO=10805 -DARDUINO_ATKMINI_F103RE -DARDUINO_ARCH_HALMX  -DSTM32F103RE -mcpu=cortex-m3 -mthumb -DF_CPU=120000000L -DGD32F10X -DHSE_VALUE=12000000 -DOSC=12 -DHSE_STARTUP_TIMEOUT=((uint32_t)0xFFFF) -DSTM32F1 -DSTM32GENERIC -DRAM_LENGTH=65536 -DFLASH_LENGTH=524288  -DMENU_SERIAL=SerialUSB -DMENU_SERIAL_AUTO=SerialUART1 -DMENU_DEBUG_JTAG  "-Ic:\tmp\arduino_build_528046/sketch" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\cores\arduino" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\variants\ATKMINI_F103R" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\libraries\STM32DAC\src" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\libraries\stm32_dma\src"  "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\cores\arduino/usb" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/CMSIS" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/CMSIS" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/CMSIS_Inc" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/CMSIS_Src" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\cores\arduino/stm32"  "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/HAL_Inc" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/HAL_Src" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/stm32_chip" "c:\tmp\arduino_build_528046\sketch\DACout.ino.cpp" -o "c:\tmp\arduino_build_528046\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\arduino1805\arduino1805\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "c:\tmp\arduino_build_528046\preproc\ctags_target_for_gcc_minus_e.cpp"
正在编译项目...
"C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\gcc-arm-none-eabi-6-2017-q2-update-win32/bin/arm-none-eabi-g++" -c -g -Os -fno-exceptions -std=gnu++14 -fpermissive -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -Dprintf=iprintf -MMD -DARDUINO=10805 -DARDUINO_ATKMINI_F103RE -DARDUINO_ARCH_HALMX  -DSTM32F103RE -mcpu=cortex-m3 -mthumb -DF_CPU=120000000L -DGD32F10X -DHSE_VALUE=12000000 -DOSC=12 -DHSE_STARTUP_TIMEOUT=((uint32_t)0xFFFF) -DSTM32F1 -DSTM32GENERIC -DRAM_LENGTH=65536 -DFLASH_LENGTH=524288  -DMENU_SERIAL=SerialUSB -DMENU_SERIAL_AUTO=SerialUART1 -DMENU_DEBUG_JTAG  "-Ic:\tmp\arduino_build_528046/sketch" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\cores\arduino" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\variants\ATKMINI_F103R" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\libraries\STM32DAC\src" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\libraries\stm32_dma\src"  "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\cores\arduino/usb" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/CMSIS" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/CMSIS" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/CMSIS_Inc" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/CMSIS_Src" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\cores\arduino/stm32"  "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/HAL_Inc" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/HAL_Src" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/stm32_chip" "c:\tmp\arduino_build_528046\sketch\DACout.ino.cpp" -o "c:\tmp\arduino_build_528046\sketch\DACout.ino.cpp.o"
Compiling libraries...
Compiling library "STM32DAC"
"C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\gcc-arm-none-eabi-6-2017-q2-update-win32/bin/arm-none-eabi-g++" -c -g -Os -fno-exceptions -std=gnu++14 -fpermissive -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -Dprintf=iprintf -MMD -DARDUINO=10805 -DARDUINO_ATKMINI_F103RE -DARDUINO_ARCH_HALMX  -DSTM32F103RE -mcpu=cortex-m3 -mthumb -DF_CPU=120000000L -DGD32F10X -DHSE_VALUE=12000000 -DOSC=12 -DHSE_STARTUP_TIMEOUT=((uint32_t)0xFFFF) -DSTM32F1 -DSTM32GENERIC -DRAM_LENGTH=65536 -DFLASH_LENGTH=524288  -DMENU_SERIAL=SerialUSB -DMENU_SERIAL_AUTO=SerialUART1 -DMENU_DEBUG_JTAG  "-Ic:\tmp\arduino_build_528046/sketch" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\cores\arduino" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\variants\ATKMINI_F103R" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\libraries\STM32DAC\src" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\libraries\stm32_dma\src"  "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\cores\arduino/usb" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/CMSIS" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/CMSIS" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/CMSIS_Inc" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/CMSIS_Src" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\cores\arduino/stm32"  "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/HAL_Inc" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/HAL_Src" "-IC:\arduino1805\arduino1805\hardware\arm\HALMX\system/STM32F1/stm32_chip" "C:\arduino1805\arduino1805\hardware\arm\HALMX\libraries\STM32DAC\src\STM32DAC.cpp" -o "c:\tmp\arduino_build_528046\libraries\STM32DAC\STM32DAC.cpp.o"
C:\arduino1805\arduino1805\hardware\arm\HALMX\libraries\STM32DAC\src\STM32DAC.cpp: In function 'void DAC_Start_DMA(uint32_t, uint32_t*, uint32_t, uint32_t)':

C:\arduino1805\arduino1805\hardware\arm\HALMX\libraries\STM32DAC\src\STM32DAC.cpp:157:31: error: 'DAC1_CH1' was not declared in this scope

   stm32DmaAcquire(&hdma_dac1, DAC1_CH1, DAC, true);

                               ^~~~~~~~

使用 18.7.21  版本的库 STM32DAC 在文件夹: C:\arduino1805\arduino1805\hardware\arm\HALMX\libraries\STM32DAC
使用 1.0  版本的库 stm32_dma 在文件夹: C:\arduino1805\arduino1805\hardware\arm\HALMX\libraries\stm32_dma
exit status 1
为开发板 GD32F103RE 编译时出错。
本帖最近打赏记录:共1条打赏M币+13
huaweiwx M币 +13 谢谢 12-07
离线huaweiwx

发帖
1325
M币
101
专家
57
粉丝
251
只看该作者 44楼 发表于: 12-07
回 yulijie 的帖子
yulijie:dac 编译失败
用的示例 DACOUT
结果如下
....... (2018-12-06 23:45) 回 yulijie 的帖子

DAC1_CH1 定义增加在我扩充的dma库里,github漏了这个,晚上上传更新;

离线huojunan
发帖
128
M币
11
专家
1
粉丝
11
只看该作者 45楼 发表于: 昨天 11:17
数控电源   持续关注!
技术宅一枚,求鉴定