4013 views|2 replies

336

Posts

2

Resources
The OP
 

New Driving Force MM32F031 Development Board Evaluation 2: Environment Establishment and Flashing Lights [Copy link]

Development environment setup
Use keil mdk 5.24 version. Since I have already installed mdk 5.24 version, I will omit the installation process of keil mdk here. In order to support the MM32F031C8T6 chip, you need to install the MM32F031 related information through the Pack installer installation tool integrated under keil mdk.
After selecting MindMotion->MM32F031x8, you can see DeviceSpecific->MindMotion::MM32F0... on the right side of the window. We select the install button at the back to install this device pack. After the installation is complete, keil mdk will support the MM32F031C8T6 chip of the development board.
Download the official miniBoard example and open the MM32F031xxn_MiniBoard_libReg->MBF031C8T_lib->BLINK->IOToggle->KEIL_PRJ path. Double-click IOToggle.uvprojx to open the project using mdk.
Here I configure LED4 as the driver of the onboard D2 indicator. The D2 indicator is PA8 according to the schematic diagram, and then turn off other useless LED driver codes.
Configure mdk to compile and simulate the development board. I use the j-link v7 emulator here, with a swd interface.
Select the target chip as MindMotion MM32F031C8T
Select the simulator as J-link
Click the Setting button in the figure above to test the connection between the simulator and the chip.
Through the SWD interface, you can see that an ARM core has been recognized, indicating that the simulator has been connected and I can start downloading and simulating code.
After clicking the 'd' button, the system will automatically download the program to the chip and enter the debugging mode.
Connect the emulator to the board and perform simulation debugging.
Summary of problems encountered:
1. Since the relationship between the driving end of D2 and the PA8 pin was not clearly indicated in the schematic diagram, the indicator light did not flash after my program was run. Later, after analysis, it was found that the two terminals in the second row of the connector on the right side, marked with D2 and PA8 respectively, must be short-circuited together with a short circuit, and the small light will flash smoothly.
This content was created by 我爱下载, a user of EEWORLD forum. If you need to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source


Latest reply

Very good knowledge, thank you very much for sharing, the OP has worked hard, it is very useful!   Details Published on 2021-12-21 18:12
 
 

152

Posts

0

Resources
2
 
Thanks for your support. I found a problem today and just added the post description: handshake
Personal signature

欢迎大家来到电机驱动控制技术天地,一起在EEworld交流、学习。

 
 
 

25

Posts

0

Resources
3
 

Very good knowledge, thank you very much for sharing, the OP has worked hard, it is very useful!

 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

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