3635 views|1 replies

821

Posts

0

Resources
The OP
 

New driver MM32F103 test (Part 2) Establishing development environment + LED [Copy link]

This post was last edited by lising on 2018-10-28 12:59 To use this development board, you must first have a necessary understanding of it. Here, we use the information provided by the forum "MM32 Evaluation Data - Motor Drive Control (Motor Control) - Electronic Engineering World Forum https://en.eeworld.com/bbs/forum. ... 4747&highlight=mm32". Of course, you can also download it from the official website, which has richer information content. In addition, you need to build a software development environment. The following is the experimental process. I. Experimental resources 1. KEIL v5.25.2; 2. J-LINK (ST-LINK should also work); 3. MM32F103 development board; 4. MindMotion.MM32F103x8xB_DFP.1.4.6.pack; II. Experimental process 1. Install KEIL software. Of course, you can also use IAR, but I am used to KEIL. (The process is omitted). 2. Install "MindMotion.MM32F103x8xB_DFP.1.4.6.pack", which can be downloaded from http://www.keil.com/dd2/Pack/. I took it directly from " MM32F103资料.rar". As shown in the figure: 3. After the installation is complete, open the MM32F103RegLib_MB_EVBoard_Ver1.0.7_n\MM32F103RBT_MiniBoard_libReg\MBF103PF_lib\BLINK\IOKey\KEIL_PRJ project, and use this program to light up the onboard LED, so that the level of the "PA8" port connected to it changes at an interval of 300ms; 4. You can see below that the "MM32F103 Series" device has been added to KEIL. Since the MCU model on the development board is MM32F103C8T6, corresponding changes have been made here; 5. Make the following selections under the "Debug" tab; 6. According to the J-LINK interface in the schematic diagram, select the "SW" mode, and the MCU chip has been correctly identified; 7. According to the information, connect "D2" and "A8" with a jumper cap. After the program is compiled and downloaded to the development board, it is observed that "D2" on the board does not flash; 8. After checking the program for a long time, no problem was found, so a light-emitting LED was temporarily used to replace D2, and the LED can be seen flashing. There is no problem with the program, it should be a hardware problem, to be checked; 9. In this example package, there is a written "delay.c" program, which contains "us" and "ms" level delay programs, which are under the main frequency of 72MHz. Here, a logic analyzer is used to capture the interval of level changes of the "PA8" port for a simple test. In the "system_MM32F103.c" file, you can see that the clock frequency is also the default 72MHz. The program has also been modified; 3. Experimental Summary Through this experiment, I feel that this chip is very easy to use, which is mainly due to the Chinese materials and rich development routines provided by the new driver. By reading the materials and cooperating with the routines, the development process becomes easy and enjoyable. This development board is one of my favorites. All the I/O pins of the MCU are brought out and configured with double-row pins, which makes it easy to connect to devices such as logic analyzers for real-time testing while connecting external modules for debugging. Due to my limited level, there are inevitably errors in the article, so please give me more advice!

Latest reply

It looks very familiar and is very similar to STM32. I wonder how stable Lingdong Microelectronics is and how much it costs?  Details Published on 2018-11-5 15:03
 
 

17

Posts

0

Resources
2
 
It looks very familiar and is very similar to STM32. I wonder how stable Lingdong Microelectronics is and how much it costs?
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list