Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use arduino Development Environment to develop ordinary single Chip Microcomputer Development Board

2025-02-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

How to use arduino development environment to develop ordinary single-chip microcomputer development board, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can get something.

Normally, the arduino development board embeds bootloader code in the code and uses the IAP function of the single-chip microcomputer to download the program through the USB port. In fact, you can also download the program by reasonably setting the hex or bin file of the program and downloading it to the single-chip microcomputer with the downloader, so you can use the arduino development environment and open source materials to develop programs for other ordinary single-chip microcomputer development boards on the market. This paper takes the development of ordinary STM32 single-chip microcomputer program by MapleIDE as an example to illustrate.

In the arduino development environment, if you add the build.path= "storage path" to the last line of the lib\ preferences.txt file, the hex or bin file will be generated in the corresponding folder after shift compilation. However, because this file contains the startup process of bootloader, it cannot be run when downloaded directly into the single-chip microcomputer, and the following settings need to be made:

1. Add the parameters of STM32F103RBT6 development board to hardware\ leaflabs\ boards.txt as follows. The parameters can be modified according to different MCU.

MapleJTAG.name=LeafLabs Maple Rev 3 + to JTAG

MapleJTAG.upload.file_type=bin

MapleJTAG.upload.maximum_size=128000

MapleJTAG.upload.ram.maximum_size=20000

MapleJTAG.upload.flash.maximum_size=128000

MapleJTAG.upload.usbID=1EAF:0003

MapleJTAG.upload.altID=1

MapleJTAG.upload.uploader=dfu-util

MapleJTAG.upload.auto_reset=true

MapleJTAG.build.board=maple

MapleJTAG.build.mcu=STM32F103RB

MapleJTAG.build.family=cortex-m3

MapleJTAG.build.f_cpu=72000000L

MapleJTAG.build.core=maple

MapleJTAG.build.submdl=stm32f103

MapleJTAG.build.vect=VECT_TAB_BASE

MapleJTAG.build.linker=maple/jtag.ld

MapleJTAG.build.using=armcompiler

MapleJTAG.build.density=STM32_MEDIUM_DENSITY

MapleJTAG.build.error_led_port=GPIOA

MapleJTAG.build.error_led_pin=5

two。 Note that the key points about program storage space in maple\ jtag.ld are as follows:

MEMORY

{

Ram (rwx): ORIGIN = 0x20000000, LENGTH = 20K

Rom (rx): ORIGIN = 0x08000000, LENGTH = 128K

}

After the completion of the above settings, you can carry out program development, after the development of the program using serial port download software can be downloaded into the STM32 single-chip microcomputer, note that STM32 commonly used MCU-ISP serial port download software is sometimes not good for .bin file support, uISP for STM32 download software is recommended here.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report