完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
Arduino IDE配置STM32开发环境和烧录
前言:最近在制作三维打印机,自己画了一块STM32F446的三维打印机板子(RUMBA32),但是在Arduino的编译马林固件的时候,一直报错,定时器显示中断有问题 怀疑可能的英文由于Arduino的IDE编译环境的问题,因此花了一点时间配置Arduino IDE,并成功实现了使用串口/DFU进行程序烧录,实现了最简单的LED显示屏和串口显示。1. 下载Arduino IDE并安装 方式1:官网下载,下载后安装2.在Arduino中安装STM32开发板
3.安装STM32CubeProgrammer
4.添加STM32CubeProgrammer中的bin文件夹的路径到系统路径中
至此,你的Arduino已经可以使用USB烧录程序到STM32中了。5.配合好BOOT0,使用串口/DFU(USB)进行烧录 烧录之前,需要将BOOT0置为1,按复位复位,之后才可以烧录程序再配一张制作一张自己的RUMBA322开发图: 之后制作成功3D打印机后,将和大家分享一下3D打印机的资料,分享一下 对了,马林2.0过程并在编译的时候,遇到了一些提示: sketchsrcHALSTM32timers.cpp: In function 'void HAL_timer_enable_interrupt(uint8_t)': sketchsrcHALSTM32timers.cpp:178:62: error: no matching function for call to 'HardwareTimer::attachInterrupt(void (&)(HardwareTimer*))' 178 | timer_instance[timer_num]->attachInterrupt(Step_Handler); | ^ In file included from C:UsersASUSAppDataLocalArduino15packagesSTM32hardwarestm321.9.0coresarduino/stm32/analog.h:45, from C:UsersASUSAppDataLocalArduino15packagesSTM32hardwarestm321.9.0coresarduino/board.h:8, from C:UsersASUSAppDataLocalArduino15packagesSTM32hardwarestm321.9.0coresarduino/wiring.h:41, from C:UsersASUSAppDataLocalArduino15packagesSTM32hardwarestm321.9.0coresarduino/Arduino.h:36, from c:usersasusappdatalocaltemparduino_build_611183sketchsrchalsharedmarduino.h:36, from c:usersasusappdatalocaltemparduino_build_611183sketchsrchalstm32hal.h:28, from c:usersasusappdatalocaltemparduino_build_611183sketchsrchalhal.h:26, from c:usersasusappdatalocaltemparduino_build_611183sketchsrcincmarlinconfig.h:30, from sketchsrcHALSTM32timers.cpp:24: C:UsersASUSAppDataLocalArduino15packagesSTM32hardwarestm321.9.0coresarduino/HardwareTimer.h:134:10: note: candidate: 'void HardwareTimer::attachInterrupt(callback_function_t)' 134 | void attachInterrupt(callback_function_t callback); // Attach interrupt callback which will be called upon update event (timer rollover) | ^~~~~~~~~~~~~~~ C:UsersASUSAppDataLocalArduino15packagesSTM32hardwarestm321.9.0coresarduino/HardwareTimer.h:134:46: note: no known conversion for argument 1 from 'void(HardwareTimer*)' to 'callback_function_t' {aka 'std::function 134 | void attachInterrupt(callback_function_t callback); // Attach interrupt callback which will be called upon update event (timer rollover) | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~ C:UsersASUSAppDataLocalArduino15packagesSTM32hardwarestm321.9.0coresarduino/HardwareTimer.h:138:10: note: candidate: 'void HardwareTimer::attachInterrupt(uint32_t, callback_function_t)' 138 | void attachInterrupt(uint32_t channel, callback_function_t callback); // Attach interrupt callback which will be called upon compare match event of specified channel | ^~~~~~~~~~~~~~~ C:UsersASUSAppDataLocalArduino15packagesSTM32hardwarestm321.9.0coresarduino/HardwareTimer.h:138:10: note: candidate expects 2 arguments, 1 provided sketchsrcHALSTM32timers.cpp:181:62: error: no matching function for call to 'HardwareTimer::attachInterrupt(void (&)(HardwareTimer*))' 181 | timer_instance[timer_num]->attachInterrupt(Temp_Handler); | ^ In file included from C:UsersASUSAppDataLocalArduino15packagesSTM32hardwarestm321.9.0coresarduino/stm32/analog.h:45, from C:UsersASUSAppDataLocalArduino15packagesSTM32hardwarestm321.9.0coresarduino/board.h:8, from C:UsersASUSAppDataLocalArduino15packagesSTM32hardwarestm321.9.0coresarduino/wiring.h:41, from C:UsersASUSAppDataLocalArduino15packagesSTM32hardwarestm321.9.0coresarduino/Arduino.h:36, from c:usersasusappdatalocaltemparduino_build_611183sketchsrchalsharedmarduino.h:36, from c:usersasusappdatalocaltemparduino_build_611183sketchsrchalstm32hal.h:28, from c:usersasusappdatalocaltemparduino_build_611183sketchsrchalhal.h:26, from c:usersasusappdatalocaltemparduino_build_611183sketchsrcincmarlinconfig.h:30, from sketchsrcHALSTM32timers.cpp:24: C:UsersASUSAppDataLocalArduino15packagesSTM32hardwarestm321.9.0coresarduino/HardwareTimer.h:134:10: note: candidate: 'void HardwareTimer::attachInterrupt(callback_function_t)' 134 | void attachInterrupt(callback_function_t callback); // Attach interrupt callback which will be called upon update event (timer rollover) | ^~~~~~~~~~~~~~~ C:UsersASUSAppDataLocalArduino15packagesSTM32hardwarestm321.9.0coresarduino/HardwareTimer.h:134:46: note: no known conversion for argument 1 from 'void(HardwareTimer*)' to 'callback_function_t' {aka 'std::function 134 | void attachInterrupt(callback_function_t callback); // Attach interrupt callback which will be called upon update event (timer rollover) | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~ C:UsersASUSAppDataLocalArduino15packagesSTM32hardwarestm321.9.0coresarduino/HardwareTimer.h:138:10: note: candidate: 'void HardwareTimer::attachInterrupt(uint32_t, callback_function_t)' 138 | void attachInterrupt(uint32_t channel, callback_function_t callback); // Attach interrupt callback which will be called upon compare match event of specified channel | ^~~~~~~~~~~~~~~ C:UsersASUSAppDataLocalArduino15packagesSTM32hardwarestm321.9.0coresarduino/HardwareTimer.h:138:10: note: candidate expects 2 arguments, 1 provided exit status 1 为开发板 3D printer boards 编译时出错。 下载 https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json 时出错 下载 https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json 时出错 |
|
|
|
只有小组成员才能发言,加入小组>>
调试STM32H750的FMC总线读写PSRAM遇到的问题求解?
1777 浏览 1 评论
X-NUCLEO-IHM08M1板文档中输出电流为15Arms,15Arms是怎么得出来的呢?
1621 浏览 1 评论
1080 浏览 2 评论
STM32F030F4 HSI时钟温度测试过不去是怎么回事?
728 浏览 2 评论
ST25R3916能否对ISO15693的标签芯片进行分区域写密码?
1678 浏览 2 评论
1938浏览 9评论
STM32仿真器是选择ST-LINK还是选择J-LINK?各有什么优势啊?
731浏览 4评论
STM32F0_TIM2输出pwm2后OLED变暗或者系统重启是怎么回事?
570浏览 3评论
595浏览 3评论
stm32cubemx生成mdk-arm v4项目文件无法打开是什么原因导致的?
554浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 03:09 , Processed in 0.844436 second(s), Total 46, Slave 40 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号